Hi, so i got this huge ram leak on manjaro and dont know what to do about,
htop doesn’t listed any proccess that could be using this amount on ram
i have been calculated that is about 4.5 GB
i have removed discord and wine since some pages listed this apps as possibles causes but nothing, i even have upgraded the kernel form 5.9 to 5.11 but the problem stay the same.
For people here to help you better more data is needed. Check this post on how to provide it.
Readers probably want to know:
Since it is beneficial to have used code in RAM what do you see on your system that is a RAM leak in your case?
How did you determine that this is a leak and can you share some more info?
Removing applications such as wine or discord will not lower RAM use when not started.
For example the output of free --human --total
would give a picture of your RAM in use on your system.
~]$ free --human --total
total used free shared buff/cache available
Mem: 15Gi 9,6Gi 572Mi 233Mi 5,3Gi 5,4Gi
Swap: 29Gi 1,0Mi 29Gi
Total: 45Gi 9,6Gi 30Gi
thanks for the help, as can be seen here, there is 15 gb aprox installed on the system, 5.3 gb used and 5.4 available, so where is the missing 4 gb? thats is a ram leak?
maybe it shouldn’t be called a leak because the 4 gb missing are permanent.
Thanks for the output, this seems like a normal system. Memory info is not so straight forward. I’m not good at explaining but there is a app site for that: https://www.linuxatemyram.com/ . I hope this explains it for you.
free --human --total
total used free shared buff/cache available
Mem: 15Gi 4,7Gi 10Gi 80Mi 684Mi 10Gi
Swap: 29Gi 0B 29Gi
Total: 45Gi 4,7Gi 40Gi
so this is a capture on a fresh restart, there are 4.7gb used, what i had understood is that this 4 gb should be listed as buff/cache, so the given page doesn’t explain why there are 4 gb used in a fresh restart since this is not “buff/cache”. i have been thinking that maybe this memory is reserved for the integrated gpu the intel hd 630 uhd, but i cannot say for sure.
i don’t get it, can you give me more info about the relation betwen tmp, tmpfs and the ram? i have been reading about but it is supposed that this files should be cleaned after a restart, but there arent.
But in linuxatemyram.com-play.html i manage to run the test and it run until 10814 MB, so the there are 4 gb that i can’t use and are not listed in htop process
after a wandering the web searching for clues in the matter i find the file /proc/meminfo, so i process it in calc i get the following table, i think that it must explain where is my 4 gb but i dont know what means anything below “swapCached”. some halp pls
( i get this info whitout aplications running .)
I am more inclined to think this is hardware related - somehow - I don’t know - but if you system is build with 4x4G modules and one is flaky - that would explain a lot.
So I suggest you start troubleshooting by pulling 3 blocks - and reboot to test.
If that is not possible then boot the system using memtest+ ISO and run some testing
sudo pacman -Syu memtest86-efi
reboot and hold Shift to access grub menu - select memtest
This is the result after a fresh reboot, after 8 minutes when I launched Firefox with many addons; I have 16 GB of RAM.
After some day of uptime, I can also reach 4 and more GB of used RAM, but especially high value of cache from free -h (also 10 GB of cache); the system is always smooth and reactive.
Yep: I want more used cache as my system can handle; in facts I set vm.vfs_cache_pressure=5 and the system, as I’ve said here and elsewhere, is amazingly smooth and fast.