>>> Reindl Harald <h.reindl@xxxxxxxxxxxxx> schrieb am 28.09.2020 um 11:37 in Nachricht <0e47024a-faeb-bb78-9b08-fdfad2a235e1@xxxxxxxxxxxxx>: > > 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 Are you really sure about that? I haven't checked apache recently, but years ago, static content was memory-mapped for performance reasons. > > 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 > _______________________________________________ > systemd-devel mailing list > systemd-devel@xxxxxxxxxxxxxxxxxxxxx > https://lists.freedesktop.org/mailman/listinfo/systemd-devel _______________________________________________ systemd-devel mailing list systemd-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/systemd-devel