OpenVZ Forum


Home » General » Support » [how-to] allocating disk quota / memory / cpu
Re: [how-to] allocating disk quota / memory / cpu [message #2698 is a reply to message #2683] Mon, 17 April 2006 11:40 Go to previous messageGo to previous message
mohaw is currently offline  mohaw
Messages: 7
Registered: April 2006
Junior Member
Thanks kir, but of course i did read the manuals and guides. I want to be sure about what I did. Now changing the type of questions;

as I understand;

1) For hard&soft limiting disk space of VPS 100 to 4 GB;
command: vzctl set 100 --diskspace 4000000:4100000 --save
means: vzctl set [VPSID] --diskspace [Hard limit in KB's]:[Soft limit in KB's] --save

So, what is softlimit? why we use it?

2) For example I have P4 3.0 GHZ HT CPU and vzcpucheck shows;
Current CPU utilization: 2000
Power of the node: 148500

I want to (*NOT* guaranteed) share 600MHZ of my cpu;
command: vzctl set 100 --cpuunits 29700 --save
means: vzctl set 100 --cpuunits [(148500*600)/3000] --save

If I want to guarantee the cpu limit of VPS to 600 MHZ;
command: vzctl set 100 --cpulimit 20 --save
means: vzctl set 100 --cpulimit [(600*100)/3000] --save

So if I do not set [cpulimit] what is the meaning of this not guaranteed but what?

3) RAM how to? totally confused about this -)

Also all these commands may be wrong...





 
Read Message icon4.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: can't connect to public VPS randomly
Next Topic: max. amount of memory for ve limited?
Goto Forum:
  


Current Time: Wed Jul 10 17:26:01 GMT 2024

Total time taken to generate the page: 0.02810 seconds