Skip to content
Snippets Groups Projects
  1. Apr 03, 2024
  2. Feb 14, 2023
  3. Feb 03, 2023
  4. Mar 05, 2021
    • Xunlei Pang's avatar
      blk-cgroup: Fix the recursive blkg rwstat · 4f44657d
      Xunlei Pang authored
      
      The current blkio.throttle.io_service_bytes_recursive doesn't
      work correctly.
      
      As an example, for the following blkcg hierarchy:
       (Made 1GB READ in test1, 512MB READ in test2)
           test
          /    \
       test1   test2
      
      $ head -n 1 test/test1/blkio.throttle.io_service_bytes_recursive
      8:0 Read 1073684480
      $ head -n 1 test/test2/blkio.throttle.io_service_bytes_recursive
      8:0 Read 537448448
      $ head -n 1 test/blkio.throttle.io_service_bytes_recursive
      8:0 Read 537448448
      
      Clearly, above data of "test" reflects "test2" not "test1"+"test2".
      
      Do the correct summary in blkg_rwstat_recursive_sum().
      
      Signed-off-by: default avatarXunlei Pang <xlpang@linux.alibaba.com>
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      4f44657d
  5. Nov 07, 2019
Loading