shared: cgroup aware writeback accounting test
authorBrian Foster <bfoster@redhat.com>
Tue, 12 Feb 2019 15:22:03 +0000 (10:22 -0500)
committerEryu Guan <guaneryu@gmail.com>
Sat, 16 Feb 2019 13:55:13 +0000 (21:55 +0800)
commit17d70b52f5dac5a9f18ca5ab990f8f3c1a0a3f96
tree6177ebb3d577033aa41ebfb74bb96dac2a2c2f1d
parent1ee89eea1cb948271f51ed319257296ced2652bd
shared: cgroup aware writeback accounting test

A test to perform reads/writes under various cgroups and verify that
I/Os are accounted properly according to cgroup aware writeback.
This is a generic test, but not all commonly used local filesystems
support cgroup aware writeback at the moment (i.e., XFS). Therefore,
this test currently requires ext4 or btrfs for the time being.

The common/cgroup2 file is copied from a separate cgroup related
patch from Shaohua Li that never made it upstream.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Shaohua Li <shli@fb.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
common/cgroup2 [new file with mode: 0644]
tests/shared/011 [new file with mode: 0755]
tests/shared/011.out [new file with mode: 0644]
tests/shared/group