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

John McCabe-Dansted gmatht at gmail.com
Mon Mar 31 12:47:52 EDT 2008


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.

> 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


More information about the linux-mm-cc mailing list