From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760834AbZEFROU (ORCPT ); Wed, 6 May 2009 13:14:20 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751733AbZEFROG (ORCPT ); Wed, 6 May 2009 13:14:06 -0400 Received: from extu-mxob-2.symantec.com ([216.10.194.135]:48316 "EHLO extu-mxob-2.symantec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756098AbZEFROF (ORCPT ); Wed, 6 May 2009 13:14:05 -0400 Date: Wed, 6 May 2009 18:11:13 +0100 (BST) From: Hugh Dickins X-X-Sender: hugh@blonde.anvils To: Izik Eidus cc: Andrea Arcangeli , Rik van Riel , akpm@linux-foundation.org, linux-kernel@vger.kernel.org, chrisw@redhat.com, alan@lxorguk.ukuu.org.uk, device@lanana.org, linux-mm@kvack.org, nickpiggin@yahoo.com.au Subject: Re: [PATCH 2/6] ksm: dont allow overlap memory addresses registrations. In-Reply-To: <4A01987A.6070002@redhat.com> Message-ID: References: <1241475935-21162-1-git-send-email-ieidus@redhat.com> <1241475935-21162-2-git-send-email-ieidus@redhat.com> <1241475935-21162-3-git-send-email-ieidus@redhat.com> <4A00DD4F.8010101@redhat.com> <4A015C69.7010600@redhat.com> <4A0181EA.3070600@redhat.com> <20090506131735.GW16078@random.random> <4A01987A.6070002@redhat.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 6 May 2009, Izik Eidus wrote: > Hugh Dickins wrote: > > > > There may prove to be various reasons why it wouldn't work out in practice; > > but when thinking of swapping them, it is worth considering if those KSM > > pages can just be assigned to a tmpfs file, then leave the swapping to that. > > The problem here (as i see it) is reverse mapping for this vmas that point > into the shared page. > Right now linux use the ->index to find this pages and then unpresent them... > But even if we move into allocating them inside tmpfs, who will know how to > unpresent the virtual addresses when we want to swap the page? Yes, you're right, tmpfs wouldn't be helping you at all with that problem, so doubtful whether it has any help to offer here. Hugh