linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [RFC][PATCH] memcg: softlimit (Another one) v3
@ 2009-03-09  7:37 KAMEZAWA Hiroyuki
  2009-03-09  7:39 ` [RFC][PATCH 1/4] memcg: add softlimit interface and utilitiy function KAMEZAWA Hiroyuki
                   ` (3 more replies)
  0 siblings, 4 replies; 18+ messages in thread
From: KAMEZAWA Hiroyuki @ 2009-03-09  7:37 UTC (permalink / raw)
  To: linux-mm; +Cc: balbir, nishimura, kosaki.motohiro

Still RFC but maybe much better than v2.
(Reduced CC:s)

This patch implemetns softlimit for memcg.
Totally re-designed from v2.

[1/4] patch for softlimit_in_bytes.
[2/4] patch for softlimit_priority and victim scheduler.
[3/4] hooks to kswapd
[4/4] Documentation

Softlimit works when kswapd() runs and select victim cgroup to be reclaimed.

Details of calculation of parameters are not fixed yet but this version will
not be very bad. This patch uses static-priority-round-robin scheduling.
If you have better idea for implemnting dynamic-priority one, it's welcome.

I consider following usage in this patch.

Assume  softlimit supports priority 0...8 (0 is the lowest, 8 is the highest)
Example)
   /group_A/      softlimit=1G, priority=8
           /01    priority=0
           /02    prinrity=1

kswapd() will reclaim memory from 01->02->group_A if cgroup contains memory
in zone.

Thanks,
-Kame


--
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] 18+ messages in thread

end of thread, other threads:[~2009-03-12  0:10 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-09  7:37 [RFC][PATCH] memcg: softlimit (Another one) v3 KAMEZAWA Hiroyuki
2009-03-09  7:39 ` [RFC][PATCH 1/4] memcg: add softlimit interface and utilitiy function KAMEZAWA Hiroyuki
2009-03-09  7:44   ` Balbir Singh
2009-03-09  7:55     ` KAMEZAWA Hiroyuki
2009-03-09  8:48       ` Balbir Singh
2009-03-10  5:53         ` KAMEZAWA Hiroyuki
2009-03-10  8:03           ` Balbir Singh
2009-03-10  8:31           ` Balbir Singh
2009-03-09  8:29     ` KAMEZAWA Hiroyuki
2009-03-09  8:54       ` Balbir Singh
2009-03-09  9:07         ` KAMEZAWA Hiroyuki
2009-03-09  7:41 ` [RFC][PATCH 2/4] memcg: softlimit priority and victim scheduler KAMEZAWA Hiroyuki
2009-03-09  7:42 ` [RFC][PATCH 3/4] memcg: softlimit caller via kswapd KAMEZAWA Hiroyuki
2009-03-10 19:02   ` Balbir Singh
2009-03-10 23:52     ` KAMEZAWA Hiroyuki
2009-03-12  0:05     ` KOSAKI Motohiro
2009-03-12  0:08       ` KAMEZAWA Hiroyuki
2009-03-09  7:43 ` [RFC][PATCH 4/4] memcg: softlimit documenation KAMEZAWA Hiroyuki

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