linux/Documentation
KAMEZAWA Hiroyuki 22a668d7c3 memcg: fix behavior under memory.limit equals to memsw.limit
A user can set memcg.limit_in_bytes == memcg.memsw.limit_in_bytes when the
user just want to limit the total size of applications, in other words,
not very interested in memory usage itself.  In this case, swap-out will
be done only by global-LRU.

But, under current implementation, memory.limit_in_bytes is checked at
first and try_to_free_page() may do swap-out.  But, that swap-out is
useless for memsw.limit_in_bytes and the thread may hit limit again.

This patch tries to fix the current behavior at memory.limit ==
memsw.limit case.  And documentation is updated to explain the behavior of
this special case.

Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
Cc: Balbir Singh <balbir@in.ibm.com>
Cc: Li Zefan <lizf@cn.fujitsu.com>
Cc: Dhaval Giani <dhaval@linux.vnet.ibm.com>
Cc: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-06-18 13:03:48 -07:00
..
2008-10-30 11:38:45 -07:00
2009-04-07 08:12:38 +02:00
2007-07-19 10:04:47 -07:00
2008-02-14 00:16:13 -05:00
2008-10-16 11:21:30 -07:00
2008-04-25 13:27:03 +01:00
2009-06-16 19:47:58 -07:00
2008-02-03 15:54:28 +02:00
2009-03-30 15:21:59 +02:00
2009-06-08 00:45:52 -07:00
2008-01-11 18:22:30 -06:00
2007-05-09 08:57:56 +02:00
2008-10-30 11:38:45 -07:00
2008-04-29 02:49:47 -04:00
2008-10-30 11:38:45 -07:00
2009-06-11 23:31:52 +02:00
2008-12-03 16:09:53 -07:00
2008-07-25 10:53:30 -07:00
2008-11-12 17:17:18 -08:00
2007-10-19 11:53:34 -07:00
2008-11-14 10:39:26 +11:00
2009-03-26 15:45:43 -07:00
2008-03-24 19:22:19 -07:00
2007-10-18 14:37:32 -07:00
2008-02-06 10:41:09 -08:00
2008-10-20 15:43:10 +02:00
2009-04-27 12:00:27 -07:00
2009-04-27 12:00:27 -07:00
2008-08-12 16:07:30 -07:00
2009-03-31 15:18:37 +11:00
2008-11-12 17:17:17 -08:00
2009-06-03 14:06:15 -04:00
2008-02-06 10:41:14 -08:00
2009-04-14 09:00:23 +10:00