<div dir="ltr">Dear Anders<div><br></div><div><span style="font-family:arial,sans-serif;font-size:13px">>Yes, zram is activated, otherwise you wouldn't have had zram0 created.</span><br style="font-family:arial,sans-serif;font-size:13px">
<br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">>Though you might not be using it...</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">>If you want to use it for swap, you'll have to run `swapon -p 100 /dev/zram0`.</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">>Well, '-p 100' isn't necessary, it's just to set the swap priority.</span><br></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">In my system /dev/zram0 is not present but sys/block/zram0 is present. thats why i m having this doubt</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">thanks</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">sandeep</span></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Thu, May 22, 2014 at 4:56 PM, Anders Darander <span dir="ltr"><<a href="mailto:anders.darander@gmail.com" target="_blank">anders.darander@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 class="">On 22 May 2014 12:58, sandeep kumar <<a href="mailto:coolsandyforyou@gmail.com">coolsandyforyou@gmail.com</a>> wrote:<br>
> Dear All,<br>
><br>
> we are trying to make use of zramfs. In our android based board,<br>
> we are seeing this output,<br>
><br>
> root@sandeep:/sys/block/zram0 # ls<br>
<br>
><br>
</div><div class="">> Does this mean zram is activated ?<br>
<br>
</div>Yes, zram is activated, otherwise you wouldn't have had zram0 created.<br>
<br>
Though you might not be using it...<br>
If you want to use it for swap, you'll have to run `swapon -p 100 /dev/zram0`.<br>
Well, '-p 100' isn't necessary, it's just to set the swap priority.<br>
<div class=""><br>
> we are trying to do the operation to set disk size,<br>
> echo $((50*1024*1024)) > /sys/block/zram0/disksize<br>
<br>
</div>This should have set the size of zram0.<br>
<br>
Cheers,<br>
Anders<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Anders Darander<br>
EPO guidelines 1978: "If the contribution to the known art resides<br>
solely in a computer program then the subject matter is not<br>
patentable in whatever manner it may be presented in the claims."<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>With regards,<br>Sandeep Kumar Anantapalli,<br>
</div>