<div dir="ltr">Because the zram bucket is compressed and thus requires typically half the amount of real RAM.<div>So if you have 1GB of RAM and set up a 512MB zram for swap, those 512MB when completely used up will typically only consume 256MB of RAM. So you will end up with 768MB of actual RAM, + 512MB of swap = 1.25GB of RAM instead of 1GB.</div><div>Tweak ratios to suit your workload, but that's the basic gist of it.</div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Oct 12, 2018 at 6:24 PM Fred Gleason <<a href="mailto:fredg@paravelsystems.com">fredg@paravelsystems.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">On Oct 12, 2018, at 13:15, Gordan Bobic <<a href="mailto:gordan@redsleeve.org" target="_blank">gordan@redsleeve.org</a>> wrote:<div><br><div><blockquote type="cite"><div><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">It depends on what you are running on that system. If you have 1GB of RAM and want to run a desktop environment web browser, that'll go pretty poorly without swap.</span></div></blockquote></div><br></div><div>So how does putting swap on RAM help that situation? You’re not increasing the overall memory space by doing so, but merely partitioning it into two different buckets (while also adding the complexity and performance overhead of accessing the part that is now ‘swap’).</div><div><br></div><div>Cheers!</div><div><br></div><div><br></div><div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">|----------------------------------------------------------------------|</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">| Frederick F. Gleason, Jr. |              Chief Developer             |</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">|                           |              Paravel Systems             |</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">|----------------------------------------------------------------------|</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">|          A room without books is like a body without a soul.         |</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">|                                         -- Cicero                    |</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">|----------------------------------------------------------------------|</span></div></div><div><span style="font-variant-ligatures:no-common-ligatures"><br></span></div></div>_______________________________________________<br>
Arm-dev mailing list<br>
<a href="mailto:Arm-dev@centos.org" target="_blank">Arm-dev@centos.org</a><br>
<a href="https://lists.centos.org/mailman/listinfo/arm-dev" rel="noreferrer" target="_blank">https://lists.centos.org/mailman/listinfo/arm-dev</a><br>
</blockquote></div>