Skip to content

better zone and watermark balancing

Nick Piggin lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3vm: kswapd incminmm/vmscan.c+35 -703 replies
2/3vm: highmem watermarksmm/page_alloc.c+14 -130 replies
3/3vm: writeout watermarksmm/page-writeback.c+5 -33 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] better zone and watermark balancing

This patchset I have had around for a long time and improves various zone and watermark balancing by making calculations more logical.

When reading 128GB through the pagecache, in 4 concurrent streams, the final page residency and total reclaim ratios look like this (no highmem, ~900MB RAM):

2.6.14-git3
DMA pages= 2214, scan= 124146
NRM pages=215966, scan=3990129

     Pages  Scan
DMA  01.01  03.01
NRM  98.99  96.99

2.6.14-git3-vm
DMA pages= 2220, scan= 99264
NRM pages=216373, scan=4011975

     Pages  Scan
DMA  01.01  02.41
NRM  98.99  97.59

So in this case, DMA is still getting a beating, but things have improved nicely. Now are results with highmem and ~4GB RAM:

2.6.14-git3
DMA pages=0, scan=0
NRM pages=177241, scan=1607991
HIG pages=817122, scan=1607166

    Pages  Scan
DMA 00.00  00.00
NRM 17.83  50.01
HIG 82.17  49.99

2.6.14-git3-vm
DMA pages=0, scan=0
NRM pages=178215, scan=553311
HIG pages=815771, scan=2757744

    Pages  Scan
DMA 00.00  00.00
NRM 17.92  16.71
HIG 82.07  83.28

Current kernels are abysmal, while the patches bring scanning to an almost perfect ratio.

Signature · 3 lines
SUSE Labs, Novell Inc.

Send instant messages to your online friends http://au.messenger.yahoo.com