On 22 May 2014 12:58, sandeep kumar <coolsandyforyou@gmail.com> wrote:
> Dear All,
>
> we are trying to make use of zramfs. In our android based board,
> we are seeing this output,
>
> root@sandeep:/sys/block/zram0 # ls
>
> Does this mean zram is activated ?Yes, zram is activated, otherwise you wouldn't have had zram0 created.
Though you might not be using it...
If you want to use it for swap, you'll have to run `swapon -p 100 /dev/zram0`.
Well, '-p 100' isn't necessary, it's just to set the swap priority.
This should have set the size of zram0.
> we are trying to do the operation to set disk size,
> echo $((50*1024*1024)) > /sys/block/zram0/disksize
Cheers,
Anders
--
Anders Darander
EPO guidelines 1978: "If the contribution to the known art resides
solely in a computer program then the subject matter is not
patentable in whatever manner it may be presented in the claims."