]> git.baikalelectronics.ru Git - kernel.git/commit
mm: memcontrol: switch soft limit default back to infinity
authorJohannes Weiner <hannes@cmpxchg.org>
Thu, 8 Jan 2015 22:32:35 +0000 (14:32 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 8 Jan 2015 23:10:52 +0000 (15:10 -0800)
commitf8731ad37c674dbcd32ff75c54462de4852673d0
tree23c537f967a9522fb4e0a8a117b490b725453291
parent4459837ee0ae6694cd48f1dd21e0f62dd5cdc430
mm: memcontrol: switch soft limit default back to infinity

Commit 7812d2571b5f ("mm: memcontrol: lockless page counters")
accidentally switched the soft limit default from infinity to zero,
which turns all memcgs with even a single page into soft limit excessors
and engages soft limit reclaim on all of them during global memory
pressure.  This makes global reclaim generally more aggressive, but also
inverts the meaning of existing soft limit configurations where unset
soft limits are usually more generous than set ones.

Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: Michal Hocko <mhocko@suse.cz>
Acked-by: Vladimir Davydov <vdavydov@parallels.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memcontrol.c