GustavoM@lemmy.world to Linux@lemmy.mlEnglish · 11 months agoAs a normal, boring user that does nothing special other than browse the internet and the occasional "casual coding" -- what am I supposed to do with 32GiB of ram?message-squaremessage-square56fedilinkarrow-up1104arrow-down13file-text
arrow-up1101arrow-down1message-squareAs a normal, boring user that does nothing special other than browse the internet and the occasional "casual coding" -- what am I supposed to do with 32GiB of ram?GustavoM@lemmy.world to Linux@lemmy.mlEnglish · 11 months agomessage-square56fedilinkfile-text
minus-squareNotAnArdvark@lemmy.calinkfedilinkarrow-up11arrow-down1·11 months agoHere’s a little script I’ve put in my $PATH, called memsum: #!/usr/bin/bash /usr/bin/ps -eo rss,command --sort -rss | egrep $1 | awk '{ hr=$1/1024 ; sum +=hr} END {print sum}' Now you can go: memsum firefox or memsum whatever and see that, actually, apps use a ridiculous amount of memory these days. I can get Firefox up to 8GB by using things like Office 365.
minus-squareCaveman@lemmy.worldlinkfedilinkarrow-up5·11 months agoBrowsers often use a lot of unreserved memory marked as free for whoever wants it. This is how you get 16GB browser sessions.
minus-squareSignfeld@lemm.eelinkfedilinkarrow-up1·11 months agoThanks for this, it’s so easy to just run this script when I’m curious. I got the warning “egrep: warning: egrep is obsolescent; using grep -E” so I just swapped that command to get rid of the message.
Here’s a little script I’ve put in my $PATH, called
memsum
:#!/usr/bin/bash /usr/bin/ps -eo rss,command --sort -rss | egrep $1 | awk '{ hr=$1/1024 ; sum +=hr} END {print sum}'
Now you can go:
memsum firefox
ormemsum whatever
and see that, actually, apps use a ridiculous amount of memory these days.I can get Firefox up to 8GB by using things like Office 365.
Browsers often use a lot of unreserved memory marked as free for whoever wants it. This is how you get 16GB browser sessions.
https://www.linuxatemyram.com/
Thanks for this, it’s so easy to just run this script when I’m curious.
I got the warning “egrep: warning: egrep is obsolescent; using grep -E” so I just swapped that command to get rid of the message.