LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
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


Reply
  Search this Thread
Old 06-24-2021, 02:51 PM   #1
TheJooomes
Member
 
Registered: May 2019
Posts: 190

Rep: Reputation: Disabled
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?
 
Old 06-24-2021, 07:09 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
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.
 
Old 06-24-2021, 09:29 PM   #3
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,448
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
In an era where 16Gb or 32Gb of RAM is not uncommon, who needs swap space any more?
 
Old 06-24-2021, 11:08 PM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
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?
 
Old 06-24-2021, 11:47 PM   #5
TheJooomes
Member
 
Registered: May 2019
Posts: 190

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
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.
 
Old 06-25-2021, 12:02 AM   #6
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,885
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
Quote:
Originally Posted by rkelsen View Post
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
 
Old 06-25-2021, 12:47 AM   #7
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by TheJooomes View Post
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 View Post
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.
 
Old 06-25-2021, 04:28 AM   #8
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,847

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
Quote:
Originally Posted by rkelsen View Post
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.
Old 12-12-2021, 05:56 PM   #9
MattMadness
LQ Newbie
 
Registered: Aug 2020
Location: New York
Distribution: Arch Linux
Posts: 19

Rep: Reputation: Disabled
ZRam, No hibernation.

EarlyOOM, I'm not a fan of my OS randomly killing applications when RAM is full.
 
Old 12-13-2021, 04:19 AM   #10
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,491

Rep: Reputation: Disabled
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Zram, Zcache, and Zswap: Which One Is the Best For You? LXer Syndicated Linux News 0 08-26-2020 07:06 PM
LXer: Calculate Linux 20.6 Released with Zram, Zstd, and Better Wi-Fi Support LXer Syndicated Linux News 0 06-21-2020 09:50 PM
LXer: Ubuntu Linux Considers Greater Usage Of zRAM LXer Syndicated Linux News 0 12-08-2012 03:30 PM
LXer: Increased Performance In Linux With zRam (Virtual Swap Compressed in RAM) LXer Syndicated Linux News 8 10-04-2011 12:12 PM
More and more distros don't like the internet nonoitall Linux - Networking 17 03-29-2006 07:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 01:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration