this post was submitted on 05 Jul 2023
1728 points (99.1% liked)

Lemmy.World Announcements

28827 readers
5 users here now

This Community is intended for posts about the Lemmy.world server by the admins.

Follow us for server news 🐘

Outages πŸ”₯

https://status.lemmy.world

For support with issues at Lemmy.world, go to the Lemmy.world Support community.

Support e-mail

Any support requests are best sent to [email protected] e-mail.

Report contact

Donations πŸ’—

If you would like to make a donation to support the cost of running this platform, please do so at the following donation URLs.

If you can, please use / switch to Ko-Fi, it has the lowest fees for us

Ko-Fi (Donate)

Bunq (Donate)

Open Collective backers and sponsors

Patreon

Join the team

founded 1 year ago
MODERATORS
 

For those who find it interesting, enjoy!

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 21 points 1 year ago (4 children)

I know that the RAM cache is just taking advantage of otherwise free RAM and will be dropped in favor of anything else, but it does stress me out a bit to see it "full" like that.

[–] [email protected] 33 points 1 year ago (1 children)

It would stress me even more to see a lot of RAM doing nothing, that would be a shame! ;-)

[–] [email protected] 12 points 1 year ago (2 children)

Difference between Windows and Linux. Windows would only use what it needs. Linux pre-empts more and fills the RAM for what coul dbe needed.

It used to stress the shit out of me when I switched to Linux as I'd gotten used to opening task manager and seeing 90% free RAM. On Linux I'd be seeing 10% free and panicking thinking it was a resource hog.

The Linux-way is the best way.

I use Arch btw ;)

[–] [email protected] 9 points 1 year ago (1 children)

Both OSes do pre-caching and for both the standard tools to check usage nowadays ignore pre-cached elements when counting RAM usage.

[–] [email protected] 4 points 1 year ago

I had a feeling that 'factoid' may be out of date! Since I learnt it about the time of Windows XP when we were shown examples of how Linux and Windows memory management differed. It all made sense why Linux seemed to have full RAM even after a big upgrade but WinXP gave the 'illusion' of having lots of free RAM to use. ~ 20yrs ago!

I think we used SuSE Linux 7.3!

I still hold a savage hatred of all RPM-based distros after dealing with the hell of early 2000's editions (Redhat, Mandrake & Suse). Though I did like SuSE KDE's colours when it worked!

[–] [email protected] 4 points 1 year ago (2 children)

But Windows also does pre caching?

[–] [email protected] 4 points 1 year ago

It probably just didn't mark that memory as "used" in the task manager.

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago)

I discovered this about 20yrs ago and there's been a lot of drugs & drink since then.

I do remember I could open my shit-hot 256Mb RAM desktop with Windows XP taskmanager and it shows a whopping 128Mb free RAM. 😎

Then I'd boot into my '733T H4X0r' Suse Linux 7.3 and top would show 5Mb free RAM. 😱

This caused much upset until I found out the two OS's have (had?) fundamentally different memory utilisation philosophies.

May not be the case anymore but it was late 90s/early 00s.

[–] [email protected] 14 points 1 year ago

That's how it supposed to work, free RAM does nothing :)

[–] [email protected] 6 points 1 year ago (2 children)

It’s free real estate!

If you had this much buffer memory what are the reasons to have swap space as well?

With my servers I’m paranoid having swap enabled will inadvertently slow stuff down. Perhaps there’s a reason to have it that I’m unaware of?

[–] [email protected] 7 points 1 year ago

If you had this much buffer memory what are the reasons to have swap space as well?

Many programs do stuff once during startup that they never do again, sometimes creating redundant data objects that will never get accessed in the configuration its being run in. Eventually the kernel memory manager figures out that some pages are never used but it can't just delete them. If swap is enabled it can swap them to disk instead. It frees up that RAM for something more important. It's usually minor but every few MB helps.

[–] [email protected] 5 points 1 year ago

I personally like having some swap as during low memory situations (which lemmy gets at least once a day on my small instance) everything slows down rather than getting culled by the oom killer. It's not a replacement for monitoring, but it does extend the timeframe to react to things.

[–] [email protected] 3 points 1 year ago

Memcache usually takes all the assigned memory regardless of usage so seeing high usage isn't always unusual. That's assuming the lemmy servers are using some kind of session caching solution.