0

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.

pormulsys
  • 125
  • 1
  • https://www.linuxatemyram.com/ 2. decrease swappiness or disable swap altogether - many people insist on it despite having more than enough RAM to never use it.
  • – Artem S. Tashkinov May 11 '22 at 09:24