1

We have 342 RHEL 8.6 machines and all machines are with the same situation when systemctl service takes much more memory then the PID itself :

systemctl status presto.service ● presto.service - Perforce Server . . . Main PID: 3683651 (presto-server) Tasks: 284 (limit: 3297083) Memory: 298.1G CGroup: /system.slice/presto.service 

While the presto PID itself consume around 32G:

more /sys/fs/cgroup/memory/system.slice/presto.service/memory.usage_in_bytes 31329787904 --> ~32G 

We can also check how much presto PID consuming by ps aux --sort=-%mem | head.

In any case we can do workaround as the follwing in order to limit the service as:

[Service] User=presto Group=presto_group MemoryMax=64000M MemoryHigh=60000M 

But before above setting we want to know how it can be that systemctl show consuming of ~300G while the presto PID itself takes much less - 32G

Here the command that systemctl controlled

# The type should always be set to "forking" to support # multiple Perforce processes: Type=forking # The command used to start Perforce: ExecStart=/home/presto/server/bin/launcher start ExecStop=/home/presto/server/bin/launcher stop Restart=always RestartSec=30s StartLimitInterval=0 StartLimitBurst=5 RemainAfterExit=no LimitNOFILE=65536 [Install] # Describes the target for this service -- this will always # be 'multi-user.target': WantedBy=multi-user.target 
 more /sys/fs/cgroup/memory/memory.stat 

enter image description here

6
  • 1
    What do you find in the memory.stat file of that cgroup? Commented Mar 25 at 13:43
  • about the /sys/fs/cgroup/memory/memory.stat , I am not near the cluster machines now , but if you can please tell me what to check on that file , Commented Mar 25 at 18:28
  • @grawity I update the Question with your request Commented Mar 26 at 10:34
  • 1
    I suspect that these are relevant to the problem: utcc.utoronto.ca/~cks/space/blog/linux/… and utcc.utoronto.ca/~cks/space/blog/linux/… Commented Mar 26 at 10:35
  • can you suggest what we can do in order to avoid this situation maybe kernel upgrade to latest? Commented Mar 26 at 10:54

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.