Hi, i'm using lxc in my project, i want to control disk io speed, so i use
blkio.weight. I test it, but the result is confusing.
I create two container A and B:
A: blkio.weight = 100B : blkio.weight=1000
the running process in A and B are the same, which is bash script :
dd
And neither slice_idle nor group_idle is zero? Did you change any
default parameters for CFQ?
-zyh
在 2011年12月14日 下午4:55,陈竞 cj.mag...@gmail.com 写道:
my io scheduler is CFQ So the result is weird
在 2011年12月14日 下午4:12,陈竞 cj.mag...@gmail.com写道:
Hi, i'm using lxc in my project, i want to
在 2011年12月14日 下午5:30,陈竞 cj.mag...@gmail.com 写道:
i got the problem, my script is wrong, it should drop the cache, or it will
read data from cache,
the script is :
sync
echo 3 /proc/sys/vm/drop_caches
dd if=/tmp/file1 of=/dev/null
size of file1 is 400M, and i get new test result:
A:
2011/12/14 Zhu Yanhai zhu.yan...@gmail.com:
在 2011年12月14日 下午5:30,陈竞 cj.mag...@gmail.com 写道:
i got the problem, my script is wrong, it should drop the cache, or it will
read data from cache,
the script is :
sync
echo 3 /proc/sys/vm/drop_caches
dd if=/tmp/file1 of=/dev/null
size of file1
thank you very much. I really get it
2011/12/14 Zhu Yanhai zhu.yan...@gmail.com
在 2011年12月14日 下午5:30,陈竞 cj.mag...@gmail.com 写道:
i got the problem, my script is wrong, it should drop the cache, or it
will
read data from cache,
the script is :
sync
echo 3 /proc/sys/vm/drop_caches