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

Linux

47994 readers
1811 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
[–] [email protected] 10 points 10 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.

[–] [email protected] 1 points 10 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.

load more comments (2 replies)