brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: Unraid 7.4 has its own Memory limit field, no Extra Parameters needed

Unraid
~/tips/tip-unraid-74-memory-limit-field

grep -i "Memory cgroup out of memory" /var/log/syslog

Cap a container's memory with the new field in the advanced view of Unraid 7.4.

Before 7.4 the usual advice was to add a memory flag to Extra Parameters. Unraid 7.4 added a Memory limit field to the container form, in the advanced view.

Open the container, switch to advanced view, fill the field with a value such as 2g and apply. If an old flag is still in Extra Parameters, remove it so the two do not disagree.

Watch the app afterwards. A limit that is too tight makes the kernel kill the process, often a database, over and over. You can spot that in the system log:

grep -i "Memory cgroup out of memory" /var/log/syslog

If you see it, raise the limit or give the app less work. A limit protects the rest of the server, it does not make the app use less memory by itself.

Further reading: Unraid 7.4.0 release notes

More Unraid tips Change the RAID profile of a Unraid BTRFS pool with Balance Replace a disk in a redundant Unraid pool from the Main tab Test every Unraid drive with the DiskSpeed container See the XML behind a VM with the inline XML view in Unraid 7 Choose where a new VM's disk image is created with Unraid's storage override All Unraid tips (77) All topics

Link