<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 18, 2017 at 1:22 PM, russel phillipe <span dir="ltr"><<a href="mailto:russel.phillipe@gmail.com" target="_blank">russel.phillipe@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>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.</div><div><br></div><div># apt-get install zram-config </div><div><br></div><div>cat /proc/swaps </div><div>Filename Type Size Used Priority</div><div>/dev/sda3 partition 16638972 0 -1</div><div>/dev/zram0 partition 2036816 0 5</div><div>/dev/zram1 partition 2036816 0 5</div><div>/dev/zram2 partition 2036816 0 5</div><div><br></div><div>How can I make it work. I tried running memtester and load it with stress</div><div>stress --vm-bytes $(awk '/MemFree/{printf "%d\n", $2 * 0.9;}' < /proc/meminfo)k --vm-keep -m 1</div><div><br></div><div>It does not look like it is being used.</div><div><br></div><div>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. </div><div>What am I missing?</div><div><br></div><div>Thanks</div><span class="HOEnZb"><font color="#888888"><div>Russel</div></font></span></div><br></blockquote><div><br></div><div>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.</div><div><br></div><div>Without using too complicated math, I suggest to stress as much as twice amount of available RAM. Hopefully it will bring difference.</div><div><br></div></div><div class="gmail_signature" data-smartmail="gmail_signature"><br></div><div class="gmail_signature" data-smartmail="gmail_signature">regards,</div><div class="gmail_signature" data-smartmail="gmail_signature"><br>Mulyadi Santosa<br>Freelance Linux trainer and consultant<br><br>blog: <a href="http://the-hydra.blogspot.com" target="_blank">the-hydra.blogspot.com</a><br>training: <a href="http://mulyaditraining.blogspot.com" target="_blank">mulyaditraining.blogspot.com</a></div>
</div></div><div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br>
<table style="border-top:1px solid #d3d4de">
        <tr>
<td style="width:55px;padding-top:13px"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" alt="" width="46" height="29" style="width: 46px; height: 29px;"></a></td>
                <td style="width:470px;padding-top:12px;color:#41424e;font-size:13px;font-family:Arial,Helvetica,sans-serif;line-height:18px">Virus-free. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank" style="color:#4453ea">www.avast.com</a>
                </td>
        </tr>
</table><a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"></a></div>