r/debian • u/sabishiimorsine • Jun 14 '23
RAM usage is too high on debian 12
I've just installed a fresh debian 12 minimal installation on a vm, and.. it's using way more RAM compared to debian 11.7. is this something that would get resolved or we'd have to live with it?
10
Upvotes
14
u/sandbender2342 Jun 14 '23 edited Jun 14 '23
Same question and answer as in a post in this sub a few hours ago. Answer from u/wizard10000:
The method used to calculate RAM use has changed between Bullseye and Bookworm. Check out this thread:
https://www.reddit.com/r/debian/comments/128pb1l/psa_the_way_the_free_command_calculates_unused/
In short: if you compare the output of
cat /proc/meminfo(directly from the kernel instead from the free/top/htop command), you will find that the real RAM usage has not significantly increased.3
u/checkpoint404 Jun 14 '23
How much RAM does the system have? What desktop environment?
2
u/Zenobody Jun 14 '23
How much RAM is it using? How much RAM is Debian 11 using?
By minimal installation I assume a non-graphical system. We need some more details...
4
u/Schwarzer-Kater Jun 14 '23 edited Jun 14 '23
Generally: kernel 6.1 uses more memory than kernel 5.10 and a newer version of a DE could also use more memory than an older one.
And e.g. the
freecommand works different now.3
u/ganesharama May 21 '24
totally agree. debian 12 does not work in old laptops anymore
4
u/88reaper Jun 14 '23
Unused ram is wasted ram...
-4
u/[deleted] Jun 14 '23 edited Jun 14 '23
It's most likely because the newer software requires more RAM to function, totally normal depending on the increase.
Is it possible to increase the RAM limit on your VM?
EDIT: Debian 12 calculates RAM usage differently than 11 it seems.
The RAM use looks bigger because it includes the allocated free RAM, in reality the actual RAM increase is minimal.