From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965093AbVHZQgn (ORCPT ); Fri, 26 Aug 2005 12:36:43 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965102AbVHZQgn (ORCPT ); Fri, 26 Aug 2005 12:36:43 -0400 Received: from silver.veritas.com ([143.127.12.111]:21390 "EHLO silver.veritas.com") by vger.kernel.org with ESMTP id S965093AbVHZQgm (ORCPT ); Fri, 26 Aug 2005 12:36:42 -0400 Date: Fri, 26 Aug 2005 17:38:37 +0100 (BST) From: Hugh Dickins X-X-Sender: hugh@goblin.wat.veritas.com To: Ross Biro cc: Linus Torvalds , Nick Piggin , Rik van Riel , Ray Fucillo , linux-kernel@vger.kernel.org Subject: Re: process creation time increases linearly with shmem In-Reply-To: <8783be660508260915524e2b1e@mail.gmail.com> Message-ID: References: <430CBFD1.7020101@intersystems.com> <430D0D6B.100@yahoo.com.au> <430E6FD4.9060102@yahoo.com.au> <8783be660508260915524e2b1e@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-OriginalArrivalTime: 26 Aug 2005 16:36:38.0105 (UTC) FILETIME=[547BF490:01C5AA5C] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 26 Aug 2005, Ross Biro wrote: > On 8/26/05, Hugh Dickins wrote: > > > > The refaulting will hurt the performance of something: let's > > just hope that something doesn't turn out to be a show-stopper. > > Why not just fault in all the pages on the first fault. Then the performance > loss is a single page fault (the page table copy that would have happened a > fork time now happens at fault time) and you get the big win for processes > that do fork/exec. "all" might be very many more pages than were ever mapped in the parent, and not be a win. Some faultahead might work better. Might, might, ... Hugh