Skip to content

Commit 81df7aa

Browse files
authored
Merge pull request #281 from nkeshelava/CLOS-3583
2 parents c7fea22 + ce7394e commit 81df7aa

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

docs/cloudlinuxos/limits/README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,34 @@ In case of disk cache – if a user is starting to lack physical memory, the mem
234234

235235
When LVE goes over physical memory limit, CloudLinux OS will first free up memory used for disk cache, and if that is not enough, it will kill some of the processes within that LVE, and increment fPMEM counter. This will usually cause web server to serve 500 and 503 errors. Physical memory limit is a much better way to limit memory for shared hosting.
236236

237+
#### Physical memory lower bound
238+
239+
CloudLinux OS allows administrators to configure a lower bound (minimum value) for physical memory (PMEM) limits to prevent setting limits that are too low and could cause application instability. When a lower bound is configured, any attempt to set a PMEM limit below this threshold will be rejected with an error message displayed by CLI tool or CloudLinux Manager UI. This helps ensure that hosting accounts always have sufficient memory allocated for basic application requirements, preventing performance issues and unexpected application failures. The lower bound is enforced **system-wide** and applies to all limit-setting operations, whether performed through command-line tools or control panel integrations.
240+
241+
By default, the PMEM lower bound is not configured.
242+
243+
You can configure the PMEM lower bound using the <span class="notranslate">`lvectl`</span> command:
244+
245+
<div class="notranslate">
246+
247+
```
248+
lvectl --set-pmem-lower-bound 512M
249+
```
250+
</div>
251+
252+
Alternatively, you can use the <span class="notranslate">`cloudlinux-limits`</span> command:
253+
254+
<div class="notranslate">
255+
256+
```
257+
cloudlinux-limits set --pmem-lower-bound 512M --json
258+
```
259+
</div>
260+
261+
The lower bound value accepts standard memory format notations (e.g., <span class="notranslate">`512M`</span>, <span class="notranslate">`1G`</span>, <span class="notranslate">`2048M`</span>).
262+
263+
The configured PMEM lower bound value is stored in the <span class="notranslate">`/etc/sysconfig/limits_lower_bounds`</span> configuration file.
264+
237265
#### Disable Page Cache accounting
238266

239267
Since kmod-lve 2.0-53 (for CL8) and 2.1-17 (for CL9) we have released the new sysctl param `kernel.memstat_nocache`.

0 commit comments

Comments
 (0)