diff options
| author | Mel Gorman <[email protected]> | 2009-09-21 17:03:20 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2009-09-22 07:17:39 -0700 |
| commit | a6f9edd65beaef24836e8934c8912c1e974dd45c (patch) | |
| tree | 041c60ed559d3bc1f289d0040e75cfdd78f0acd0 /tools/perf/scripts/python | |
| parent | 5f8dcc21211a3d4e3a7a5ca366b469fb88117f61 (diff) | |
page-allocator: maintain rolling count of pages to free from the PCP
When round-robin freeing pages from the PCP lists, empty lists may be
encountered. In the event one of the lists has more pages than another,
there may be numerous checks for list_empty() which is undesirable. This
patch maintains a count of pages to free which is incremented when empty
lists are encountered. The intention is that more pages will then be
freed from fuller lists than the empty ones reducing the number of empty
list checks in the free path.
[[email protected]: coding-style fixes]
Signed-off-by: Mel Gorman <[email protected]>
Cc: Nick Piggin <[email protected]>
Cc: Christoph Lameter <[email protected]>
Reviewed-by: Minchan Kim <[email protected]>
Cc: Pekka Enberg <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions