OpenVZ Forum


Home » General » Discussions » Does ioprio work as intended for others?
Does ioprio work as intended for others? [message #49463] Sat, 04 May 2013 02:01 Go to next message
devonblzx is currently offline  devonblzx
Messages: 127
Registered: December 2006
Senior Member
I have tried to test --ioprio with various disk benchmarks but have failed to see any real differences in results between ioprio 0 and 7.

I have made sure that the scheduler for my drives is CFQ, does anyone else have this issue?

How I tested:

# vzctl set 1 --ioprio 0 --cpus 0 --cpulimit 0 --save
# vzctl set 2 --ioprio 7 --cpus 0 --cpulimit 0 --save
# vzctl exec 1 "dd if=/dev/zero of=/tmp/test bs=64k count=64k conv=fdatasync > /tmp/ddtest 2>&1 &"; vzctl exec 2 "dd if=/dev/zero of=/tmp/test bs=64k count=64k conv=fdatasync > /tmp/ddtest 2>&1 &"

# vzctl exec 1 cat /tmp/ddtest
65536+0 records in
65536+0 records out
4294967296 bytes (4.3 GB) copied, 14.2459 s, 301 MB/s
# vzctl exec 2 cat /tmp/ddtest
65536+0 records in
65536+0 records out
4294967296 bytes (4.3 GB) copied, 14.2804 s, 301 MB/s


http://static.openvz.org/userbars/openvz-user-2.png
ByteOnSite President
Re: Does ioprio work as intended for others? [message #49813 is a reply to message #49463] Thu, 20 June 2013 18:30 Go to previous message
nostalgeek is currently offline  nostalgeek
Messages: 3
Registered: April 2013
Location: Canada
Junior Member
Same here, ioprio doesn't seems to change anything. I can see the /proc/vz/beancounter/CTID/blkio.weight value is being set from the ioprio.

Tested with :

while [ 1 ]; do dd if=/dev/zero of=1000mbtest.bin bs=1M count=1000; done

On 2 containers having each 256MB RAM and 256MB Vswap, but on with ioprio set to 0 and the other to 7. I can see pretty much the same performances on both containers.

I'm using the latest 042stab078.22 kernel.
Previous Topic: OpenVZ precreated template root compromised ?
Next Topic: Ploop optimized for SSDs?
Goto Forum:
  


Current Time: Sat Jan 28 18:57:56 GMT 2023

Total time taken to generate the page: 0.00866 seconds