diff options
| author | KAMEZAWA Hiroyuki <[email protected]> | 2010-03-10 15:22:31 -0800 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2010-03-12 15:52:37 -0800 |
| commit | d2265e6fa3f220ea5fd37522d13390e9675adcf7 (patch) | |
| tree | 30e0264bcd379e21507b22243891880b7418f68f /tools/perf/scripts/python/syscall-counts.py | |
| parent | 430e48631e72aeab74d844c57b441f98a2e36eee (diff) | |
memcg : share event counter rather than duplicate
Memcg has 2 eventcountes which counts "the same" event. Just usages are
different from each other. This patch tries to reduce event counter.
Now logic uses "only increment, no reset" counter and masks for each
checks. Softlimit chesk was done per 1000 evetns. So, the similar check
can be done by !(new_counter & 0x3ff). Threshold check was done per 100
events. So, the similar check can be done by (!new_counter & 0x7f)
ALL event checks are done right after EVENT percpu counter is updated.
Signed-off-by: KAMEZAWA Hiroyuki <[email protected]>
Cc: Kirill A. Shutemov <[email protected]>
Cc: Balbir Singh <[email protected]>
Cc: Daisuke Nishimura <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions