OpenVZ Forum


Home » General » Support » *SOLVED* vzctl create extremly slow
*SOLVED* vzctl create extremly slow [message #3778] Thu, 15 June 2006 14:08 Go to next message
disaster is currently offline  disaster
Messages: 158
Registered: February 2006
Senior Member
Hello!

If i start vzctl create it is extremely slow because tar and gzip for decompressing the image do not use the cpu power. They mostly uses only about 0.03%-10% CPU...

tar.gz Image: 140MB
Decompressing with vzctl takes about: 4minutes

Stefan

[Updated on: Tue, 27 June 2006 10:16] by Moderator

Report message to a moderator

Re: vzctl create extremly slow [message #3794 is a reply to message #3778] Fri, 16 June 2006 13:46 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
And what about (tar+gz) without vzctl? Does it work rapid?...
Hmmm... I actually don't think the reason is in tar.
Can you, please, strace vzctl:

strace -tt -T -ff -o str.out vzctl create 200


Thanks...
Re: vzctl create extremly slow [message #3795 is a reply to message #3778] Fri, 16 June 2006 17:41 Go to previous messageGo to next message
disaster is currently offline  disaster
Messages: 158
Registered: February 2006
Senior Member
mhm tody tar xfz needs 7 seconds and vzctl create needs 28 seconds - i think this difference is normal isn't it?

I don't know thy it takes 4min yesterday...

Stefan
Re: vzctl create extremly slow [message #3809 is a reply to message #3778] Mon, 19 June 2006 13:56 Go to previous messageGo to next message
RapidVPS is currently offline  RapidVPS
Messages: 32
Registered: January 2006
Member
From my experience "vzctl create .." is limited by the disk i/o speed. What is your disk configuration? such as disk type, speed, raid config, etc.

The difference between using one 7200rpm IDE for /vz and several 10k SCSI Raid-10 is enormous.

Paste us the output of:
iostat -k 5

(let it run for a minute in a seperate shell while vzctl create is running)
Re: vzctl create extremly slow [message #3918 is a reply to message #3795] Fri, 23 June 2006 19:16 Go to previous message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

this difference was due to some very non-optimal code in disk quota. it was optimized in recent released kernel and vzctl create
should be much closer to tar now.


http://static.openvz.org/userbars/openvz-developer.png
Previous Topic: *SOLVED* iptables
Next Topic: VPS in VPS
Goto Forum:
  


Current Time: Sat Jul 20 22:20:15 GMT 2024

Total time taken to generate the page: 0.02302 seconds