diff options
author | Sonny Rao <[email protected]> | 2012-12-20 15:05:07 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2012-12-20 17:40:18 -0800 |
commit | c8b74c2f6604923de91f8aa6539f8bb934736754 (patch) | |
tree | 2aa7cefdda54d71d6a8b9387914fb475514a1bd0 /tools/perf/util/scripting-engines/trace-event-perl.c | |
parent | 010fc29a45a2e8dbc08bf45ef80b8622619aaae0 (diff) |
mm: fix calculation of dirtyable memory
The system uses global_dirtyable_memory() to calculate number of
dirtyable pages/pages that can be allocated to the page cache. A bug
causes an underflow thus making the page count look like a big unsigned
number. This in turn confuses the dirty writeback throttling to
aggressively write back pages as they become dirty (usually 1 page at a
time). This generally only affects systems with highmem because the
underflowed count gets subtracted from the global count of dirtyable
memory.
The problem was introduced with v3.2-4896-gab8fabd
Fix is to ensure we don't get an underflowed total of either highmem or
global dirtyable memory.
Signed-off-by: Sonny Rao <[email protected]>
Signed-off-by: Puneet Kumar <[email protected]>
Acked-by: Johannes Weiner <[email protected]>
Tested-by: Damien Wyart <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
0 files changed, 0 insertions, 0 deletions