htop-dev / htop

htop - an interactive process viewer

Home Page:https://htop.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Possible separation of dentries and inodes from main used memory

brauliobo opened this issue · comments

Here is my htop current memory usage:
image

After clearing the page caches with echo 1 > /proc/sys/vm/drop_caches, I get:
image

So roughly the same green part, but less orange part indicating less cache, which makes sense.

After clearing dentries and inodes cache with echo 2 > /proc/sys/vm/drop_caches, I get:
image

Which shows 1.7gb less memory usage (from 23.8gb to 22.1gb), which doesn't make sense to me.

I guess that this issue of dentries and inodes caches being reported as non cache application memory is a Linux issue.

Still, I wonder if there is a way to correctly separate dentries/inodes cached memory from the main (green) used memory?