Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030255AbWAXAxd (ORCPT ); Mon, 23 Jan 2006 19:53:33 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1030251AbWAXAxc (ORCPT ); Mon, 23 Jan 2006 19:53:32 -0500 Received: from ms-smtp-02.texas.rr.com ([24.93.47.41]:44741 "EHLO ms-smtp-02-eri0.texas.rr.com") by vger.kernel.org with ESMTP id S1030267AbWAXAxb (ORCPT ); Mon, 23 Jan 2006 19:53:31 -0500 Date: Mon, 23 Jan 2006 18:51:21 -0600 From: Dave McCracken To: Andi Kleen , Ray Bryant cc: Robin Holt , Hugh Dickins , Linux Kernel , Linux Memory Management Subject: Re: [PATCH/RFC] Shared page tables Message-ID: <08A96D993E5CB2984F6F448A@[10.1.1.4]> In-Reply-To: <200601240139.46751.ak@suse.de> References: <200601231758.08397.raybry@mpdtxmail.amd.com> <200601231816.38942.raybry@mpdtxmail.amd.com> <200601240139.46751.ak@suse.de> X-Mailer: Mulberry/4.0.0b4 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1326 Lines: 31 --On Tuesday, January 24, 2006 01:39:46 +0100 Andi Kleen wrote: >> Oh, obviously that is not right as you have to share full pte pages. >> So on x86_64 I'm guessing one needs 2MB alignment in order to get the >> sharing to kick in, since a pte page maps 512 pages of 4 KB each. > > The new randomized mmaps will likely actively sabotate such alignment. I > just added them for x86-64. Given that my current patch requires memory regions to be mapped at the same address, randomized mmaps won't really make it any worse. It's unlikely mmap done independently in separate processes will land on the same address. Most of the large OLTP applications use fixed address mapping for their large shared regions. This also should mean large text regions will be shared, which should be a win for big programs. I've been kicking around some ideas on how to allow sharing of mappings at different addresses as long as the alignment is the same, but don't have the details worked out. I figure it's more important to get the basic part working first :) Dave McCracken - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/