[Arm-dev] Using zram-swap

Gordan Bobic gordan at redsleeve.org
Fri Oct 12 17:28:37 UTC 2018


Because the zram bucket is compressed and thus requires typically half the
amount of real RAM.
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.
Tweak ratios to suit your workload, but that's the basic gist of it.

On Fri, Oct 12, 2018 at 6:24 PM Fred Gleason <fredg at paravelsystems.com>
wrote:

> On Oct 12, 2018, at 13:15, Gordan Bobic <gordan at redsleeve.org> wrote:
>
> 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.
>
>
> 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’).
>
> Cheers!
>
>
> |----------------------------------------------------------------------|
> | Frederick F. Gleason, Jr. |              Chief Developer             |
> |                           |              Paravel Systems             |
> |----------------------------------------------------------------------|
> |          A room without books is like a body without a soul.         |
> |                                         -- Cicero                    |
> |----------------------------------------------------------------------|
>
> _______________________________________________
> Arm-dev mailing list
> Arm-dev at centos.org
> https://lists.centos.org/mailman/listinfo/arm-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/arm-dev/attachments/20181012/a0591851/attachment.html>


More information about the Arm-dev mailing list