Hello, cant attach image cause of file size, i have fresh void linux base install in tty and btop tells me i use 500-600MiB of ram but my top 3 services uses 7-25M and rest are 5>, free -m also tells me 600M but why this much with not much services?
So should i do used - cache = actual ram? Why then ive seen people have like 100M of ram, could u check my repplyes on this post?
@nous@programming.dev basically hit the nail on the head looking at available and subtracting from total ram will give you the closest answer to how much ram is being used.
Are you certain its actual ram usage and not reserved ? Usually when a program requests huge amounts of ram it is not given it until it actually writes to it. Try running
free
and check what it says.Freshly rebooted into tty and used free and used: 618876, the thing that takes the most ram is NetworkManager with 17M of ram
Ah, I accidentally read over that you used
free -m
.By top 3 services do you also include any programs ? For me
htop
itself already consumes 10 MB, what other processes are running ?
That number is about right assuming you have disk encryption enabled as the CPU will keep a decent chunk of ram occupied to handle decryption.
looking at the code for
btop
it appears to just grab this information about memory usage out of/proc/meminfo
directly, which you cancat
yourself to look at. so if it’s wrong, it seems likely that it’s wrong because meminfo is mistaken in some way.I have a very similar problem activity monitor says 13.6gb of ram used while btop says around 6.9gb.
(activity monitor top)
(btop bottom)
Probably activity monitor is counting buffers and caches which btop isn’t.