Detailed memory load readout

Hello all, on my PLCnext AXC F 2152 I would like to understand and enquire about a few things. I have attached a picture showing the free and top command within an SSH connection to the controller. I would like to understand and be able to see where the approx. 200Mbyte of buff/cache usage is coming from, is there a command for this? In htop I can see the respective services and their load, unfortunately I cannot distinguish which service counts as „active“, which belongs to the „buffer pages“ and which service occupies the cache. Can someone tell me where I can see exactly which services are causing the 200Mbyte cache/buffer load? kind regards

nilsbaurx

Hi Nils, as this is not really plcnext specific, we’ve spent a bit time on goolge and found the following approaches.

                                             1. You could list the top mem consuming processes with   

ps -e -o pmem,pid,user,args|sort -k1 -nr|head -10

                                             2. Or you could filter in top for Virtual Memory (following the article on [superuser.com](https://superuser.com/questions/398862/linux-find-out-what-process-is-using-all-the-ram))  

On Linux in the top process you can press < key to shift the output display sort left. By default it is sorted by the %CPU so if you press the key 4 times you will sort it by VIRT which is virtual memory size giving you your answer.

Hope that helps, Frank