<div dir="ltr">TIL: <a href="https://fedoraproject.org/wiki/Changes/SwapOnZRAM">https://fedoraproject.org/wiki/Changes/SwapOnZRAM</a> ( last edit oct 2020 ) <div><br></div><div>When I first read this I thought: if you are swapping it's _becasue_ you ran out of ram, so why "swap" to ram?</div><div><br></div><div>TL:DR; it compresses the data.</div><div><br></div><div>also: NOT preallocated.</div><div><br></div><div>David</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Nov 25, 2020 at 8:18 AM Giles Orr via talk <<a href="mailto:talk@gtalug.org">talk@gtalug.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">A few days after upgrading the last of my machines from Fedora 32 to<br>
33, I noticed my main machine has acquired a new disk:<br>
<br>
NAME               SIZE FSTYPE      LABEL    MOUNTPOINT<br>
zram0                4G                      [SWAP]<br>
<br>
I didn't set that up, and I don't think it was there on F32.  So the<br>
OS has, without asking, co-opted 1/4 of my 16G of RAM to use as swap<br>
space.  This system has an SSD, so when I initially set it up (Fedora<br>
27), I made a conscious decision to go without swap space.  I rarely<br>
push the limits of 16G.<br>
<br>
But now I'm in the situation that I have only 12G of RAM, so the<br>
system will become memory-starved earlier ... and what will it do?  It<br>
will go to swap.  Which is RAM anyway.  How does this help?  To me<br>
this seems like adding complexity without adding utility.<br>
<br>
Can someone please explain A) if I'm correct about this behaviour in<br>
the first place, and B) why it's useful?  Thanks.<br>
<br>
-- <br>
Giles<br>
<a href="https://www.gilesorr.com/" rel="noreferrer" target="_blank">https://www.gilesorr.com/</a><br>
<a href="mailto:gilesorr@gmail.com" target="_blank">gilesorr@gmail.com</a><br>
---<br>
Post to this mailing list <a href="mailto:talk@gtalug.org" target="_blank">talk@gtalug.org</a><br>
Unsubscribe from this mailing list <a href="https://gtalug.org/mailman/listinfo/talk" rel="noreferrer" target="_blank">https://gtalug.org/mailman/listinfo/talk</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div><font face="sans-serif" size="2"><span style="letter-spacing:normal">David Thornton</span></font></div><div><font face="sans-serif" size="2"><span style="letter-spacing:normal"><a href="https://wiki.quadratic.net" target="_blank">https://wiki.quadratic.net</a></span></font></div><div><font face="sans-serif" size="2"><span style="letter-spacing:normal"><a href="https://github.com/drthornt/" target="_blank">https://github.com/drthornt/</a></span></font></div><div><font face="sans-serif"><a href="https://twitter.com/northdot9/" target="_blank">https://twitter.com/northdot9/</a></font><br></div></div><div><font face="sans-serif"><br></font></div><div><br></div></div></div></div></div>