Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750850AbWAXXn4 (ORCPT ); Tue, 24 Jan 2006 18:43:56 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750846AbWAXXn4 (ORCPT ); Tue, 24 Jan 2006 18:43:56 -0500 Received: from amdext4.amd.com ([163.181.251.6]:29099 "EHLO amdext4.amd.com") by vger.kernel.org with ESMTP id S1750837AbWAXXnz (ORCPT ); Tue, 24 Jan 2006 18:43:55 -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 17:43:28 -0600 User-Agent: KMail/1.8 cc: "Robin Holt" , "Hugh Dickins" , "Linux Kernel" , "Linux Memory Management" References: <200601231758.08397.raybry@mpdtxmail.amd.com> <6BC41571790505903C7D3CD6@[10.1.1.4]> In-Reply-To: <6BC41571790505903C7D3CD6@[10.1.1.4]> MIME-Version: 1.0 Message-ID: <200601241743.28889.raybry@mpdtxmail.amd.com> X-OriginalArrivalTime: 24 Jan 2006 23:43:30.0421 (UTC) FILETIME=[FAFD7A50:01C6213F] X-WSS-ID: 6FC864280BO465556-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: 1794 Lines: 41 On Monday 23 January 2006 18:19, Dave McCracken wrote: > > My apologies. I do have a small test program and intended to clean it up > to send to Robin, but got sidetracked (it's fugly at the moment). I'll see > about getting it a bit more presentable. > I created a test case that mmaps() a 20 GB anonymous, shared region, then forks off 128 child processes that touch the 20 GB region. The results are pretty dramatic: 2.6.15 2.6.15-shpt --------- ---------------- Total time: 182 s 12.2 s Fork time: 30,2 s 10.4 s pte space: 5 GB 44 MB Here total time is the amount of time for all 128 threads to fork and touch all 20 GB of data and fork time is the elapsed time for the parent to do all of the forks. pte space is the amount of space reported in /proc/meminfo to hold the page tables required to run the test program. This is on an 8-core, 4 socket Opteron running at 2.2 GHZ with 32 GB of RAM. Of course, it would be more dramatic with a real DB application, but that is going to take a bit longer to get running, perhaps a couple of months by the time all is said and done. Now I am off to figure out how Andi's mmap() randomization patch interacts with all of this stuff. -- 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/