this post was submitted on 17 Dec 2023
100 points (97.2% liked)

Linux

48256 readers
418 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
 

Title. Besides setting tmpfs to use 10GiB of it to store downloads.

you are viewing a single comment's thread
view the rest of the comments
[–] NotAnArdvark@lemmy.ca 10 points 11 months ago (3 children)

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

[–] olafurp@lemmy.world 5 points 11 months ago

Browsers often use a lot of unreserved memory marked as free for whoever wants it. This is how you get 16GB browser sessions.

[–] Signfeld@lemm.ee 1 points 11 months ago

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.