<div dir="ltr"><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><br><div><span style="font-family:arial,sans-serif;font-size:13px">just now i found that we have zram0 in /dev/block/zram0</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px">i tried the command you told,</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><div><font face="arial, sans-serif"><b>root@kleoslte:/ # swapon -p 100 /dev/block/zram0</b></font></div>
<div><font face="arial, sans-serif"><b>swapon -p 100 /dev/block/zram0</b></font></div><div><font face="arial, sans-serif"><b>swapon failed for /dev/block/zram0</b></font></div></div><div><font face="arial, sans-serif"><b><br>
</b></font></div><div><font face="arial, sans-serif">is there anything else that i can try?</font></div><div><font face="arial, sans-serif"><b><br></b></font></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Fri, May 23, 2014 at 2:18 PM, sandeep kumar <span dir="ltr"><<a href="mailto:coolsandyforyou@gmail.com" target="_blank">coolsandyforyou@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">Dear Anders<div class=""><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><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><span class="HOEnZb"><font color="#888888"><div><span style="font-family:arial,sans-serif;font-size:13px">sandeep</span></div>
</font></span></div><div class="gmail_extra"><div><div class="h5"><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>On 22 May 2014 12:58, sandeep kumar <<a href="mailto:coolsandyforyou@gmail.com" target="_blank">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>> 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><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><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></div></div><div class="">-- <br>With regards,<br>Sandeep Kumar Anantapalli,<br>
</div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>With regards,<br>Sandeep Kumar Anantapalli,<br>
</div>