Re: [Lxc-users] blkio.weight doesn't work

2011-12-14 Thread 陈竞
thank you very much. I really get it 2011/12/14 Zhu Yanhai > 在 2011年12月14日 下午5:30,陈竞 写道: > > 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/

Re: [Lxc-users] blkio.weight doesn't work

2011-12-14 Thread Zhu Yanhai
2011/12/14 Zhu Yanhai : > 在 2011年12月14日 下午5:30,陈竞 写道: >> 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

Re: [Lxc-users] blkio.weight doesn't work

2011-12-14 Thread Zhu Yanhai
在 2011年12月14日 下午5:30,陈竞 写道: > 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: blkio.weight=

Re: [Lxc-users] blkio.weight doesn't work

2011-12-14 Thread 陈竞
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: blkio.weight=100cost 11.12s speed is 37.5MB/s B: blkio

Re: [Lxc-users] blkio.weight doesn't work

2011-12-14 Thread Zhu Yanhai
And neither slice_idle nor group_idle is zero? Did you change any default parameters for CFQ? -zyh 在 2011年12月14日 下午4:55,陈竞 写道: > my io scheduler is CFQ So the result is weird > > 在 2011年12月14日 下午4:12,陈竞 写道: > >> Hi, i'm using lxc in my project, i want to control disk io speed, so i use >> bl

Re: [Lxc-users] blkio.weight doesn't work

2011-12-14 Thread 陈竞
my io scheduler is CFQ So the result is weird 在 2011年12月14日 下午4:12,陈竞 写道: > 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=

Re: [Lxc-users] blkio.weight doesn't work

2011-12-14 Thread Zhu Yanhai
在 2011年12月14日 下午4:12,陈竞 写道: > 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 = 100    B : blkio.weight=1000 > > the running process in A and B are the sam

[Lxc-users] blkio.weight doesn't work

2011-12-14 Thread 陈竞
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 if=/tmp/xxx