I think only cgroup_memory=1 should be enough.
How to put a limit (Memory Max=) on a systemd service in a Raspberry Pi?
-
edjalmo -
February 9, 2019 at 2:48 AM -
Thread is Resolved
-
-
Look this images.
I added a limit of 120M for the service. But when I do top shows it use 16% of memory. This is more than 125M (RPi 1gb of RAM).
I'm understanding things wrong or it's not working?
Ps:. apparently this service has 2 pid, whitch shows 16% is one (PID 640), and when I do systemctl status is another (PID 521).
-
Look this images.
I added a limit of 120M for the service. But when I do top shows it use 16% of memory. This is more than 125M (RPi 1gb of RAM).
I'm understanding things wrong or it's not working?
Ps:. apparently this service has 2 pid, whitch shows 16% is one (PID 640), and when I do systemctl status is another (PID 521).
It's working!
I don't know why top shows 16% (I think this is not the real memory RAM usage), but it work!
-
I don't know why top shows 16% (I think this is not the real memory RAM usage), but it work!
For the record:
Top shows the available memory in the KiB Mem line. The resident memory of the process is printed in the RES column.
-