[systemd-devel] Memory in systemctl status
Reindl Harald
h.reindl at thelounge.net
Mon Sep 28 09:37:20 UTC 2020
Am 28.09.20 um 11:19 schrieb Benjamin Berg:
>> if i would set "MemoryMax" to 4G "Memory: 8.6G" would kill it when the
>> caches are accounted in that context
>
> No, the kernel kicks in and reclaims memory at that point. Which can
> mean either swapping or just dropping caches.
caches have *nothing* to do with the service itself
> It really sounds to me like ulimit fits better what you are trying to
> do. That is available through Limit*=, see systemd.exec.
hell first i want a output in "systemctl status whatever" which is true
and don't contain a ISO image downloaded by someone two days ago
not more and not less
httpd don't use 8.7 GB RAM - period
the only interesting memory is RES of all the processes
my Firefox on the desktop don't use 32 GB RAM even when VIRT shows that
and even if the latest download of a 10 GB file is somewhere in the OS
caches in case it's opened later - it's *free* memory
Main PID: 713 (httpd)
Tasks: 16 (limit: 1024)
Memory: 8.7G
CPU: 2h 24min 14.348s
CGroup: /system.slice/httpd.service
├─ 713 /usr/sbin/httpd -D FOREGROUND
├─2435242 /usr/sbin/httpd -D FOREGROUND
├─2435243 /usr/sbin/httpd -D FOREGROUND
├─2435931 /usr/sbin/httpd -D FOREGROUND
├─2435942 /usr/sbin/httpd -D FOREGROUND
├─2435944 /usr/sbin/httpd -D FOREGROUND
├─2435947 /usr/sbin/httpd -D FOREGROUND
├─2435948 /usr/sbin/httpd -D FOREGROUND
├─2435952 /usr/sbin/httpd -D FOREGROUND
├─2435954 /usr/sbin/httpd -D FOREGROUND
├─2435960 /usr/sbin/httpd -D FOREGROUND
├─2435966 /usr/sbin/httpd -D FOREGROUND
├─2435968 /usr/sbin/httpd -D FOREGROUND
├─2435969 /usr/sbin/httpd -D FOREGROUND
├─2435970 /usr/sbin/httpd -D FOREGROUND
└─2435972 /usr/sbin/httpd -D FOREGROUND
More information about the systemd-devel
mailing list