OpenVZ Forum


Home » General » Support » VPS download speed is higher than allowed
VPS download speed is higher than allowed [message #51205] Sat, 08 March 2014 18:07 Go to next message
postcd is currently offline  postcd
Messages: 73
Registered: April 2013
Member
Hello, please kindly how i can limit network data transfer speed on a VPS? In HyperVM control panel i have "Uplink Traffic(KB/s)" option, so i set 500 for testing purpose and this is a VPS config. file:

Quote:
# UBC parameters (in form of barrier:limit)
KMEMSIZE="2147483646"
LOCKEDPAGES="1000"
PRIVVMPAGES="65536"
SHMPAGES="32768"
NUMPROC="1000"
PHYSPAGES="0:2147483647"
VMGUARPAGES="32768:2147483647"
OOMGUARPAGES="32768:2147483647"
NUMTCPSOCK="8000"
NUMFLOCK="1000"
NUMPTY="500"
NUMSIGINFO="1000"
TCPSNDBUF="26843136:59611136"
TCPRCVBUF="26843136:59611136"
OTHERSOCKBUF="26843136:59611136"
DGRAMRCVBUF="26843136:59611136"
NUMOTHERSOCK="8000"
DCACHESIZE="9216000"
NUMFILE="24000"
AVNUMPROC="180:180"
NUMIPTENT="1000"

# Disk quota parameters (in form of softlimit:hardlimit)
DISKSPACE="10240000:10240000"
DISKINODES="5120000:5120000"
QUOTATIME="0"

# CPU fair scheduler parameter
CPUUNITS="1000"
VE_ROOT="/vz/root/$VEID"
VE_PRIVATE="/home/vps/720"
OSTEMPLATE="centos-5-x86_64-lamp"
ORIGIN_SAMPLE="basic"
IP_ADDRESS="******"
QUOTAUGIDLIMIT="10000"
HOSTNAME="test"
NAMESERVER="8.8.8.8 8.8.4.4"
ONBOOT="yes"
CPULIMIT="5"
MEMINFO="pages:65536"
CPUS="1"
IOPRIO="7"


When tried to download some test file, speed was more than 10Mb/s (i downloaded accessing VPS via command vzctl enter VMID), any idea on how to limit transfer speed please?

[Updated on: Sat, 08 March 2014 18:10]

Report message to a moderator

Re: VPS download speed is higher than allowed [message #51207 is a reply to message #51205] Sun, 09 March 2014 11:35 Go to previous messageGo to next message
Ales is currently offline  Ales
Messages: 330
Registered: May 2009
Senior Member
Quote:
i downloaded accessing VPS via command vzctl enter VMID


How did you test uplink traffic speed of the VM by entering the VM itself??

Anyway, traffic limiting is a part of HyperVM, not openvz. You should ask about it on their forums.
Re: VPS download speed is higher than allowed [message #51214 is a reply to message #51207] Mon, 10 March 2014 19:42 Go to previous messageGo to next message
postcd is currently offline  postcd
Messages: 73
Registered: April 2013
Member
Openvz limitting tools dont include bandwidth limitting of a VM?
Re: VPS download speed is higher than allowed [message #51219 is a reply to message #51205] Tue, 11 March 2014 15:29 Go to previous message
Paparaciz
Messages: 302
Registered: August 2009
Senior Member
https://wiki.openvz.org/Traffic_shaping_with_tc

https://wiki.openvz.org/Parallels_Cloud_Server :
Main benefits
<..>
Traffic accounting tools.
These tools enable bandwidth management and control for individual containers and provide additional security mechanisms for containers running on the same host.
Previous Topic: How to discover VPS real Mhz aloted value?
Next Topic: How to use tc to limit traffic?
Goto Forum:
  


Current Time: Mon Jul 29 23:09:35 GMT 2024

Total time taken to generate the page: 0.02872 seconds