this post was submitted on 26 Nov 2024
526 points (97.6% liked)

196

16557 readers
2094 users here now

Be sure to follow the rule before you head out.

Rule: You must post before you leave.

^other^ ^rules^

founded 1 year ago
MODERATORS
 
top 50 comments
sorted by: hot top controversial new old
[–] MystikIncarnate@lemmy.ca 9 points 6 hours ago (3 children)

I work in tech, and I don't understand people's obsession with having all their RAM free at all times.

If you don't use it, why do you have it?

Windows (not the best OS, but the one I know the most about), will lie to you about how much memory you have that's free. It puts data in RAM as cache. In the event you need that data, it's already loaded in RAM. Usually this is stuff like DLLs and executables for programs.

There's a difference between "free" memory, and "available" memory.

In addition, RAM is always going down in price, so 32G today costs what 16G did, some number of years ago. The same can be said for 16G vs 8G, etc. Though, the comparison becomes less relevant as you get into much smaller and older memory types, since the cost per dimm will only ever go so low.

Buy the memory, use as much of it as you can, as often as you can. Go wild with it. Enjoy.

[–] cypherpunks@lemmy.ml 1 points 37 minutes ago* (last edited 33 minutes ago)

I work in tech, and I don’t understand people’s obsession with having all their RAM free at all times.

If you don’t use it, why do you have it?

Windows (not the best OS, but the one I know the most about), will lie to you about how much memory you have that’s free. It puts data in RAM as cache. In the event you need that data, it’s already loaded in RAM. Usually this is stuff like DLLs and executables for programs.

There’s a difference between “free” memory, and “available” memory.

Linux and macOS do the same, although I wouldn't call it lying per se :)

There is certainly a lack of understanding of the difference between free and available RAM. TLDR: yes, free RAM is indeed wasted RAM.

If you actually have a lot of free RAM, it's probably because you either booted or freed a lot of RAM very recently. After using your computer for a while, most of your available RAM should not be free but rather being used for page cache and other caches.

After a program has just read and/or written more data from disk than will fit in available RAM, the kernel's page cache (which is typically the bulk of that not-free-but-available memory) should be mostly populated by the most recent of those operations. This means that if that program (or any other program) reads those files again, before they are evicted from cache by other things, they will not need to wait for the disk and will get them back much faster.

However, managing all of this is the kernel's job, and the not-free-but-available RAM being used for page cache is not (in any OS, as far as I know, though I mostly know Linux) attributed to the program(s) responsible for putting things there.

So, when people are complaining about an application using 40% of their RAM it is not necessarily due to them misunderstanding free-vs-available RAM. The used number for an application does not include the portion of the system's not-free-but-available RAM which the application is also responsible for occupying.

(If you want to know which programs and/or which files are responsible for occupying your page cache... on Linux at least, it is not really possible without instrumenting your kernel. There are a variety of tools that let you see which blocks of a given file are cached, but there isn't a reverse mapping from blocks to files.)

[–] Johanno@feddit.org 9 points 5 hours ago

Use all the RAM you want, but if another program needs it give it back ffs!

[–] HelloHotel@lemmy.world 8 points 6 hours ago* (last edited 5 hours ago)

For me there are programs that "can acceptably use that much RAM" and those that it's "unacceptable", to me. what's 20% to 40% of my gaming rig's resources may be uncomfortably taxing and laggy for my laptop. Its okay to waste resources on my gaming rig but the laptop needs all it can get. I accept some software will not reasonably run on the laptop. My employer has stuck me on 10yo hardware before, running windows 10 pro + intrusive expensive antivirus and nobody is around to question why their computers are getting 5-15fps and locking up for a minute or two when you open chrome. It becomes normal. Any software is the host and/or backbone for other running software should focus on reducing it's own resource usage for the sake of its children.

[–] Draconic_NEO@pawb.social 23 points 8 hours ago (2 children)

Hating furries is already really cringe, but even more so when you have an anime profile picture. At that point it feels hypocritical.

[–] gmtom@lemmy.world 4 points 6 hours ago (1 children)

Me when I take a joke seriously.

[–] Tiefkuehlkost@feddit.org 6 points 7 hours ago

Why the fuck is fuckin censored hut stuff like tailplugs not xD, what a fuckin bull shit.

[–] CheeseNoodle@lemmy.world 6 points 7 hours ago (2 children)

6 gig of ram on a browser!? wtf people close your old tabs.

[–] Swedneck@discuss.tchncs.de 3 points 4 hours ago

counterpoint: why does it need to keep the tabs in ram? either just discard the data and only keep the url, or if it would otherwise double check whether you want to close a tab then save things to disk cache after 5 minutes..

[–] szczuroarturo@programming.dev 7 points 7 hours ago

Exatcly do it correctly and use multiple browsers each for a very specific type of work/thing you do you animals.

[–] uriel238@lemmy.blahaj.zone 2 points 6 hours ago

I still think the catgirl paws salute should be the new salute of the American Résistance.

I also think the catgirl paws salute should be recognized as a salute.

[–] sircac@lemmy.world 2 points 7 hours ago

Already chossed the plug kind

[–] modest_bunny@lemm.ee 38 points 16 hours ago (1 children)
[–] user224@lemmy.sdf.org 17 points 9 hours ago (1 children)

Source: https://xenia.chimmie.k.vu/ (She has more art, I recommend checking it)

[–] Draconic_NEO@pawb.social 3 points 8 hours ago (1 children)

Would be cool if people actually used this as a replacement to their Firefox icon, or if there was a Firefox fork that used this itself for it.

[–] user224@lemmy.sdf.org 4 points 8 hours ago* (last edited 2 hours ago) (1 children)

I do!

And I found this guide to put it into the new tab page, though I haven't tried to do so: https://this.squirrel.rocks/ff_newtab_logo

[–] Draconic_NEO@pawb.social 1 points 7 hours ago

Really cool, though personally I would've resized the image slightly so that it would be the same size as the OG Firefox logo.

[–] AVincentInSpace@pawb.social 57 points 17 hours ago

JUST BECAUSE I USE FIREFOX DOESN'T MEAN I'M A FURRY!

I mean, I am a furry.

BUT NOT BECAUSE I USE FIREFOX!

[–] unexposedhazard@discuss.tchncs.de 172 points 20 hours ago (1 children)

Bro has an anime profile pic and acts like he doesnt already have the tail plug in smh

[–] pennomi@lemmy.world 113 points 20 hours ago (1 children)

Not only that, but the character in that profile pic often sprouts cat ears when she has strong feelings.

[–] Kolanaki@yiffit.net 87 points 20 hours ago (5 children)

Hating furries is stage 1 of becoming a furry.

[–] AVincentInSpace@pawb.social 37 points 17 hours ago (2 children)

Ew! A Furry! ⬆

[–] TheSlad@sh.itjust.works 8 points 12 hours ago (2 children)

Soon the world shall be furries. And finally there will be peace on earth.

[–] AVincentInSpace@pawb.social 3 points 7 hours ago* (last edited 7 hours ago)

amen.

(although reasonably i think you might have too much faith in us. a society wide desire to be a colorful dog has the power to accomplish a great many things but peace on earth is a tall order)

[–] EldritchFeminity@lemmy.blahaj.zone 43 points 18 hours ago (1 children)

I haven't heard somebody use the word "murring" in like a decade. Methinks they're farther down the pipeline than they want to admit.

[–] Live_your_lives@lemmy.world 4 points 11 hours ago
  1. The Internet is full of old memes that slowly make their way around to different communities and this could be one of them.
  2. What in the world is "murring"? This is the first time I've ever heard of it.
load more comments (3 replies)
[–] dditty@lemm.ee 85 points 20 hours ago (2 children)

I switched back to Firefox over a year ago and I have not noticed it using much less RAM than Chrome tbh. It's definitely the better browser for all the other reasons, but I wouldn't list memory utilization as a big advantage over other browsers

[–] Draconic_NEO@lemmy.dbzer0.com 7 points 9 hours ago* (last edited 9 hours ago)

Most browsers these days have issues with high RAM usage, and memory leaks to. I'd recommend trying to limit the RAM of the browser, it stops it from eating up so much.

Here's how I did it on linux. I'm sure there's a way to do it if you're on Windows though (might not be as good though).

Desktop file to limit Firefox to 8GB of RAM

[Desktop Entry]
Version=1.0
Name=Firefox RAM limit 8GB
GenericName=Firefox Ram limit 8GB
Comment=Limit RAM for Firefox to 8GB;
Exec=systemd-run --user --scope -p MemoryLimit=8G firefox
Icon=firefox
Type=Application
Terminal=false
Categories=Utility;Development;
StartupWMClass=Firefox

This is a script to limit Firefox to 8 gigabytes of RAM, you may change it lower or higher depending on what your needs are by changing the number from 8 to whatever else you'd like. Fair warning though setting it too low will cause Firefox to lag very badly, and will crash chromium browsers outright (Ask me how I found out).

[–] cm0002@lemmy.world 71 points 20 hours ago (1 children)

The whole RAM thing is way overblown. Both browsers request a lot of RAM allocation, but only actually use a fraction of it. When the OS needs it for another process this "allocated, but unused" pool is the first to get used when "Free and unallocated" is gone

Problem is windows reports it all as the same in the task manager so people see that "70%" usage and freak out.

Tl:Dr Windows task manager is a fuckin lier.

[–] otacon239@lemmy.world 45 points 20 hours ago (7 children)

There’s also the idea that free RAM is somehow a good thing. In an ideal system, the RAM would always be “full” of potentially useful data. Having a bunch of empty RAM means that it’s not being useful. That space could be used to hold plenty of regularly used files that would be instantly loaded instead of having to pull from the drive again.

I don’t know when everyone started getting concerned with RAM usage, but in a perfect system, it would hold onto all of your frequently used programs and files that it could fit from boot and then those would load instantly.

Some Linux distros even allow loading the entire OS into RAM for wild speeds.

Idle RAM is just that. It does you no favors. Now, I do understand that you don’t want to be completely out, but we act like having 80% free is a goal for some reason.

[–] Draconic_NEO@lemmy.dbzer0.com 7 points 9 hours ago

Having programs steal or sit on RAM without using it is never a good thing. That's why it's called a memory leak, because it's as if the free memory is leaking away. And it gets deprived from other apps that might need it more than Firefox or chromium does.

Your idea only works if programs actually take only as much ram as they need and give it back when done, but they don't do that, they usually sit on it until it's pried from their cold dead fingers. That's what memory leaks are, and modern browsers these days are extremely prone to them.

load more comments (6 replies)
[–] franklin@lemmy.world 26 points 17 hours ago* (last edited 17 hours ago)

Listen using Firefox doesn't make me a furry.

I mean I am but that's not why.

[–] python@programming.dev 1 points 8 hours ago

I mostly use Firefox when I use a browser (App-using zoomer) but I actually might swap to something Chromium based at some point? My only reason for it is the resentment I'm building up for Firefox while writing Playwright tests at work. It takes like twice as long as chrome and keeps flaking due to random timeouts ughh

[–] als@lemmy.blahaj.zone 41 points 20 hours ago (1 children)

tailplug is fine but I draw the line at "fuckin"

load more comments (1 replies)
load more comments
view more: next ›