this post was submitted on 17 Dec 2023
94 points (97.0% liked)

Linux

47418 readers
702 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] 3 points 9 months ago

Open ten tabs in Chrome. Maybe even twelve!

I don't think you need 32GB of RAM. 16GB should be enough, and 8 will still do for light tasks (though modern apps and websites are starting to push that, which is terrible). Your OS uses any RAM you don't use to cache files, which speeds up your system, reduces power consumption, and could save you some SSD wear by caching the writes.

If you haven't already, you can mount a tmpfs over your browsers' cache directories (a bunch of them in ~/.cache or ~/. config). It used to really speed up browsing back in the HDD days. I doubt it's still necessary, but hey you've got plenty of RAM, right?

If you really don't do anything but browsing, you could boot your entire OS into RAM and have a 0 SSD latency browsing experience.

You could also use the RAM to run a bunch of VMs or containers. I used to run a separate Pihole VM, for example; virtual machines are nice and isolated, so you don't risk ruining your /etc directory with a billion different configured services. The big downside of running such stuff on your machine is that you quickly end up with a whole bunch of duplicates (I have like four versions of postgres running on a server somewhere because I'm lazy) but if you have RAM to spare, that doesn't matter.

One container that may be worth looking at is Waydroid (or Anbox if you're on X11) to run Android apps on your desktop. I find that a bunch of different services have web interfaces thst just don't work as well as their apps, and running those can be nice. How much of a difference this makes will depend on the services you use, of course.

Lastly: don't underestimate the advantages of plenty of RAM when programming. It'll depend on what language you use, but many compilers will generate a million tiny files that will all be written to disk and read back. SSDs are fast, but random reads are still nowhere close to RAM speed. Your OS will hide most of this overhead, but I definitely felt the difference going from 16GB to 32GB because of file system caching alone.