Skip to content

cpuset aware writeback

Ethan Solomita linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 28 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6cpuset write dirty mapfs/buffer.c fs/fs-writeback.c fs/inode.c +5 more+140 -10 replies
1/6cpuset write dirty mapfs/buffer.c fs/fs-writeback.c fs/inode.c +5 more+140 -110 replies
2/6cpuset write pdflush nodemaskfs/buffer.c fs/super.c fs/sync.c +4 more+32 -220 replies
2/6cpuset write pdflush nodemaskfs/buffer.c fs/super.c fs/sync.c +4 more+32 -220 replies
3/6cpuset write throttlemm/page-writeback.c+105 -510 replies
3/6cpuset write throttlemm/page-writeback.c+106 -5011 replies
4/6cpuset write vmscanmm/vmscan.c+2 -10 replies
4/6cpuset write vmscanmm/vmscan.c+2 -10 replies
5/6cpuset write vm writeoutinclude/linux/writeback.h mm/page-writeback.c mm/vmscan.c+4 -40 replies
5/6cpuset write vm writeoutinclude/linux/writeback.h mm/page-writeback.c mm/vmscan.c+4 -40 replies
6/6cpuset dirty limitsinclude/linux/cpuset.h kernel/cpuset.c mm/page-writeback.c+82 -30 replies
6/6cpuset dirty limitsinclude/linux/cpuset.h kernel/cpuset.c mm/page-writeback.c+82 -33 replies

Reviews trailers per patch

All 12 patches have a Reviewed-by or Acked-by.

PatchEthan Solomita
1/6A-b A-b
1/6A-b A-b
2/6A-b A-b
2/6A-b A-b
3/6A-b
3/6A-b
4/6A-b A-b
4/6A-b A-b
5/6A-b A-b
5/6A-b A-b
6/6A-b A-b
6/6A-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/6] cpuset aware writeback

Perform writeback and dirty throttling with awareness of cpuset mem_allowed.

The theory of operation has two primary elements:

1. Add a nodemask per mapping which indicates the nodes which have set PageDirty on any page of the mappings.

2. Add a nodemask argument to wakeup_pdflush() which is propagated down to sync_sb_inodes.

This leaves sync_sb_inodes() with two nodemasks. One is passed to it and specifies the nodes the caller is interested in syncing, and will either be null (i.e. all nodes) or will be cpuset_current_mems_allowed in the caller's context.

The second nodemask is attached to the inode's mapping and shows who has modified data in the inode. sync_sb_inodes() will then skip syncing of inodes if the nodemask argument does not intersect with the mapping nodemask.

cpuset_current_mems_allowed will be passed in to pdflush background_writeout by try_to_free_pages and balance_dirty_pages. balance_dirty_pages also passes the nodemask in to writeback_inodes directly when doing active reclaim.

Other callers do not limit inode writeback, passing in a NULL nodemask pointer.

A final change is to get_dirty_limits. It takes a nodemask argument, and when it is null there is no change in behavior. If the nodemask is set, page statistics are accumulated only for specified nodes, and the background and throttle dirty ratios will be read from a new per-cpuset ratio feature.

These patches are mostly unchanged from Chris Lameter's original changelist posted previously to linux-mm.

--
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>