[linux-mm-cc] First experience of compressed cache

Nai Xia nai.xia at gmail.com
Mon Mar 31 13:29:56 EDT 2008


On Tue, Apr 1, 2008 at 12:47 AM, John McCabe-Dansted <gmatht at gmail.com> wrote:
> On Mon, Mar 31, 2008 at 11:59 PM, Baghdadi Riyadh <baghdadi13 at gmail.com> wrote:
>  > so if you have another way to resize the compCache it would be great :)
>
>  Instead of resizing  /dev/ramzswap0, we could resize the amount ram
>  ramzswap0 uses by getting compcache itself to manage the physical
>  swap.
>
>  That is, instead of doing:
>    modprobe compache
>    swapon /dev/ramzswap0
>    swapon /dev/sdaX
>
>  We'd do something like
>   modprobe compache physswap=/dev/sdaX
>   swapon /dev/ramzswap0
>
>  Then compcache could decide whether it wants to store swap in memory
>  or on disk. To the kernel, compcache would still look like a generic
>  swap device.

Oh, yes,
that's the point in my second letter. :-)
Let the compache act as an intermediate layer between ram and hard disk swap.
And that's also why I feel eager to patch the kernel,
it seems directly related to the page cache and swap cache.

>
>
>  > John used the CompCache on Ubuntu LiveCd with (I think) 90% of RAM and
>
>  Minimum of 150% of ram and 300MB atm (so under 75% of ram used,
>  assuming 2:1 compression ratio).
>
>  --
>
>
> John C. McCabe-Dansted
>  PhD Student
>  University of Western Australia
>

Best Regards,
Nai


More information about the linux-mm-cc mailing list