linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* No memory reclaim while reaching MemoryHigh
@ 2019-07-25 13:17 Stefan Priebe - Profihost AG
  2019-07-25 14:01 ` Michal Hocko
  2019-07-25 14:53 ` Chris Down
  0 siblings, 2 replies; 13+ messages in thread
From: Stefan Priebe - Profihost AG @ 2019-07-25 13:17 UTC (permalink / raw)
  To: cgroups
  Cc: linux-mm, Michal Hocko, Johannes Weiner, n.fahldieck,
	Daniel Aberger - Profihost AG, p.kramme

Hello all,

i hope i added the right list and people - if i missed someone i would
be happy to know.

While using kernel 4.19.55 and cgroupv2 i set a MemoryHigh value for a
varnish service.

It happens that the varnish.service cgroup reaches it's MemoryHigh value
and stops working due to throttling.

But i don't understand is that the process itself only consumes 40% of
it's cgroup usage.

So the other 60% is dirty dentries and inode cache. If i issue an
echo 3 > /proc/sys/vm/drop_caches

the varnish cgroup memory usage drops to the 50% of the pure process.

I thought that the kernel would trigger automatic memory reclaim if a
cgroup reaches is memory high value to drop caches.

Isn't it? does it needs a special flag or tuning? Is this expected?

Before drop caches:
   Memory: 13.1G (high: 13.0G)

After drop caches:
   Memory: 5.8G (high: 13.0G)

Greets,
Stefan


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

end of thread, other threads:[~2019-07-31 13:03 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-25 13:17 No memory reclaim while reaching MemoryHigh Stefan Priebe - Profihost AG
2019-07-25 14:01 ` Michal Hocko
2019-07-25 21:37   ` Stefan Priebe - Profihost AG
2019-07-26  7:45     ` Michal Hocko
2019-07-26 18:30       ` Stefan Priebe - Profihost AG
2019-07-28 21:11         ` Stefan Priebe - Profihost AG
2019-07-28 21:39           ` Chris Down
2019-07-29  5:34             ` Stefan Priebe - Profihost AG
2019-07-29  7:07           ` Stefan Priebe - Profihost AG
2019-07-29  7:45             ` Stefan Priebe - Profihost AG
2019-07-31 13:03               ` Michal Hocko
2019-07-25 14:53 ` Chris Down
2019-07-25 21:42   ` Stefan Priebe - Profihost AG

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