All of lore.kernel.org
 help / color / mirror / Atom feed
From: mulyadi.santosa@gmail.com (Mulyadi Santosa)
To: kernelnewbies@lists.kernelnewbies.org
Subject: ZRAM setup and configuration
Date: Fri, 20 Oct 2017 18:05:40 +0700	[thread overview]
Message-ID: <CAGdaadb_SKyZwoxSJNT9MhUG_tFtWsjgz6i5Ouxz3w2w=R6Afg@mail.gmail.com> (raw)
In-Reply-To: <CAKZD7dwY4-WPof8BKzPGm3XaA=6JVB95XWT9cBwD7bgJe=aM0w@mail.gmail.com>

On Wed, Oct 18, 2017 at 1:22 PM, russel phillipe <russel.phillipe@gmail.com>
wrote:

>
> I am trying to setup ZRAM on ubuntu 4.4 kernel. I can load and create zram
> based swap devices fine as you can see below.
>
> # apt-get install zram-config
>
> cat /proc/swaps
> Filename Type Size Used Priority
> /dev/sda3 partition 16638972 0 -1
> /dev/zram0 partition 2036816 0 5
> /dev/zram1 partition 2036816 0 5
> /dev/zram2 partition 2036816 0 5
>
> How can I make it work. I tried running memtester and load it with stress
> stress --vm-bytes $(awk '/MemFree/{printf "%d\n", $2 * 0.9;}' <
> /proc/meminfo)k --vm-keep -m 1
>
> It does not look like it is being used.
>
> I notice that 'used' count in /proc/swaps does not bump at all. I even
> tried 'vmstat 1 100 ' while running stress and memtester and did not see
> any change in SO and SI.
> What am I missing?
>
> Thanks
> Russel
>
>
I think you need to bring more load. Using mem free, that means you don't
even push the buffer/page cache to be flushed out.

Without using too complicated math, I suggest to stress as much as twice
amount of available RAM. Hopefully it will bring difference.


regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virus-free.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20171020/a4d05596/attachment.html 

      reply	other threads:[~2017-10-20 11:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-18  6:22 ZRAM setup and configuration russel phillipe
2017-10-20 11:05 ` Mulyadi Santosa [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAGdaadb_SKyZwoxSJNT9MhUG_tFtWsjgz6i5Ouxz3w2w=R6Afg@mail.gmail.com' \
    --to=mulyadi.santosa@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.