<div dir="ltr"><div><div><div>works on linux desktop may also work on android:<br><br><br></div>cat /proc/swaps: (should readout)<br></div><div>/dev/block/zram0 52M (as kb readout most likely)<br></div><div>
<br></div>if it shows a different slice path (/dev/zram0 for example) use swapon /that/mapping/path<br> <br></div>also try swapon -p 100 -v -a /dev/block/zram0 as this adds the following flags to activate ALL visible swaps and add a verbose function to create readout that may help in debuging issue<br>
</div><div class="gmail_extra"><br clear="all"><div><div dir="ltr">Corey W Sheldon<br>Owner, 1st Class Mobile Shine<div></div><div>310.909.7672</div><div><a href="http://www.facebook.com/1stclassmobileshine" target="_blank">www.facebook.com/1stclassmobileshine</a></div>
</div></div>
<br><br><div class="gmail_quote">On Fri, May 23, 2014 at 5:21 AM, 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"><div class=""><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><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="HOEnZb"><div class="h5"><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><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><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><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>-- <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>
</div></div><br>_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
<br></blockquote></div><br></div>