Skip to content
Snippets Groups Projects
  1. Sep 26, 2006
  2. Sep 25, 2006
  3. Sep 06, 2006
  4. Aug 06, 2006
  5. Jul 12, 2006
  6. Jul 10, 2006
  7. Jun 30, 2006
  8. Jun 27, 2006
  9. Jun 25, 2006
  10. Jun 24, 2006
  11. Jun 23, 2006
    • Rafael J. Wysocki's avatar
      [PATCH] swsusp: use less memory during resume · 968808b8
      Rafael J. Wysocki authored
      
      Make swsusp allocate only as much memory as needed to store the image data
      and metadata during resume.
      
      Without this patch swsusp additionally allocates many page frames that will
      conflict with the "original" locations of the image data and are considered
      as "unsafe", treating them as "eaten" pages (ie.  allocated but unusable).
      
      The patch makes swsusp allocate as many pages as it'll need to store the
      data read from the image in one shot, creating a list of allocated "safe"
      pages, and use the observation that all pages allocated by it are marked
      with the PG_nosave and PG_nosave_free flags set.   Namely, when it's about
      to load an image page, swsusp can check whether the page frame
      corresponding to the "original" location of this page has been allocated
      (ie.  if the page frame has the PG_nosave and PG_nosave_free flags set) and
      if so, it can load the page directly into this page frame.   Otherwise it
      uses an allocated "safe" page from the list to store the data that will be
      copied to their "original" location later on.
      
      This allows us to save many page copyings and page allocations during
      resume and in the future it may allow us to load images greater than 50% of
      the normal zone.
      
      Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
      Acked-by: default avatar"Pavel Machek" <pavel@suse.cz>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      968808b8
    • Adrian Bunk's avatar
      [PATCH] kernel/power/snapshot.c: cleanups · 7bff24e2
      Adrian Bunk authored
      
      - make needlessly global functions static
      - make dummy functions static inline
      
      Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
      Acked-by: default avatarPavel Machek <pavel@ucw.cz>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      7bff24e2
    • Rafael J. Wysocki's avatar
      [PATCH] swsusp: take lowmem reserves into account · a938c356
      Rafael J. Wysocki authored
      
      swsusp allocates memory from the normal zone, so it cannot use lowmem
      reserve pages from the lower zones.  Therefore it should not count these
      pages as available to it.
      
      Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
      Cc: Pavel Machek <pavel@ucw.cz>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      a938c356
    • Shaohua Li's avatar
      [PATCH] swsusp: add architecture special saveable pages support · ce4ab001
      Shaohua Li authored
      
      1. Add architecture specific pages save/restore support.  Next two patches
         will use this to save/restore 'ACPI NVS' pages.
      
      2. Allow reserved pages 'nosave'.  This could avoid save/restore BIOS
         reserved pages.
      
      Signed-off-by: default avatarShaohua Li <shaohua.li@intel.com>
      Cc: Pavel Machek <pavel@ucw.cz>
      Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
      Cc: Nigel Cunningham <nigel@suspend2.net>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      ce4ab001
    • Rafael J. Wysocki's avatar
      [PATCH] swsusp: rework memory shrinker · d6277db4
      Rafael J. Wysocki authored
      
      Rework the swsusp's memory shrinker in the following way:
      
      - Simplify balance_pgdat() by removing all of the swsusp-related code
        from it.
      
      - Make shrink_all_memory() use shrink_slab() and a new function
        shrink_all_zones() which calls shrink_active_list() and
        shrink_inactive_list() directly for each zone in a way that's optimized
        for suspend.
      
      In shrink_all_memory() we try to free exactly as many pages as the caller
      asks for, preferably in one shot, starting from easier targets.   If slab
      caches are huge, they are most likely to have enough pages to reclaim.
       The inactive lists are next (the zones with more inactive pages go first)
      etc.
      
      Each time shrink_all_memory() attempts to shrink the active and inactive
      lists for each zone in 5 passes.   In the first pass, only the inactive
      lists are taken into consideration.   In the next two passes the active
      lists are also shrunk, but mapped pages are not reclaimed.   In the last
      two passes the active and inactive lists are shrunk and mapped pages are
      reclaimed as well.  The aim of this is to alter the reclaim logic to choose
      the best pages to keep on resume and improve the responsiveness of the
      resumed system.
      
      Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
      Signed-off-by: default avatarCon Kolivas <kernel@kolivas.org>
      Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      d6277db4
  12. Jun 22, 2006
  13. Jun 19, 2006
  14. Apr 28, 2006
Loading