Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750876AbWAYAV3 (ORCPT ); Tue, 24 Jan 2006 19:21:29 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750878AbWAYAV3 (ORCPT ); Tue, 24 Jan 2006 19:21:29 -0500 Received: from amdext4.amd.com ([163.181.251.6]:63152 "EHLO amdext4.amd.com") by vger.kernel.org with ESMTP id S1750871AbWAYAV2 (ORCPT ); Tue, 24 Jan 2006 19:21:28 -0500 X-Server-Uuid: 5FC0E2DF-CD44-48CD-883A-0ED95B391E89 From: "Ray Bryant" To: "Dave McCracken" Subject: Re: [PATCH/RFC] Shared page tables Date: Tue, 24 Jan 2006 18:21:07 -0600 User-Agent: KMail/1.8 cc: "Robin Holt" , "Hugh Dickins" , "Linux Kernel" , "Linux Memory Management" References: <200601241743.28889.raybry@mpdtxmail.amd.com> <07A9BE6C2CADACD27B259191@[10.1.1.4]> In-Reply-To: <07A9BE6C2CADACD27B259191@[10.1.1.4]> MIME-Version: 1.0 Message-ID: <200601241821.07631.raybry@mpdtxmail.amd.com> X-OriginalArrivalTime: 25 Jan 2006 00:21:09.0386 (UTC) FILETIME=[3D702EA0:01C62145] X-WSS-ID: 6FC81BFF0BO470379-01-01 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1725 Lines: 43 On Tuesday 24 January 2006 17:50, Dave McCracken wrote: > Those are interesting numbers. That's pretty much the showcase for > sharing, yeah. > > I must mention here that I think most DB performance suites do their forks > up front, then never fork during the test, so fork performance doesn't > really factor in as much. There are other reasons shared page tables helps > there, though. > Yes, that's why I mentioned the DB workloads as being more interesting. > > Now I am off to figure out how Andi's mmap() randomization patch > > interacts with all of this stuff. > > mmap() randomization doesn't affect fork at all, since by definition all > regions are at the same address in the child as the parent (ie good for > sharing). The trickier case is where processes independently mmap() a > region. > > Dave > Hmm... I agree with your previous comment there, then. The only way the big DB guys can start up that way is if they use MAP_FIXED and a pre-agreed on address. Otherwise, they can't do lookups of DB buffers in the shared storage area (i. e. this is basically user space buffer cache management). It has to be the case that they all agree on what addresses the buffers are at so each process can share the buffers. So, that would argue that the mmap() randomization can't effect them either, without breaking the existing API. -- Ray Bryant AMD Performance Labs Austin, Tx 512-602-0038 (o) 512-507-7807 (c) - 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/