this post was submitted on 04 Dec 2024
52 points (96.4% liked)

Linux

48658 readers
531 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
 

Not sure why that is, but I have 32 GB of RAM and I would like my system to utilize it as much as possible, but as you can see in the screenshot, the system is only using 5.66 GB of the physical RAM, but swap is still being used in a high number. Is this normal? Should I lower the swappiness to lower than 10? Should I let it be? Thanks
Here is the screenshot

you are viewing a single comment's thread
view the rest of the comments
[–] mexicancartel@lemmy.dbzer0.com 12 points 2 weeks ago (1 children)

It is probably normal. Don't decrease your swappiness too much.

I think it happened the following way:

See the "cached" ram is taking 19 gigs. Theese cached ram improves performance by keeping frequently used system files on ram. So the actual occupied amount of ram would be 5+19 ≈ 25gb. Thoose system files might be used more than other app's ram so that they have higher priority to be in ram. So at the time you opened certain other applications, the total ram usage including cached might be a little over the availiable ram and likely got swapped. The once swapped thing won't be cleared immediately or with any much priority. I often see swapped contents remain even after closing a bunch of apps which gave empty space in ram.

So its just normal but is it using swap without once opening enough apps to fill the availiable space with used+cached? If so I would also be concerned

[–] penquin@lemm.ee 8 points 2 weeks ago

Damn. I actually didn't even pay attention to the cached part, nor have I ever even known what it was for. Makes sense now. Thank you.