linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Fix memcg/memory.high in case kmem accounting is enabled
@ 2015-08-30 19:02 Vladimir Davydov
  2015-08-30 19:02 ` [PATCH 1/2] mm/slab: skip memcg reclaim only if in atomic context Vladimir Davydov
                   ` (2 more replies)
  0 siblings, 3 replies; 31+ messages in thread
From: Vladimir Davydov @ 2015-08-30 19:02 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Christoph Lameter, Pekka Enberg, David Rientjes, Joonsoo Kim,
	Michal Hocko, Tejun Heo, linux-mm, linux-kernel

Hi,

Tejun reported that sometimes memcg/memory.high threshold seems to be
silently ignored if kmem accounting is enabled:

  http://www.spinics.net/lists/linux-mm/msg93613.html

It turned out that both SLAB and SLUB try to allocate without __GFP_WAIT
first. As a result, if there is enough free pages, memcg reclaim will
not get invoked on kmem allocations, which will lead to uncontrollable
growth of memory usage no matter what memory.high is set to.

This patch set attempts to fix this issue. For more details please see
comments to individual patches.

Thanks,

Vladimir Davydov (2):
  mm/slab: skip memcg reclaim only if in atomic context
  mm/slub: do not bypass memcg reclaim for high-order page allocation

 mm/slab.c | 32 +++++++++++---------------------
 mm/slub.c | 24 +++++++++++-------------
 2 files changed, 22 insertions(+), 34 deletions(-)

-- 
2.1.4

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

end of thread, other threads:[~2015-09-04 19:30 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-30 19:02 [PATCH 0/2] Fix memcg/memory.high in case kmem accounting is enabled Vladimir Davydov
2015-08-30 19:02 ` [PATCH 1/2] mm/slab: skip memcg reclaim only if in atomic context Vladimir Davydov
2015-08-30 19:02 ` [PATCH 2/2] mm/slub: do not bypass memcg reclaim for high-order page allocation Vladimir Davydov
2015-08-31 13:24 ` [PATCH 0/2] Fix memcg/memory.high in case kmem accounting is enabled Michal Hocko
2015-08-31 13:43   ` Tejun Heo
2015-08-31 14:30     ` Vladimir Davydov
2015-08-31 14:39       ` Tejun Heo
2015-08-31 15:18         ` Vladimir Davydov
2015-08-31 15:47           ` Tejun Heo
2015-08-31 16:51             ` Vladimir Davydov
2015-08-31 17:03               ` Tejun Heo
2015-08-31 19:26                 ` Vladimir Davydov
2015-08-31 20:22                   ` Christoph Lameter
2015-09-01  9:25                     ` Vladimir Davydov
2015-08-31 14:20   ` Vladimir Davydov
2015-08-31 14:46     ` Tejun Heo
2015-08-31 15:24       ` Vladimir Davydov
2015-09-01 12:36     ` Michal Hocko
2015-09-01 13:40       ` Vladimir Davydov
2015-09-01 15:01         ` Michal Hocko
2015-09-01 16:55           ` Vladimir Davydov
2015-09-01 18:38             ` Michal Hocko
2015-09-02  9:30               ` Vladimir Davydov
2015-09-02 18:16                 ` Christoph Lameter
2015-09-03  9:36                   ` Vladimir Davydov
2015-09-03 16:32                 ` Tejun Heo
2015-09-04 11:15                   ` Vladimir Davydov
2015-09-04 15:44                     ` Tejun Heo
2015-09-04 18:21                       ` Vladimir Davydov
2015-09-04 19:30                         ` Tejun Heo
2015-09-04 14:38                 ` Michal Hocko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).