OpenVZ Forum


Home » General » Support » [how-to] allocating disk quota / memory / cpu
Re: [how-to] allocating disk quota / memory / cpu [message #2712 is a reply to message #2698] Mon, 17 April 2006 22:17 Go to previous messageGo to previous message
zoom is currently offline  zoom
Messages: 19
Registered: March 2006
Location: Regina, Saskatchewan Cana...
Junior Member


So, what is softlimit? why we use it?

The purpose of a softlimit is to set a limit, however that limit can be exceeded based on the quotetime, or grace period. Soft limits are important because they allow processes to continue even though a limit has been exceeded. Think of it as a early warning, because once the hardlimit, or grace period has been reached that's it.

example: 4GB quota for VPS 100
Remember that disk quota block size for OpenVZ is 1024 Bytes

vzctl set 100 --diskspace 4194304:4718592
(VPS 100 softlimit 4G, hardlimit 4.5G)

vzctl set 100 --quotatime 86400
(VPS 100 can exceed the softlimit for 1 day)

Look at the user guide again it's very good and explaining how quotas are used in OpenVZ.



 
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:28:54 GMT 2024

Total time taken to generate the page: 0.02621 seconds