Skip to content

memcg: clean up limit checking

Johannes Weiner linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2memcg: soft limit reclaim should end at limit not belowinclude/linux/res_counter.h mm/memcontrol.c+3 -32 replies
2/2memcg: simplify the way memory limits are checkedinclude/linux/res_counter.h mm/memcontrol.c+31 -902 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchKAMEZAWA HiroyukiBalbir Singh
1/2A-b A-b
2/2A-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [patch 0/2] memcg: clean up limit checking
Quoted 7 lines · Andrew Morton
Quoted 2 lines · On Tue, 1 Feb 2011 01:04:55 +0100 Johannes Weiner <[email protected]> wrote:

Maybe it would be better to use res_counter_margin(cnt) >= wanted throughout the code.

yup.

Okay, I cleaned it all up a bit for .39. While doing so, I also found that we are reclaiming one page too much when pushing back on behalf of soft limits.

So 1/2 fixes the soft limit reclaim off-by-one-page, and 2/2 reduces all the limit checks to two functions.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>