Re: compcache as a pre-swap area

Nitin Gupta
2009-08-14T04:54:11Z

On 08/14/2009 09:32 AM, Al Boldi wrote:
> Nitin Gupta wrote:
>> compcache is really not really a swap replacement. Its just another
>> swap device that
>> compresses data and stores it in memory itself. You can have disk
>> based swaps along
>> with ramzswap (name of block device).
>
> So once compcache fills up, it will start to age its contents into normal
> swap?
>

This is desirable but not yet implemented. For now, if 'backing swap' is used,
compcache will forward incompressible pages to the backing swap device. If
compcache fills up, kernel will simply send further swap-outs to swap device
which comes next in priority.

Nitin