Skip to content

memcg: variable type fixes

Greg Thelen linux-mm lkml 2 versions New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 0 repliesNew
  2. v22 patches 6 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2memcg: break out event counters from other statsmm/memcontrol.c+37 -120 replies
2/2memcg: use native word page statistics countersmm/memcontrol.c+14 -150 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 v3 thread

Cover letter [PATCH v3 0/2] memcg: variable type fixes

Changes since -v2:
- Reworded patch 1 commit message.

This is a two part series that is a cleanup of memcg internal counters. These two patches were originally proposed by Johannes Weiner [1]. The original series was based on an older mmotm, so I had to massage the patches a little. The patches are based on mmotm-2011-02-10-16-26.

Patch 1 implements the idea that memcg only has to use signed types for some of the counters, but not for the constant monotonically increasing event counters where the sign-bit is a waste. Originally proposed in [2].

Patch 2 converts the memcg fundamental page statistics counters to native words as they should be wide enough for the expected values. Originally proposed in [3].

References:
[1] https://lkml.org/lkml/2010/11/7/170
[2] https://lkml.org/lkml/2010/11/7/174
[3] https://lkml.org/lkml/2010/11/7/171

Johannes Weiner (2):
memcg: break out event counters from other stats
memcg: use native word page statistics counters

 mm/memcontrol.c |   78 ++++++++++++++++++++++++++++++++++++-------------------
 1 files changed, 51 insertions(+), 27 deletions(-)
Signature · 8 lines
1.7.3.1

--
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>