Issue
What are the LVE default limits, and the recommended limits?
Environment
- CloudLinux OS
- LVE
Solution
Default Values
CloudLinux OS has support for the following limits:
Limits | Units | Default Value | Description | Supported Kernels / OS |
SPEED | % of a core, or HZ | 100% | CPU speed limit, relative to a single core, or specified in HZ (portable across CPU s) | all |
CPU [deprecated] | % of CPU | 25% | CPU Limit (smallest of CPU & NCPU is used) | all |
NCPU [deprecated] | number of cores | 1 CORE | Max number of cores (smallest of CPU & NCPU used) | all |
PMEM | KB | 1024MB | Physical memory limit (RSS field in ps/RES in top). Also includes shared memory and disk cache | all |
VMEM | KB | 0 | Virtual memory limit (VSZ field in ps/VIRT in top) | all |
IO | KB/sec | 1024KB/sec | IO throughput - combines both read & write operations | CL8, CL7, CL6 lve1.1.9+ kernel |
IOPS [lve1.3+] | Operations per second | 1024 | Restricts total number of read/write operations per second. | all |
NPROC | number | 100 | Max number of processes within LVE | all |
EP | number | 20 | Limit on entry processes. Usually represents max number of concurrent connections to apache dynamic scripts as well as SSH and cron jobs running simultaneously. | all |
Note
It is always better to disable VMEM limits (set them to 0) in your system at all because they are deprecated and are causing unexpected issues.
Recommended Values
Bellow you can find recommendations for your typical shared hosting setup. The recommendations don't depend on the power of your server. They only depend on how "fast" you want your hosting accounts to be.
Typical Hosting Account
- SPEED=100%
- PMEM=512MB
- VMEM=0
- IO=1024KB/s
- IOPS=1024
- NPROC=100
- EP=20
High End Hosting Account
- SPEED=200%
- PMEM=1GB
- VMEM=0
- IO=4096KB/s
- IOPS=1024
- NPROC=100
- EP=40
Useful links
https://docs.cloudlinux.com/shared/limits/#limits
https://docs.cloudlinux.com/shared/cloudlinux_os_components/#mysql-governor-limits
https://docs.cloudlinux.com/shared/limits/#best-practice
Comments
0 comments
Please sign in to leave a comment.