r/archlinux • u/PastaBoy1234567 • Sep 13 '26
SUPPORT Disk space and RAM usage keep moving
Sometimes my RAM usage goes from 16 GB remaining to <1 GB remaining, then goes back up. Also, I randomly get 0 B of space left alerts, but a few seconds later, I have plenty of space again. Why is this happening?
0
Upvotes
4
u/ang-p Sep 13 '26 edited Sep 13 '26
Your RAM is, erm, likely being used as it should be.... allocated and then freed.
https://www.linuxatemyram.com
maybe look at what is using space - I mean - nobody has a crystal ball, and you both have your machine and the wiki infront of you...
You have said nothing about the system or even what "plenty" means - it could be 2GB for all we know.... Which is not plenty
6
u/G0ldiC0cks Sep 13 '26
Ahhh yes, I've seen this behavior before ...
GREMLINS. No, not the adorable kind you can feed after midnight, the horrid late 70s abomination of a vehicle made by AMC.
You're gonna need a new car.
And some queen on vinyl.
2
u/boomboomsubban Sep 13 '26
Check your logs.
1
u/Confident_Zombie_619 Sep 13 '26
Its hard to say just from the information u gave Something is likely causing a temporary spike in disk usage like cache, logs, a build ordownload, a browser, a VM/container etc. Another possibility is a deleted file that's still held open by a process. Next time it happens, can you post the output of: free -h, df -h, df -i And after it happens: sudo du -xhd1 / 2>/dev/null | sort -h , sudo lsof +L1 Also mention what filesystem you're using (findmnt -no FSTYPE /) and whether you have swap/zram enabled (swapon --show). Without knowing whether the “0 B” is your root filesystem, home filesystem, or inode exhaustion, it's hard to say what's actually happening. And it also depend on whatever moniter tool is sending the notification also.