OpenVZ Forum


Home » General » Support » File download slows down to 0bps inside VE
File download slows down to 0bps inside VE [message #16129] Thu, 23 August 2007 17:30 Go to next message
eliast is currently offline  eliast
Messages: 10
Registered: May 2007
Junior Member
Hy all. Inside a fresh VE, created from the basic conf, based on etch template, if I start to download from kernel.org, the download starts at a good rate but in some seconds it slows down to 0. normally, in the host os, I can dl from kernel.org at 10Megs/sec. Inside a VE I even cannot finish downloading the kernel source, the most it comes dow is 4MB.

The server is a core2duo with 1,5g ram, and 2 VEs. Both VEs akt like I descrbed.

Any ideas?

here are the examples:

HOSTOS:/home/eliast# wget http://www.hu.kernel.org/pub/linux/kernel/v2.6/linux-2.6.22. 5.tar.gz
--19:16:20-- http://www.hu.kernel.org/pub/linux/kernel/v2.6/linux-2.6.22. 5.tar.gz
=> `linux-2.6.22.5.tar.gz'
Resolving www.hu.kernel.org... 193.206.140.34, 193.198.184.21, 81.223.20.167, ...
Connecting to www.hu.kernel.org|193.206.140.34|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 56,918,858 (54M) [application/x-tar]

100%[======================================================= ===================================================== >] 56,918,858 21.76M/s

19:16:27 (21.71 MB/s) - `linux-2.6.22.5.tar.gz' saved [56918858/56918858]

HOSTOS:/home/eliast# vzctl enter 100
entered into VE 100
VE1:/# wget http://www.hu.kernel.org/pub/linux/kernel/v2.6/linux-2.6.22. 5.tar.gz
--17:16:44-- http://www.hu.kernel.org/pub/linux/kernel/v2.6/linux-2.6.22. 5.tar.gz
=> `linux-2.6.22.5.tar.gz'
Resolving www.hu.kernel.org... 193.198.184.21, 193.206.140.34, 81.223.20.167, ...
Connecting to www.hu.kernel.org|193.198.184.21|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 56,918,858 (54M) [application/x-tar]

7% [=======> ] 4,194,304 --.--K/s ETA 04:03
VE1:/# logout
exited from VE 100
HOSTOS:/home/eliast# vzctl enter 101
entered into VE 101
VE2:/# wget http://www.hu.kernel.org/pub/linux/kernel/v2.6/linux-2.6.22. 5.tar.gz
--17:20:29-- http://www.hu.kernel.org/pub/linux/kernel/v2.6/linux-2.6.22. 5.tar.gz
=> `linux-2.6.22.5.tar.gz'
Resolving www.hu.kernel.org... 192.108.114.81, 158.195.35.197, 81.223.20.167, ...
Connecting to www.hu.kernel.org|192.108.114.81|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 56,918,858 (54M) [text/plain]

1% [> ] 777,864 --.--K/s ETA 10:08


Here are my conf file's parameters:

VERSION="2"

ONBOOT="no"

# UBC parameters (in form of barrier:limit)
# Primary parameters
AVNUMPROC="40:40"
NUMPROC="65:65"
NUMTCPSOCK="80:80"
NUMOTHERSOCK="80:80"
VMGUARPAGES="6144:9223372036854775807"
# Secondary parameters
KMEMSIZE="5242880:5592405"
TCPSNDBUF="319488:524288"
TCPRCVBUF="319488:524288"
OTHERSOCKBUF="132096:336896"
DGRAMRCVBUF="132096:132096"
OOMGUARPAGES="6144:9223372036854775807"
# Auxiliary parameters
LOCKEDPAGES="32:32"
SHMPAGES="8192:8192"
PRIVVMPAGES="35000:38181"
NUMFILE="2048:2048"
NUMFLOCK="100:110"
NUMPTY="16:16"
NUMSIGINFO="256:256"
DCACHESIZE="1048576:1097728"

PHYSPAGES="0:9223372036854775807"
NUMIPTENT="128:128"

# Disk quota parameters (in form of softlimit:hardlimit)
DISKSPACE="1048576:1153434"
DISKINODES="200000:220000"
QUOTATIME="0"

# CPU fair sheduler parameter
CPUUNITS="1000"
OFFLINE_MANAGEMENT="yes"
NOATIME="yes"
CPUS="2"
OSTEMPLATE="debian-etch-PE_base-070717-template-i386"
ORIGIN_SAMPLE="vps.basic"
Re: File download slows down to 0bps inside VE [message #16135 is a reply to message #16129] Thu, 23 August 2007 19:48 Go to previous messageGo to next message
locutius is currently offline  locutius
Messages: 125
Registered: August 2007
Senior Member
the basic conf is an extremely conservative VPS with 24MB RAM and everything tuned down

use the vzsplit utility to output an 8 way split of your hardware. compare the output of vzsplit with the conf of your VPS and you will see the problem

that was the solution but here is another way to check what is happening inside the VPS

cat /proc/user_beancounters

[Updated on: Thu, 23 August 2007 19:49]

Report message to a moderator

Re: File download slows down to 0bps inside VE [message #16141 is a reply to message #16135] Thu, 23 August 2007 20:47 Go to previous messageGo to next message
eliast is currently offline  eliast
Messages: 10
Registered: May 2007
Junior Member
results:

HOSTOS:/home/eliast# vzsplit
Enter the number of VEs: 1
WARNING: Recommended minimal size of partition holding /mnt/stuff/vz/private/ is 20Gb!
Fatal resource shortage, try to decrease the number of VEs
Re: File download slows down to 0bps inside VE [message #16142 is a reply to message #16141] Thu, 23 August 2007 20:58 Go to previous messageGo to next message
locutius is currently offline  locutius
Messages: 125
Registered: August 2007
Senior Member
that is an error because you have just attempted to fit your entire filesystem into a single directory

try an 8 or 16 way split Smile
Re: File download slows down to 0bps inside VE [message #16143 is a reply to message #16142] Thu, 23 August 2007 21:36 Go to previous messageGo to next message
eliast is currently offline  eliast
Messages: 10
Registered: May 2007
Junior Member
:/home/eliast# vzsplit -n 8
WARNING: Recommended minimal size of partition holding /mnt/stuff/vz/private/ is 20Gb!
WARNING: partition holding /mnt/stuff/vz/private/ do not have space required for 8 VEs
The maximum allowed value is 1
Default disk space values will be used

Same. Tried with 8, 16, 20, 64. Should I stop existing VEs?
Re: File download slows down to 0bps inside VE [message #16148 is a reply to message #16143] Thu, 23 August 2007 23:14 Go to previous messageGo to next message
locutius is currently offline  locutius
Messages: 125
Registered: August 2007
Senior Member
your /vz/private/ partition is under 20Gb?

that seems to be the problem
Re: File download slows down to 0bps inside VE [message #16201 is a reply to message #16148] Mon, 27 August 2007 17:20 Go to previous messageGo to next message
eliast is currently offline  eliast
Messages: 10
Registered: May 2007
Junior Member
I have an 1,4Gig partition for 3 VE's. I do not need more... They are mainly used for service separation and userdata is mounted from other storages...
Re: File download slows down to 0bps inside VE [message #21799 is a reply to message #16201] Tue, 16 October 2007 11:58 Go to previous message
khorenko is currently offline  khorenko
Messages: 533
Registered: January 2006
Location: Moscow, Russia
Senior Member
Hello.

just found the solution for non-working vzsplit.
Please, check http://bugzilla.openvz.org/show_bug.cgi?id=702


If your problem is solved - please, report it!
It's even more important than reporting the problem itself...
Previous Topic: Network not working
Next Topic: Fatal resource shortage
Goto Forum:
  


Current Time: Fri Sep 27 17:26:48 GMT 2024

Total time taken to generate the page: 0.04308 seconds