Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Don't know if it's "legitimate", but I've got 64GB of RAM.

Allocating 16/32/64/128GB of NVME storage to swap is mostly just a waste of disk space for me. When I had swap enabled, it was constantly showing 0 used. (Not "pretty much none", literally "0.0".)

Further, if I'm trying to use more than 64GB of RAM... I'm fine with things getting OOM killed. I don't know that I've ever had anything OOM-killed when something wasn't clearly misbehaving. (I count Chrome eating 50GB of RAM because I haven't closed any tabs all week as me clearly misbehaving for the purposes of this discussion.)

And as far as zram... I guess same sorta arguments. I'm not running out of RAM, so why use up CPU cycles (and presumably battery power)? why use up brain cycles setting that up?

Until I've maxed out my system's RAM, I'd rather just throw more RAM at it.



Actually, zram is great! When an "excessive swap event" happens with zram, the system stays somewhat responsive, enough to let you kill the offender even from a graphical session. Without zram, I hope you were going for lunch break anyway...

zram does basically nothing while your working set fits into memory, no performance penalty.


Similar opinion here on my destop. I was running 128gb, only exceeded 64gb a handful of times. That said, my RAM started causing lots of issues (thought my ssd was going bad). I only bought 64gb to replace it with as I felt the extra cost wasn't worth it to maintain, also likely to upgrade early-mid next year.


I have access to a build machine with 256GB of RAM and it suffers from OOM killing during certain builds unless I allocate like 2GB of swap


Yeah I'm not trying to say "64GB is enough for anyone!" so much as "I have way more RAM than I realistically need for my workloads." I've got all the things I need open right now and `free` shows I've got 40GB of RAM available.

If your workloads involve using more RAM than you have you can... add more RAM, use swap/zram/etc, or just not do that thing.

Absolutely makes sense to me to throw some swap into the mix. I'd probably do the same if it were an infrequent use case (otherwise preferring to just add more RAM).

But also absolutely makes sense to me to not have any swap enabled on this machine right now.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: