writeback: add wb_monitor.py script to monitor writeback info on bdiAdd wb_monitor.py script to monitor writeback information on backing devwhich makes it easier and more convenient to observe wri
writeback: add wb_monitor.py script to monitor writeback info on bdiAdd wb_monitor.py script to monitor writeback information on backing devwhich makes it easier and more convenient to observe writeback behaviorsof running system.The wb_monitor.py script is written based on wq_monitor.py.Following domain hierarchy is tested: global domain (320G) / \ cgroup domain1(10G) cgroup domain2(10G) | |bdi wb1 wb2The wb_monitor.py script output is as following:./wb_monitor.py 252:16 -c writeback reclaimable dirtied written avg_bw252:16_1 0 0 0 0 102400252:16_4284 672 820064 9230368 8410304 685612252:16_4325 896 819840 10491264 9671648 652348252:16 1568 1639904 19721632 18081952 1440360 writeback reclaimable dirtied written avg_bw252:16_1 0 0 0 0 102400252:16_4284 672 820064 9230368 8410304 685612252:16_4325 896 819840 10491264 9671648 652348252:16 1568 1639904 19721632 18081952 1440360...Link: https://lkml.kernel.org/r/20240423034643.141219-5-shikemeng@huaweicloud.comSigned-off-by: Kemeng Shi <shikemeng@huaweicloud.com>Suggested-by: Tejun Heo <tj@kernel.org>Cc: Brian Foster <bfoster@redhat.com>Cc: David Howells <dhowells@redhat.com>Cc: David Sterba <dsterba@suse.com>Cc: Jan Kara <jack@suse.cz>Cc: Mateusz Guzik <mjguzik@gmail.com>Cc: Matthew Wilcox (Oracle) <willy@infradead.org>Cc: SeongJae Park <sj@kernel.org>Cc: Stephen Rothwell <sfr@canb.auug.org.au>Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
show more ...