Skip to content

RFC soft and dynamic dirty throttling limits

Wu Fengguang linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest17 patches 31 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/17writeback: remove the internal 5% low bound on dirty_ratiofs/fs-writeback.c mm/page-writeback.c+6 -124 replies
2/17writeback: IO-less balance_dirty_pages()include/linux/writeback.h mm/page-writeback.c+39 -652 replies
3/17writeback: per-task rate limit to balance_dirty_pages()include/linux/sched.h mm/page-writeback.c+21 -170 replies
4/17writeback: quit throttling when bdi dirty/writeback pages go downmm/page-writeback.c+15 -00 replies
5/17writeback: quit throttling when signal pendingmm/page-writeback.c+3 -09 replies
6/17writeback: move task dirty fraction to balance_dirty_pages()mm/page-writeback.c+6 -50 replies
7/17writeback: add trace event for balance_dirty_pages()include/trace/events/writeback.h mm/page-writeback.c+49 -30 replies
8/17writeback: account per-bdi accumulated written pagesinclude/linux/backing-dev.h mm/backing-dev.c mm/page-writeback.c+6 -22 replies
9/17writeback: bdi write bandwidth estimationfs/fs-writeback.c include/linux/backing-dev.h include/linux/writeback.h +2 more+41 -10 replies
10/17writeback: show bdi write bandwidth in debugfsmm/backing-dev.c+13 -110 replies
11/17writeback: make nr_to_write a per-file limitfs/fs-writeback.c include/linux/writeback.h+12 -00 replies
12/17writeback: scale IO chunk size up to device bandwidthfs/fs-writeback.c+17 -140 replies
13/17writeback: reduce per-bdi dirty threshold ramp up timemm/page-writeback.c+1 -11 reply
14/17vmscan: add scan_control.prioritymm/vmscan.c+4 -00 replies
15/17mm: lower soft dirty limits on memory pressurefs/fs-writeback.c include/linux/writeback.h mm/page-writeback.c +1 more+55 -81 reply
16/17mm: create /vm/dirty_pressure in debugfsmm/vmstat.c+27 -20 replies
17/17writeback: consolidate balance_dirty_pages() variable namesmm/page-writeback.c+16 -180 replies

Reviews trailers per patch

2 of 17 patches have a Reviewed-by or Acked-by.

PatchCon KolivasPeter ZijlstraRik van RielNeil BrownKOSAKI MotohiroJohannes Weiner
1/17Proposed-by A-b R-b R-b R-b A-b
2/17
3/17
4/17
5/17
6/17
7/17
8/17R-b
9/17
10/17
11/17
12/17
13/17
14/17
15/17
16/17
17/17

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 6 reviewers.

Read the v1 thread

Cover letter [PATCH 00/17] [RFC] soft and dynamic dirty throttling limits

The basic idea is to introduce a small region under the bdi dirty threshold. The task will be throttled gently when stepping into the bottom of region, and get throttled more and more aggressively as bdi dirty+writeback pages goes up closer to the top of region. At some point the application will be throttled at the right bandwidth that balances with the device write bandwidth. (the 2nd patch has more details)

The first two patch groups introduce two building blocks..

IO-less balance_dirty_pages()
[PATCH 02/17] writeback: IO-less balance_dirty_pages()
[PATCH 03/17] writeback: per-task rate limit to balance_dirty_pages() [PATCH 04/17] writeback: quit throttling when bdi dirty/writeback pages go down [PATCH 05/17] writeback: quit throttling when signal pending
(trace event)
[PATCH 06/17] writeback: move task dirty fraction to balance_dirty_pages() [PATCH 07/17] writeback: add trace event for balance_dirty_pages()

bandwidth estimation
[PATCH 08/17] writeback: account per-bdi accumulated written pages [PATCH 09/17] writeback: bdi write bandwidth estimation [PATCH 10/17] writeback: show bdi write bandwidth in debugfs

..for use by the next two features:

larger nr_to_write (hence IO size)
[PATCH 11/17] writeback: make nr_to_write a per-file limit [PATCH 12/17] writeback: scale IO chunk size up to device bandwidth

dynamic dirty pages limit
[PATCH 14/17] vmscan: add scan_control.priority [PATCH 15/17] mm: lower soft dirty limits on memory pressure [PATCH 16/17] mm: create /vm/dirty_pressure in debugfs

The following two patches can be merged independently indeed.

change of rules
[PATCH 01/17] writeback: remove the internal 5% low bound on dirty_ratio [PATCH 13/17] writeback: reduce per-bdi dirty threshold ramp up time

And this cleanup reflects a late thought, it would better to be moved to the beginning of the patch series..

cleanup
[PATCH 17/17] writeback: consolidate balance_dirty_pages() variable names

 fs/fs-writeback.c                |   49 ++++-
 include/linux/backing-dev.h      |    2
 include/linux/sched.h            |    7
 include/linux/writeback.h        |   17 +
 include/trace/events/writeback.h |   47 +++++
 mm/backing-dev.c                 |   29 +--
 mm/page-writeback.c              |  248 ++++++++++++++++-------------
 mm/vmscan.c                      |   22 ++
 mm/vmstat.c                      |   29 +++
 9 files changed, 311 insertions(+), 139 deletions(-)

Thanks,
Fengguang

--
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/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>