LWN.net Logo

Re: [PATCH 0/4] ksm - dynamic page sharing driver for linux

From:  Avi Kivity <avi-AT-redhat.com>
To:  Andrew Morton <akpm-AT-linux-foundation.org>
Subject:  Re: [PATCH 0/4] ksm - dynamic page sharing driver for linux
Date:  Tue, 11 Nov 2008 20:48:16 +0200
Message-ID:  <4919D370.7080301@redhat.com>
Cc:  Izik Eidus <ieidus-AT-redhat.com>, linux-kernel-AT-vger.kernel.org, linux-mm-AT-kvack.org, kvm-AT-vger.kernel.org, aarcange-AT-redhat.com, chrisw-AT-redhat.com
Archive-link:  Article, Thread

Andrew Morton wrote:
> The whole approach seems wrong to me.  The kernel lost track of these
> pages and then we run around post-facto trying to fix that up again. 
> Please explain (for the changelog) why the kernel cannot get this right
> via the usual sharing, refcounting and COWing approaches.
>   

For kvm, the kernel never knew those pages were shared.  They are loaded 
from independent (possibly compressed and encrypted) disk images.  These 
images are different; but some pages happen to be the same because they 
came from the same installation media.

For OpenVZ the situation is less clear, but if you allow users to 
independently upgrade their chroots you will eventually arrive at the 
same scenario (unless of course you apply the same merging strategy at 
the filesystem level).

-- 
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



(Log in to post comments)

Copyright © 2008, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds