lkml.org 
[lkml]   [2010]   [May]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 0/3] zram: generic RAM based compressed R/W block devices
Hi, Nitin. 

On Mon, May 24, 2010 at 07:48:02PM +0530, Nitin Gupta wrote:
> Creates RAM based block devices: /dev/zramX (X = 0, 1, ...).
> Pages written to these disks are compressed and stored in memory
> itself. These disks allow very fast I/O and compression provides
> good amounts of memory savings.
>
> This is enhancement over existing ramzswap driver which creates
> virtual block devices (/dev/ramzswapX) which could be used only
> as swap disks.
>
> Now, with the ability to handle any kind of I/O request, zram
> devices have lot more use cases:
> - /tmp storage
> - various caches under /var
> - swap disks
> - maybe even more! :)

Wow, it looks good to me.

As a matter of fact, when I saw your descriptoin, I thought we can merge
your feature into brd. But I changed my mind due to following as

First of all, ramfs supports direct I/O. So it's hard to support compression.
If we can select optionable config, it would make brd code complicated or ugly.
That's because ramzswap uses own allocator, compression, extended ioctl and so on.
And some users might regard write with important than read without considering space.
So it would be better to keep other block device for easy use and clear code.

I will review this code when I have a time.
Thanks, Nitin.

--
Kind regards,
Minchan Kim


\
 
 \ /
  Last update: 2010-05-25 17:23    [W:0.166 / U:0.988 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site