Re: [dm-devel] Re: dm-ioband: Test results.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ryo Tsuruta
Date: Tuesday, April 14, 2009 - 2:30 am

Hi Vivek,


Thanks for taking a look at the sheet. I did a buffered write test
with "fio." Only two "dd" threads can't generate enough I/O load to
make dm-ioband start bandwidth control. The following is a script that
I actually used for the test.

  #!/bin/bash
  sync
  echo 1 > /proc/sys/vm/drop_caches
  arg="--size=64m --rw=write --numjobs=50 --group_reporting"
  echo $$ > /cgroup/1/tasks
  fio $arg --name=ioband1 --directory=/mnt1 --output=ioband1.log &
  echo $$ > /cgroup/2/tasks
  fio $arg --name=ioband2 --directory=/mnt2 --output=ioband2.log &
  echo $$ > /cgroup/tasks
  wait

I created two dm-devices to easily monitor the throughput of each
cgroup by iostat, and gave weights of 200 for cgroup1 and 100 for
cgroup2 that means cgroup1 can use twice bandwidth of cgroup2. The
following is a part of the output of iostat. dm-0 and dm-1 corresponds
to ioband1 and ioband2. You can see the bandwidth is according to the
weights.

  avg-cpu:  %user   %nice %system %iowait  %steal   %idle
             0.99    0.00    6.44   92.57    0.00    0.00
  
  Device:            tps   Blk_read/s   Blk_wrtn/s   Blk_read   Blk_wrtn
  dm-0           3549.00         0.00     28392.00          0      28392
  dm-1           1797.00         0.00     14376.00          0      14376
  
  avg-cpu:  %user   %nice %system %iowait  %steal   %idle
             1.01    0.00    4.02   94.97    0.00    0.00
  
  Device:            tps   Blk_read/s   Blk_wrtn/s   Blk_read   Blk_wrtn
  dm-0           3919.00         0.00     31352.00          0      31352
  dm-1           1925.00         0.00     15400.00          0      15400
  
  avg-cpu:  %user   %nice %system %iowait  %steal   %idle
             0.00    0.00    5.97   94.03    0.00    0.00
  
  Device:            tps   Blk_read/s   Blk_wrtn/s   Blk_read   Blk_wrtn
  dm-0           3534.00         0.00     28272.00          0      28272
  dm-1           1773.00         0.00     14184.00          0      14184
  
  avg-cpu:  %user   %nice %system %iowait  %steal   %idle
             0.50    0.00    6.00   93.50    0.00    0.00
  
  Device:            tps   Blk_read/s   Blk_wrtn/s   Blk_read   Blk_wrtn
  dm-0           4053.00         0.00     32424.00          0      32424
  dm-1           2039.00         8.00     16304.00          8      16304

Thanks,
Ryo Tsuruta
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
dm-ioband: Test results., Ryo Tsuruta, (Sun Apr 12, 9:05 pm)
Re: dm-ioband: Test results., Vivek Goyal, (Mon Apr 13, 7:46 am)
Re: dm-ioband: Test results., Vivek Goyal, (Mon Apr 13, 7:49 pm)
Re: dm-ioband: Test results., Ryo Tsuruta, (Mon Apr 13, 10:27 pm)
Re: [dm-devel] Re: dm-ioband: Test results., Ryo Tsuruta, (Tue Apr 14, 2:30 am)
Re: dm-ioband: Test results., Vivek Goyal, (Tue Apr 14, 9:37 pm)
Re: dm-ioband: Test results., Ryo Tsuruta, (Wed Apr 15, 6:38 am)
Re: dm-ioband: Test results., Vivek Goyal, (Wed Apr 15, 7:10 am)
Re: dm-ioband: Test results., Vivek Goyal, (Wed Apr 15, 9:17 am)
Re: [dm-devel] Re: dm-ioband: Test results., Vivek Goyal, (Wed Apr 15, 10:04 am)
Re: [dm-devel] Re: dm-ioband: Test results., Ryo Tsuruta, (Wed Apr 15, 7:47 pm)
Re: [dm-devel] Re: dm-ioband: Test results., Ryo Tsuruta, (Thu Apr 16, 5:56 am)
Re: [dm-devel] Re: dm-ioband: Test results., Vivek Goyal, (Thu Apr 16, 6:32 am)
Re: [dm-devel] Re: dm-ioband: Test results., Vivek Goyal, (Thu Apr 16, 7:11 am)
Re: [dm-devel] Re: dm-ioband: Test results., Nauman Rafique, (Thu Apr 16, 1:24 pm)
Re: dm-ioband: Test results., Vivek Goyal, (Thu Apr 16, 1:57 pm)
Re: dm-ioband: Test results., Vivek Goyal, (Thu Apr 16, 7:11 pm)
Re: dm-ioband: Test results., Vivek Goyal, (Thu Apr 16, 7:28 pm)
Re: [dm-devel] Re: dm-ioband: Test results., Ryo Tsuruta, (Mon Apr 20, 1:29 am)
Re: [dm-devel] Re: dm-ioband: Test results., Nauman Rafique, (Mon Apr 20, 2:07 am)
Re: [dm-devel] Re: dm-ioband: Test results., Vivek Goyal, (Mon Apr 20, 2:37 pm)
Re: [dm-devel] Re: dm-ioband: Test results., Ryo Tsuruta, (Tue Apr 21, 5:06 am)
Re: [dm-devel] Re: dm-ioband: Test results., Ryo Tsuruta, (Tue Apr 21, 5:10 am)
Re: [dm-devel] Re: dm-ioband: Test results., Ryo Tsuruta, (Tue Apr 21, 5:18 am)
Re: dm-ioband: Test results., Mike Snitzer, (Tue Apr 21, 6:57 am)
Re: dm-ioband: Test results., Vivek Goyal, (Tue Apr 21, 7:16 am)
Re: dm-ioband: Test results., Li Zefan, (Tue Apr 21, 5:50 pm)
Re: [dm-devel] Re: dm-ioband: Test results., Ryo Tsuruta, (Tue Apr 21, 8:14 pm)
Re: dm-ioband: Test results., Mike Snitzer, (Wed Apr 22, 8:18 am)
Re: dm-ioband: Test results., Ryo Tsuruta, (Mon Apr 27, 3:30 am)
Re: dm-ioband: Test results., Ryo Tsuruta, (Mon Apr 27, 5:44 am)
Re: dm-ioband: Test results., Mike Snitzer, (Mon Apr 27, 6:03 am)