Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 17 Dec 2002 14:01:33 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 17 Dec 2002 14:01:33 -0500 Received: from neon-gw-l3.transmeta.com ([63.209.4.196]:40452 "EHLO neon-gw.transmeta.com") by vger.kernel.org with ESMTP id ; Tue, 17 Dec 2002 14:01:32 -0500 Date: Tue, 17 Dec 2002 11:10:20 -0800 (PST) From: Linus Torvalds To: Ulrich Drepper cc: Alan Cox , Matti Aarnio , Hugh Dickins , Dave Jones , Ingo Molnar , Linux Kernel Mailing List , Subject: Re: Intel P6 vs P7 system call performance In-Reply-To: <3DFF7399.40708@redhat.com> 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 Content-Length: 1395 Lines: 33 On Tue, 17 Dec 2002, Ulrich Drepper wrote: > > But this is exactly what I expect to happen. If you want to implement > gettimeofday() at user-level you need to modify the page. Note that I really don't think we ever want to do the user-level gettimeofday(). The complexity just argues against it, it's better to try to make system calls be cheap enough that you really don't care. sysenter helps a bit there. If we'd need to modify the page, we couldn't share one page between all processes, and we couldn't make it global in the TLB. So modifying the info page is something we should avoid at all cost - it's not totally unlikely that the overheads implied by per-thread pages would drown out the wins from trying to be clever. The advantage of the current static fixmap is that it's _extremely_ streamlined. The only overhead is literally the system entry itself, which while a bit too high on a P4 is not that bad in general (and hopefully Intel will fix the stupidities that cause the P4 to be slow at kernel entry. Somebody already mentioned that apparently the newer P4 cores are actually faster at system calls than mine is). 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/