linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [patch 0/2] vmscan: one cleanup, one bugfix
@ 2009-02-12 11:36 Johannes Weiner
  2009-02-12 11:36 ` [patch 1/2] shrink_all_memory(): use sc.nr_reclaimed Johannes Weiner
  2009-02-12 11:36 ` [patch 2/2] vmscan: clip swap_cluster_max in shrink_all_memory() Johannes Weiner
  0 siblings, 2 replies; 3+ messages in thread
From: Johannes Weiner @ 2009-02-12 11:36 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-mm, linux-kernel

Hi Andrew,

the first patch is from KOSAKI Motohiro, it moves the suspend-to-disk memory
shrinking functions to use sc.nr_reclaimed all over instead of maintaining
an extra local variable.

The second patch is a bugfix for shrink_all_memory() which currently does
reclaim more than requested because of setting swap_cluster_max once to our
overall reclaim goal but failing to decrease it while we go and reclaim is
making progress.  Added Nigel Cunningham to Cc because ISTR he complained
about exactly this behaviour.  Well, this patch seems to fix it, I even
added some shiny numbers coming from real tests!

	Hannes

 mm/vmscan.c |   51 ++++++++++++++++++++++++---------------------------
 1 files changed, 24 insertions(+), 27 deletions(-)

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-02-12 11:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-12 11:36 [patch 0/2] vmscan: one cleanup, one bugfix Johannes Weiner
2009-02-12 11:36 ` [patch 1/2] shrink_all_memory(): use sc.nr_reclaimed Johannes Weiner
2009-02-12 11:36 ` [patch 2/2] vmscan: clip swap_cluster_max in shrink_all_memory() Johannes Weiner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox