[systemd-devel] Memory in systemctl status

Reindl Harald h.reindl at thelounge.net
Mon Sep 28 16:49:12 UTC 2020



Am 28.09.20 um 18:33 schrieb Lennart Poettering:
> On Mo, 28.09.20 14:22, Reindl Harald (h.reindl at thelounge.net) wrote:
> 
>> honestly: do you realize that i know very well how the memory management
>> of Linux works and that it's pretty fine but not part of the topic at all?
> 
> Reindl, did you see who you are replying to here? 

surely, that's why i tried to make clear that i don't need any education
about the memory management of the Linux kernel, *it's not* topic at all

> Maybe don't try to
> argue with Linus' second-in-command about what Linux memory management
> doesn't or does do

i don't and didn't ever

hell: the Linux memory management *is not* part of the discussion, it's
about what *you* show in systemd and given that htop can easily distinct
between VIRT/RES/SHARED i expect that systemd could also display proper
values without cache

i don't give a fuck about 12Gi *systemwide cache* which is a large part
of the 8.5GB you are showing fro httpd.service, it makes sense to
display that as *additional info* but not saying "that's the memory used
by this service"

[root at arrakis:~]$ systemctl status httpd.service
● httpd.service - Apache Webserver
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled;
vendor preset: disabled)
  Drop-In: /etc/systemd/system/httpd.service.d
           └─lockdown.conf
   Active: active (running) since Sun 2020-09-20 07:53:39 CEST; 1 weeks
1 days ago
  Process: 2456787 ExecReload=/usr/sbin/httpd $OPTIONS -k graceful
(code=exited, status=0/SUCCESS)
 Main PID: 713 (httpd)
    Tasks: 16 (limit: 1024)
   Memory: 8.5G

[root at arrakis:~]$ free
              total        used        free      shared  buff/cache
available
Mem:           15Gi       2.3Gi       361Mi       206Mi        12Gi
   12Gi
Swap:            0B          0B          0B



More information about the systemd-devel mailing list