this post was submitted on 15 Feb 2025
40 points (100.0% liked)

Linux

1267 readers
144 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

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

top 10 comments
sorted by: hot top controversial new old
[–] Shimitar@downonthestreet.eu 12 points 1 week ago

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%.

[–] eneff@discuss.tchncs.de 12 points 1 week ago (1 children)

Why do you care so much about memory usage?

Unused RAM is wasted RAM.

[–] 2xsaiko@discuss.tchncs.de 2 points 1 week ago (1 children)

It’s apparently jumped by almost a third of all of their available RAM. That’s pretty significant.

[–] eneff@discuss.tchncs.de 4 points 1 week ago

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.

[–] qjkxbmwvz@startrek.website 6 points 1 week ago* (last edited 1 week ago) (1 children)

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 automatically be freed up when needed and you should never run this except for debugging (or maybe benchmarking).

[–] MonkderVierte@lemmy.ml 1 points 1 week ago* (last edited 1 week ago)

Rimworld mods sometimes occupy 10gb RAM after a crash/force-close. That one helps.

But don't set up a cronjob running it regularly, that causes issues.

[–] Xanza@lemm.ee 5 points 1 week ago (1 children)

It's allocated memory in the cache. It's not used, it's earmarked for first usage.

This is standard memory management.

[–] 2xsaiko@discuss.tchncs.de 6 points 1 week ago

I’m pretty sure only the yellow bar on the right of that indicator is cache. Green is actually being used by processes.

[–] MonkderVierte@lemmy.ml 2 points 1 week ago* (last edited 1 week ago) (1 children)

Remove Modemmanager if you don't use it, replace Network-manager and wpa_supplicant with connman or iwd, maybe look if you can remove elogind since you already use seatd.

Btw, syslogd, the reference implementation? Not syslog-ng?

And, uh, Systemd doesn't do supervision by itself, needs a service for it?

[–] greywolf0x1@lemmy.ml 1 points 1 week ago

Iwd is so smooth to use