linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4][V3] metadata throttling in writeback patches
@ 2016-09-20 20:57 Josef Bacik
  2016-09-20 20:57 ` [PATCH 1/4] remove mapping from balance_dirty_pages*() Josef Bacik
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Josef Bacik @ 2016-09-20 20:57 UTC (permalink / raw)
  To: linux-btrfs, linux-fsdevel, kernel-team, jack, viro, dchinner,
	hch, linux-mm, hannes

This is the latest set of patches based on my conversations with Jan and
Johannes.  The biggest change has been changing the metadata accounting counters
to be in bytes intead of pages in order to better support varying blocksizes.
I've also stopped messing with the other pagecache related counters so we can
keep them truly separate.  Johannes suggested this change and I simply convert
the bytes counter to pages when calculating dirty limits and such.

The other big change is changing WB_WRITTEN/WB_DIRTIED to be in bytes instead of
pages as well.  This is just a name and accounting change, it doesn't really
change the core logic at all.

I'm sending this out ahead of my full battery of tests, but I want to get
feedback on this direction as soon as possible.  In the meantime I've changed my
btrfs specific patches to work with these patches and am running long running
tests now to verify everything still works.  Thanks,

Josef

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 13+ messages in thread
* [RFC PATCH 0/4] Support for metadata specific accounting
@ 2017-06-22 14:23 Nikolay Borisov
  2017-06-22 14:23 ` [PATCH 4/4] writeback: introduce super_operations->write_metadata Nikolay Borisov
  0 siblings, 1 reply; 13+ messages in thread
From: Nikolay Borisov @ 2017-06-22 14:23 UTC (permalink / raw)
  To: tj
  Cc: jbacik, jack, jeffm, chandan, linux-kernel, linux-mm,
	linux-btrfs, axboe, Nikolay Borisov

Hello, 

This series is a report of Josef's original posting [1]. I've included 
fine-grained changelog in each patch with my changes. Basically, I've forward
ported it to 4.12-rc6 and tried incorporating the feedback which was given to 
every individual patch (I've included link with that information in each 
individual patch). 

The main rationale of pushing this is to enable btrfs' subpage-blocksizes
patches to eventually be merged.

This patchset depends on patches (in listed order) which have already
been submitted [2] [3] [4]. But overall they don't hamper review. 


[1] https://www.spinics.net/lists/linux-btrfs/msg59976.html
[2] https://patchwork.kernel.org/patch/9800129/
[3] https://patchwork.kernel.org/patch/9800985/
[4] https://patchwork.kernel.org/patch/9799735/

Josef Bacik (4):
  remove mapping from balance_dirty_pages*()
  writeback: convert WB_WRITTEN/WB_DIRITED counters to bytes
  writeback: add counters for metadata usage
  writeback: introduce super_operations->write_metadata

 drivers/base/node.c              |   8 ++
 drivers/mtd/devices/block2mtd.c  |  12 ++-
 fs/btrfs/disk-io.c               |   6 +-
 fs/btrfs/file.c                  |   3 +-
 fs/btrfs/ioctl.c                 |   3 +-
 fs/btrfs/relocation.c            |   3 +-
 fs/buffer.c                      |   3 +-
 fs/fs-writeback.c                |  74 +++++++++++++--
 fs/fuse/file.c                   |   4 +-
 fs/iomap.c                       |   6 +-
 fs/ntfs/attrib.c                 |  10 +-
 fs/ntfs/file.c                   |   4 +-
 fs/proc/meminfo.c                |   6 ++
 fs/super.c                       |   7 ++
 include/linux/backing-dev-defs.h |   8 +-
 include/linux/backing-dev.h      |  51 +++++++++--
 include/linux/fs.h               |   4 +
 include/linux/mm.h               |   9 ++
 include/linux/mmzone.h           |   3 +
 include/linux/writeback.h        |   3 +-
 include/trace/events/writeback.h |  13 ++-
 mm/backing-dev.c                 |  15 ++-
 mm/filemap.c                     |   4 +-
 mm/memory.c                      |   5 +-
 mm/page-writeback.c              | 192 ++++++++++++++++++++++++++++++++-------
 mm/page_alloc.c                  |  21 ++++-
 mm/util.c                        |   2 +
 mm/vmscan.c                      |  19 +++-
 mm/vmstat.c                      |   3 +
 29 files changed, 418 insertions(+), 83 deletions(-)

-- 
2.7.4

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2017-06-22 14:23 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-20 20:57 [PATCH 0/4][V3] metadata throttling in writeback patches Josef Bacik
2016-09-20 20:57 ` [PATCH 1/4] remove mapping from balance_dirty_pages*() Josef Bacik
2016-09-20 20:57 ` [PATCH 2/4] writeback: allow for dirty metadata accounting Josef Bacik
2016-09-22 11:18   ` Jan Kara
2016-09-22 13:34     ` Josef Bacik
2016-09-22 19:48   ` Johannes Weiner
2016-09-20 20:57 ` [PATCH 3/4] writeback: convert WB_WRITTEN/WB_DIRITED counters to bytes Josef Bacik
2016-09-22 11:34   ` Jan Kara
2016-09-22 13:35     ` Josef Bacik
2016-09-20 20:57 ` [PATCH 4/4] writeback: introduce super_operations->write_metadata Josef Bacik
2016-09-22 11:48   ` Jan Kara
2016-09-22 13:36     ` Josef Bacik
2017-06-22 14:23 [RFC PATCH 0/4] Support for metadata specific accounting Nikolay Borisov
2017-06-22 14:23 ` [PATCH 4/4] writeback: introduce super_operations->write_metadata Nikolay Borisov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).