On Mon, Aug 11, 2014 at 10:34:04PM +0200, Benno Schulenberg wrote: > > On Mon, Aug 11, 2014, at 22:23, Benno Schulenberg wrote: > > The zram devices size is page size aligned. When > > -requested > > -.I size > > -does match with page size the device be large enough to hold the reqested > > -.I size > > -plus length to next page boundary. > > The above does not parse for me. I am not in a position to test > zram devices, so to be sure that my replacement text is correct, # modprobe zram # ./zramctl --find --size $((4096 * 1000 + 100 )) /dev/zram0 # echo $(( 4096 * 1000 + 100)) 4096100 # ./zramctl --bytes -n -o DISKSIZE 4100096 > the following question: when one passes with --size a number that > is not a multiple of the memory-page size, does a subsequent call > of 'zramctl --raw' then print the aligned (rounded-up) number, or > does it still print the size that was specified although in fact > the aligned, bigger number is being used? The kernel uses the aligned $size and nowhere is stored the original size, so zramctl returns the aligned (rounded-up) number. Karel -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html