Skip to content

Commit 5ce06c9

Browse files
committed
CLOS-3583: Update physical memory limit documentation.
Add information about configuring a system-wide lower bound for pmem limit
1 parent c7fea22 commit 5ce06c9

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

docs/cloudlinuxos/limits/README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,32 @@ 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. 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+
You can configure the PMEM lower bound using the <span class="notranslate">`lvectl`</span> command:
242+
243+
<div class="notranslate">
244+
245+
```
246+
lvectl --set-pmem-lower-bound 512M
247+
```
248+
</div>
249+
250+
Alternatively, you can use the <span class="notranslate">`cloudlinux-limits`</span> command:
251+
252+
<div class="notranslate">
253+
254+
```
255+
cloudlinux-limits set --pmem-lower-bound 512M --json
256+
```
257+
</div>
258+
259+
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>).
260+
261+
The configured PMEM lower bound value is stored in the <span class="notranslate">`/etc/sysconfig/limits_lower_bounds`</span> configuration file.
262+
237263
#### Disable Page Cache accounting
238264

239265
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)