Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 14 Apr 2001 01:50:04 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 14 Apr 2001 01:49:55 -0400 Received: from zeus.kernel.org ([209.10.41.242]:32728 "EHLO zeus.kernel.org") by vger.kernel.org with ESMTP id ; Sat, 14 Apr 2001 01:49:49 -0400 Date: Fri, 13 Apr 2001 21:40:16 -0700 (PDT) From: Linus Torvalds To: Rik van Riel cc: "Adam J. Richter" , Subject: Re: PATCH(?): linux-2.4.4-pre2: fork should run child first In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 14 Apr 2001, Rik van Riel wrote: > > Also, have you managed to find a real difference with this? It actually makes a noticeable difference on lmbench, so I think adam is 100% right. > If it turns out to be beneficial to run the child first (you > can measure this), why not leave everything the same as it is > now but have do_fork() "switch threads" internally ? Probably doesn't much matter. We've invalidated the TLB anyway due to the page table copy, so the cost of switching the MM is not all that noticeable. Linus - 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/