On Fri, 13 Apr 2001, Linus Torvalds wrote: > 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. And we don't even have to physically switch MM, we could simply fake stuff by updating pointers in the parent MM instead of the child so by the time we exit do_fork() we're in the child... regards, Rik -- Virtual memory is like a game you can't win; However, without VM there's truly nothing to lose... http://www.surriel.com/ http://www.conectiva.com/ http://distro.conectiva.com.br/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- PATCH(?): linux-2.4.4-pre2: fork should run child first Adam J. Richter
- Re: PATCH(?): linux-2.4.4-pre2: fork should run child... Horst von Brand
- Re: PATCH(?): linux-2.4.4-pre2: fork should run c... Éric Brunet
- Re: PATCH(?): linux-2.4.4-pre2: fork should r... Jesse Pollard
- Re: PATCH(?): linux-2.4.4-pre2: fork shou... Éric Brunet
- Re: PATCH(?): linux-2.4.4-pre2: fork should run child... John Fremlin
- Re: PATCH(?): linux-2.4.4-pre2: fork should run child... Rik van Riel
- Re: PATCH(?): linux-2.4.4-pre2: fork should run c... Linus Torvalds
- Re: PATCH(?): linux-2.4.4-pre2: fork should r... Rik van Riel
- Re: PATCH(?): linux-2.4.4-pre2: fork should run child... Hubertus Franke
- Re: PATCH(?): linux-2.4.4-pre2: fork should run child... Adam J. Richter
- Re: PATCH(?): linux-2.4.4-pre2: fork should run child... Adam J. Richter
- Re: PATCH(?): linux-2.4.4-pre2: fork should run child... Hubertus Franke
- Re: PATCH(?): linux-2.4.4-pre2: fork should run child... Adam J. Richter
- Re: PATCH(?): linux-2.4.4-pre2: fork should run c... John Fremlin
- Re: PATCH(?): linux-2.4.4-pre2: fork should r... Linus Torvalds
- Re: PATCH(?): linux-2.4.4-pre2: fork shou... Alexander Viro
- Re: PATCH(?): linux-2.4.4-pre2: fork shou... Ulrich Drepper
- Re: PATCH(?): linux-2.4.4-pre2: fork should run child... Adam J. Richter