VPS Limits

(updated for H-Sphere 2.5)

 

Related Docs:   VPS Installation • FreeVPS Docs

Starting with version 2.5, H-Sphere enables to configure new VPS resource limits in H-Sphere VPS plans and in user control panel.

  

Limit Label  Description Requirements & Restrictions Related VPS Scripts
Disk Limit DLIMIT Disk Limit is the maximum disk usage for a VPS server. Disk Limit cannot be exceeded. No more data will be dumped into the disk if disk usage reaches Disk Limit.
Minimal VPS installation requires ~ 500MB allocated disk space.
vps-dlimit-set
vps-dlimit-get
Memory Limit MLIMIT Memory Limit is the maximum total memory usage for processes running and libraries loaded on a VPS server. Memory Limit depends on tasks running on a VPS server.
Memory Limit cannot be exceeded. No more memory will be allocated if VPS total memory usage reaches Memory Limit.
VPS server total memory usage = resident/virtual memory usage + system SWAP
Minimal VPS installation requires ~15-20Mb allocated memory.
vps-mlimit-set
vps-mlimit-get
Process Limit PLIMIT Process Limit is the maximum number of processes running inside a VPS server. Process Limit cannot be exceeded. No new processes will be created if the number of running processes reaches Process Limit.
Minimal VPS installation requires ~10-20 processes to run.
vps-proclimit-set
vps-proclimit-get
Context RSS Limit (2.5+) RSSLIMIT Context RSS Limit is maximum resident/virtual memory usage for for processes running and libraries loaded on a VPS server. Context RSS Limit depends on virtual memory available on the host server (physical machine), on tasks running on a VPS, and on total memory limit.
Context RSS Limit cannot exceed Memory Limit.s When VPS virtual memory usage exceeds RSS limit, VPS starts to use the host server's SWAP.
Recommended value for Context RSS Limit = 1/3 * Memory Limit.
 
File Limit (2.5+) FILELIMIT File Limit is the maximum number of file handlers opened inside a VPS server. File Limit cannot be exceeded. No new files will be opened if the number of opened file handlers reaches File Limit. Minimal VPS installation requires ~150-200 opened file handlers allowed. vps-flimit-set
vps-flimit-get
TCP Socket Limit (2.5+) TCPLIMIT TCP Socket Limit is the maximum number of TPC connections established on a VPS server. TCP Socket Limit cannot be exceeded. No new connection via TCP (for example, SSH connections) will be established if their number reaches TCP Sockets Limit. vps-tcplimit-set
vps-tcplimit-get
CPU Hard Limit (2.5+) HARDCPU CPU Hard Limit is the maximum CPU usage (of all host server CPUs) for a VPS server CPU Hard Limit must be less than 100%.
CPU Hard Limit cannot be exceeded. When usage reaches CPU Hard Limit, new task will be waiting for free CPU resources. CPU Hard Limit depends on VPS task priority.
vps-hcpulimit-set
vps-hcpulimit-get

Note: VPS limit labels are set by the vps-get-config.pl script. See VPS Scripts.

 

Hints On Handling VPS Limits

  • Limit values depend on the number of VPSs running on the host, and tasks running on them;
  • When summary virtual memory size used by VPS/context exceedes Memory Limit value, processes can't allocate the required memory and fail to run;
  • If Memory Limit you set to VPS equals the whole virtual memory available on the host, in a while virtual server will use up all the host's swap;
  • If you turn off both Memory and Context RSS limits, kernel can DoS or panic;
  • While setting initial Disk Limit before VPS creation, please mind that it must be greater than minimal Linux RedHat installation size (~450-500Mb). Otherwise, Disk Limit will be turned off during the installation.

Related Docs:   VPS Installation • FreeVPS Docs







Home   Products   Services   News
© Copyright. . PSOFT. All Rights Reserved. Terms | Site Map