I would like to know, what is cache usage per process. Is there a way to do it? I'm currently on Ubuntu.
The problem is, that my PC fills up whole cache, and then when I need RAM just starts swapping instead of freeing up the cache. Not an ideal scenario. Knowing what process "needs" all that would really help. I suspect ESET AV as its "niceness" is -20 in htop
. (yes I need AV, no its not my decision)
As you can see, there is 16GB worth of cache (some really small portion of this is buff, according to htop
). This is after about 45 minutes of uptime
. There is nothing swapped, but sometimes it just swaps like 5-7GB of data (when I start a VM or something like that).
USERNAME@HOSTNAME:[~]$ free -h total used free shared buff/cache available Mem: 23Gi 6,4Gi 354Mi 4,6Gi 16Gi 11Gi Swap: 23Gi 3,0Mi 23Gi
Anyway, even without this problem, knowing exactly who is caching, and how much would be a nice info to have.