What to do with lots of ram?
I have 32 gigs of RAM and I rarely use more than 4. I would like to take advantage of that and so far i have enabled zram and makepkg in memory.
I would like to use anything-sync-daemon as well, but what folders should I put in ram and does it really do that much in terms of speed?
And do you have any recommendations what other things I could consider?
About this post
- Posted
- Archived
- Score
- 258 · 99% up
- Kind
- Text
- ID
- pqlpdf
248 comments
Run VSCode and slack on the same machine.
Honestly, language servers for rust or go are eating a lot of memory
clangd sometimes goes berzerk too, specially if there are some jumbo libraries involved.
Add python and js to the list, they're a very significant part of my resource usage on my machine
Alternatively, get forced to use Teams at work. Watch your RAM go byebye.
I have to run teams and slack because my work uses slack and our client uses teams
This is an underrated comment. I'm buying a new laptop because my (more than decent) current one with 8gb soldered ram is having difficulty handling Teams...
You should try Intellij & Android Studio.
I love intellij, set to 8GB max RAM, 4 projects open, 24GB used up most of the time, haven't had any prompt to increase the ram. 🙂
Though my projects are small
And tabnine! This damn IA plugin almost codes by itself, but can blow whatever amount of RAM you have.
Deleted before we saved it.
Install Windows
In a VM
In a VM
LOL
I needed that good laugh. Thanks, bro.
I don't think 32gb of ram would be enough for windows.
Funny. Win7 runs just fine on 2gb
Preload your most used applications?
kinda useless if you have an ssd
Access to ram is exponentially faster than to the fastest ssd.
Non of these are actively maintain anymore, although I don't know if it matters?
Play heavily modded Cities Skylines.
I actually had to start a new save because 24 GB wasn't enough to load the map anymore and removing mods broke the save file.
That and how piss-poor the steam workshop is as a mod management tool.
Damn.. Really?
Vanilla Cities Skylines wouldn't even be stable with 16 gigs on my last system lol. Frequent system crashes.
I love this post.
Me too! It might not really be what OP was looking for but there's actually helpful information here!
Me too! Also have 32GB of RAM although I use Ubuntu with KDE so my idle RAM usage is a bit more than the OP (usually between 5 to 7GB) , but still wondering what to do with all the RAM nonetheless lol
Not as much as I love your username
Install chrome. Open 2 tabs
This!
haha is it really so bad? (I don't use it and don't want to install, just curious)
no, 2 tabs uses *only* 700mb
Create an ad-hoc ramdisk, create a steam library on it, move a game to it, play.
EDIT: Obviously, move the game back to the old library when you're done, as the ramdisk will disappear on a reboot.
EDIT AGAIN: You can easily create a ramdisk with this function in your shell config(assuming bash)
So you can just run
mkrd 10to create a ten gigabyte ramdisk mounted on /mnt/ram.This. I saw someone do that and it's insane. Load times? Basically nonexistent. I'll definitely do this when I buy a new PC with more RAM.
Why I wish I had 128GB of memory and not 32. Single 32gb sticks are crazy expensive though, no way I can justify buying that over a graphics card right now
The kernel does this for you transparently for recently/frequently accessed files, no manual step necessary
Man! You made my day! I have 64 Gb of RAM and I'm going to download fresh arch) I hope my CsGo shouldn't lagging at all from RAM)
Run VMs
I have a ZFS raid running and use around 24 GB for caching.
Deleted before we saved it.
I have 3 servers with zfs on root with multiple distros Ubuntu, arch and Debian
Do not run zfs on root. Such a headache. Especially if it is a remote server and you do not have an IPMI
Put cache from firefox, on ram. https://easylinuxtipsproject.blogspot.com/p/ssd.html?m=1#ID9.1
ArchWiki article: https://wiki.archlinux.org/title/Firefox/Profile_on_RAM
Every day I learn something new. Thanks.
Trust your system. Linux already knows that leaving RAM unused is a waste, and will use spare RAM to cache disk I/O as much as possible. I'd sooner look into tuning that caching behaviour than stuff like anything-sync, to be honest.
Also, I'd argue that if your issue is too much RAM, using zram/zswap is actually counter-productive. All that does is block off a bunch of your RAM to be used as (compressed) swap. You're going to get a penalty as pages are swapped in and out, and as they're compressed and decompressed. If RAM isn't a concern, I'd consider disabling swap entirely.
isnt the system smart enough to not use swap unless truely necessary? (I use swap for hibernation on my laptop)
It depends on the value of
vm.swappiness. A value of1means "don't use swap unless truly necessary", it defaults to 60 which swaps a lot more aggressively.There's no such thing as too much RAM.
That's because of slow(er) I/O. Not relevant if your swap is actually RAM.
Negligible.
There's still slower I/O, and that's not all of it. If you try to access a swapped page, the CPU has to throw a page fault, the kernel has to take over to swap the page back in, do the decompression step and then return control back to the program. You might call it negligible (and in practice it generally is) but if you have RAM to spare there's really no point to it, and you will get better performance not doing this.
It certainly wouldn't be negligible if you're dedicating too much memory to it as you'd be constantly swapping, and you'd mess up the kernel's ability to do efficient caching as well.
Create a window manager that runs on chromium.
Electron desktop environment... LOL
Genius idea. Can someone make this just for the meme please.
Try edex-ui
Run two electron apps at the same time
That works fine on 8GB. I can easily run Chromium, Spotify, Signal, Discord and only reach about 3GB ram usage total.
Deleted before we saved it.
Deleted before we saved it.
dd if=/dev/zero of=/tmp/usefor32gigsofram
It should be if=/dev/random
Too slow. Even /dev/urandom is comparatively slow.
You're clearly delusional, 32 GB of RAM is not enough in this day and age. (jk)
You just need to run a bunch of "apps" from big name companies, each of which is basically shipping it's own copy of Chrome as part of some cross-platform "framework" like Electron or React Native
Then you should do Android development - run Android Studio, fetch some big project with a lot of modules, and have a Gradle daemon on - give them both 4096M of memory to play with. And then run an Android emulator for development and testing.
Then, you should run a bunch of containers - not sure which the heavy hitters are, I'm sure someone can help you with that.
Your system will be brought to it's knees with just the first step.
I have 64GB
32GB is for VMs (nextcloud, samba, proxy and some others) rest is filesystem caches, tmpfs for compiles and my vm-build script (pacstrap in tmpfs is fun)
i am thinking about getting two more 32gb ecc ram (total 128gb) and use them for a lv read cache
What is the specification of your system?
AMD 4750G, 64GB ECC RAM, 4x6TB RAID10, 3x12TB RAID5, 2x1TB NVME rootfs
Well... it's my NAS and homeserver...
Run Arch entirely from RAM?
Machine learning / Deep learning.
Host Minecraft server
This probably won’t put a dent in his RAM. Minecraft typically never uses more than 4GB of RAM in a single player world, and even with a small amount of players most likely won’t exceed 10GB. You’d need a very large amount of players to actually use up all 32GB of RAM.
**laughs in modded minecraft**
I can easily host a minecraft server on my android phone, it handles pretty well 2-4 people on the serv:D
But yeah, plugins and mods require some aditional ram of course
My phone has 4gb ram. The serv was running on 2048mb ram.
Start working on some huge project which takes dozens of minutes to even compile
Compiling ungoogled-chromium will use it.
Compile AOSP. Google builds it on 64GB ram machines lol
You setup super optimized TUI application, and use only use 4gb. At least in my experience.
Run Arch vm's that are all made for one task in QuebesOS
Neofetch
All I see on this post is a demonstration that no operating system should not have to use so many computer resources at idle.