*SOLVED* disk io with vzdump / vzmigrate [message #13276] |
Thu, 24 May 2007 07:07 |
goeldi
Messages: 92 Registered: June 2006
|
Member |
|
|
When I make a vzdump or vzmigrate using the suspend or the online feature (which is very cool!) disk IO goes very high. It goes so high that the system is no more usable (average load more than 20!). This is a system with about 20GB of data to sync/dump.
For the suspend or online option, rsync is used. In rsync is an option --bwlimit (bandwidthlimit) which limits not only network bandwidth but disk io bandwidth too.
It would be cool to see an option like the --ssh option in vzmigrate to give it some rsync options. Or is there another way for this?
[Updated on: Fri, 01 June 2007 07:11] by Moderator Report message to a moderator
|
|
|
Re: disk io with vzdump / vzmigrate [message #13282 is a reply to message #13276] |
Thu, 24 May 2007 08:16 |
rickb
Messages: 368 Registered: October 2006
|
Senior Member |
|
|
Linux itself has no way to do what you want (limit disk i/o bandwidth per process). However, the 2.6.18+ cfq scheduler supports i/o priorities, check out ionice and set the migrate pid to a low priority or the idle class.
Quote: |
[root@arsenic ~]# /root/bin/ionice -h
Usage: ionice [OPTIONS] [COMMAND [ARG]...]
Sets or gets process io scheduling class and priority.
-n Class data (typically 0-7, lower being higher prio)
-c Scheduling class
1: realtime, 2: best-effort, 3: idle
-p Process pid
-h This help page
Jens Axboe <axboe@suse.de> (C) 2005
|
your disk i/o could be full, however you will not feel it as all other processes have significant priority. the vz tools do not set io priority yet directly, however you can re-ionice the process after it has been started.
good question!
-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions
UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters
[Updated on: Thu, 24 May 2007 08:33] Report message to a moderator
|
|
|
|
|
|
|
|
|
Re: disk io with vzdump / vzmigrate [message #13519 is a reply to message #13517] |
Tue, 29 May 2007 07:30 |
goeldi
Messages: 92 Registered: June 2006
|
Member |
|
|
In schedutils I have 2 tools: chrt and taskset. So if I do this while vzmigrating:
chrt -p 99 <pid>
where <pid> is the pid of the rsync process, rsync on the target side will get a priority of 99?
Can you suggest me, where I get more USER information for priorities? Is it comparable with nice (highnumber=slow, lownumber=fast) and what is the highest/lowest priority I can give?
Sorry for these newbie questions, but nobody else seems to ask this :-/
|
|
|
|
|