Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on...
Note: An (*) indicates there is no official participation from that distribution here at LQ. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
06-24-2021, 02:51 PM
|
#1
|
Member
Registered: May 2019
Posts: 226
Rep: 
|
Why don't more distros use ZRAM and EarlyOOM by default.
I first discovered this stuff when using Fedora. I'm now daily driving Debian and have ZRAM and EarlyOOM setup. It runs so well, I don't understand why most distros just use a traditional SWAP partition and no EarlyOOM. ZRAM is extremely fast because it's compressing data onto the RAM instead of putting it on the storage drive. And EarlyOOM can be a life saver for a misbehaving app to prevent it from locking up the system. I've had only positive experiences. Why don't more user friendly distros have these setup OOTB?
|
|
|
06-24-2021, 07:09 PM
|
#2
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,385
|
Because of an attitude of "all the bleeding edge stuff Fedora do isn't for our users !!!" ?.
Don't worry, they'll eventually get on the bus.
|
|
|
06-24-2021, 09:29 PM
|
#3
|
Senior Member
Registered: Sep 2004
Distribution: slackware
Posts: 4,798
|
In an era where 16Gb or 32Gb of RAM is not uncommon, who needs swap space any more?
|
|
|
06-24-2021, 11:08 PM
|
#4
|
LQ Addict
Registered: Dec 2013
Posts: 19,872
|
Doesn't Ubuntu use that?
I'm pretty sure Linux Mint does, judging from lots of command output from various users here.
Also, isn't OOM a different scenario than swapping? Meaning, OOM means shutdown, swap means slowdown?
|
|
|
06-24-2021, 11:47 PM
|
#5
|
Member
Registered: May 2019
Posts: 226
Original Poster
Rep: 
|
Quote:
Originally Posted by ondoho
Doesn't Ubuntu use that?
I'm pretty sure Linux Mint does, judging from lots of command output from various users here.
Also, isn't OOM a different scenario than swapping? Meaning, OOM means shutdown, swap means slowdown?
|
No, Linux Mint uses a swap file and so does Ubuntu.
OOM isn't related to swapping, it kills processes that are consuming memory out of control and are at risk of locking up the system. ZRAM and OOM are both memory management features which Fedora adopted on the same release. That's how they're related.
|
|
|
06-25-2021, 12:02 AM
|
#6
|
Senior Member
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,916
|
Quote:
Originally Posted by rkelsen
In an era where 16Gb or 32Gb of RAM is not uncommon, who needs swap space any more?
|
The millions of Raspberry PIs, pinebooks, and other SBCs.
Code:
sudo swapon --show
NAME TYPE SIZE USED PRIO
/var/swap file 100M 0B -2
/dev/zram0 partition 3G 194M 100
|
|
|
06-25-2021, 12:47 AM
|
#7
|
LQ Addict
Registered: Dec 2013
Posts: 19,872
|
Quote:
Originally Posted by TheJooomes
No, Linux Mint uses a swap file and so does Ubuntu.
|
Well I'm 100% sure I've seen plenty of noobs(*) posting their fdisk output, and it contained half a dozen zram partitions.
(*) definitely unable to set it up themselves, so it must have been OOTB.
Quote:
Originally Posted by TheJooomes
OOM isn't related to swapping
|
That's what I said.
It was you who put them in relation:
Quote:
I don't understand why most distros just use a traditional SWAP partition and no EarlyOOM.
|
But I see now that it could be read differently.
|
|
|
06-25-2021, 04:28 AM
|
#8
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,276
|
Quote:
Originally Posted by rkelsen
In an era where 16Gb or 32Gb of RAM is not uncommon, who needs swap space any more?
|
https://chrisdown.name/2018/01/02/in...e-of-swap.html
|
|
3 members found this post helpful.
|
12-12-2021, 05:56 PM
|
#9
|
LQ Newbie
Registered: Aug 2020
Location: New York
Distribution: Arch Linux
Posts: 19
Rep: 
|
ZRam, No hibernation.
EarlyOOM, I'm not a fan of my OS randomly killing applications when RAM is full.
|
|
|
12-13-2021, 04:19 AM
|
#10
|
LQ Guru
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: One main distro, & some smaller ones casually.
Posts: 5,874
Rep: 
|
Never had any problems with using ram the conventional way, so why change.
Just because something is possible, doesn't mean it is best for everyone. 
|
|
|
All times are GMT -5. The time now is 12:20 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|