1. 06 Jan, 2006 3 commits
    • Rafael J. Wysocki's avatar
      [PATCH] swsusp: fix enough_free_mem · e5e2fa78
      Rafael J. Wysocki authored
      
      
      This patch fixes a problem with the function enough_free_mem() used by
      swsusp to verify if there is a sufficient number of memory pages available
      to it to create and save the suspend image.
      
      Namely, enough_free_mem() uses nr_free_pages() to obtain the number of free
      memory pages, which is incorrect, because this function returns the total
      number of free pages, including free highmem pages, and the highmem pages
      cannot be used by swsusp for storing the image data.
      
      The patch makes enough_free_mem() avoid counting the free highmem
      pages as available to swsusp.
      Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      e5e2fa78
    • Rafael J. Wysocki's avatar
      [PATCH] swsusp: improve freeing of memory · 72a97e08
      Rafael J. Wysocki authored
      
      
      This patch makes swsusp free only as much memory as needed to complete the
      suspend and not as much as possible.   In the most of cases this should speed
      up the suspend and make the system much more responsive after resume,
      especially if a GUI (eg.  X Windows) is used.
      
      If needed, the old behavior (ie to free as much memory as possible during
      suspend) can be restored by unsetting FAST_FREE in power.h
      Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
      Acked-by: default avatarPavel Machek <pavel@suse.cz>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      72a97e08
    • Rafael J. Wysocki's avatar
      [PATCH] swsusp: introduce the swap map structure · 7088a5c0
      Rafael J. Wysocki authored
      
      
      This patch introduces the swap map structure that can be used by swsusp for
      keeping tracks of data pages written to the swap.   The structure itself is
      described in a comment within the patch.
      
      The overall idea is to reduce the amount of metadata written to the swap and
      to write and read the image pages sequentially, in a file-alike way.  This
      makes the swap-handling part of swsusp fairly independent of its
      snapshot-handling part and will hopefully allow us to completely separate
      these two parts in the future.
      
      This patch is needed to remove the suspend image size limit imposed by the
      limited size of the swsusp_info structure, which is essential for x86-64
      systems with more than 512 MB of RAM.
      Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
      Acked-by: default avatarPavel Machek <pavel@suse.cz>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      7088a5c0
  2. 09 Nov, 2005 3 commits
  3. 07 Nov, 2005 1 commit
  4. 31 Oct, 2005 6 commits