From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754251AbZHNEyL (ORCPT ); Fri, 14 Aug 2009 00:54:11 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753120AbZHNEyL (ORCPT ); Fri, 14 Aug 2009 00:54:11 -0400 Received: from rv-out-0506.google.com ([209.85.198.232]:59212 "EHLO rv-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750980AbZHNEyK (ORCPT ); Fri, 14 Aug 2009 00:54:10 -0400 Message-ID: <4A84EDE4.1080605@vflare.org> Date: Fri, 14 Aug 2009 10:23:56 +0530 From: Nitin Gupta Reply-To: ngupta@vflare.org User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1b3pre) Gecko/20090513 Fedora/3.0-2.3.beta2.fc11 Thunderbird/3.0b2 MIME-Version: 1.0 To: Al Boldi CC: Hugh Dickins , Matthew Wilcox , Ingo Molnar , Peter Zijlstra , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: compcache as a pre-swap area References: <200908122007.43522.ngupta@vflare.org> <200908130805.36787.a1426z@gawab.com> <200908140702.23947.a1426z@gawab.com> In-Reply-To: <200908140702.23947.a1426z@gawab.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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