(Gentoo)Help me reduce my boot up memory usage
-
This is from a fresh boot of the system, except sshd I have not started anything else.
ram consumption used to be just 126-200 mb now it has jumped so significantly that I am concerned I might have unnecessarily bloated my system:I intend to use the system as a local server with an optional fully featured WM(Hyprland which is installed, but this screenshot was taken before it was loaded) for occasional use.
Ram conservation is a top priority and I would like to know if such a big jump in usage is normal or are there is something wrong with my system config
-
L [email protected] shared this topic
-
If you can live without Networkmanager, I'd disable it and move your network setup to a static ip. Networkmanager can hog resources.
-
free -m
andslabtop
output.I don't know when you had a clean boot using only 200MB, but it wasn't in the past few years with what you're running there.
-
total used free shared buff/cache available
Mem: 3354 350 3032 1 171 3004
Swap: 8191 0 8191
on another reboot the memory dropped back down? -
Why do you care so much about memory usage?
Unused RAM is wasted RAM.
-
It's just allocated in buff/cache. Only 354MB hard commit. You're fine.
-
It's allocated memory in the cache. It's not used, it's earmarked for first usage.
This is standard memory management.
-
Just download more RAM lol
-
It’s apparently jumped by almost a third of all of their available RAM. That’s pretty significant.
-
I’m pretty sure only the yellow bar on the right of that indicator is cache. Green is actually being used by processes.
-
When you want to turn it on, instead unplug it and go start a farm. Problem solved, requires zero ram
-
We joke but zram swap works wonders on low resource systems sometimes
-
I meant like in general..
I do agree it's worth investigating if it happens again. My best guess so far would be some kind of data written to a tmpfs. That'd explain it not being associated with a particular process, yet counting towards actual used RAM.
-
You can also drop cache for debugging by running something like
echo 3 | sudo tee /proc/sys/vm/drop-caches
But remember that the kernel knows best --- this RAM will be automatically be freed up when needed and you should never run this except for debugging (or maybe benchmarking).
-
Are you having performance problems? If not, what do you care?
-
Time for the classic https://www.linuxatemyram.com/
-
Although you may eventually want a ram
-
The buff/cache will free automatically when an application needs ram, until then it's useful for speeding up the system.
-
It just fucks your CPU usage
-
I don't see anything wrong here. Ram is supposed to be always as full as possible.
What is not needed by running programs should be full of disk pages cached. A system with lots of free ram is oversized or abnormal.
Also, today's kernels require swap space. On disk is a must for a server, and maybe consider even zram.
Having swap will allow the kernel to organize it's memory usage even better.
Don't over think ram as that is a field in which you will be wrong and the kernel will be right 99%.