Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 23 Apr 2002 15:11:47 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 23 Apr 2002 15:11:46 -0400 Received: from gateway-1237.mvista.com ([12.44.186.158]:5109 "EHLO av.mvista.com") by vger.kernel.org with ESMTP id ; Tue, 23 Apr 2002 15:11:45 -0400 Message-ID: <3CC5B17B.4E9ACA7C@mvista.com> Date: Tue, 23 Apr 2002 12:09:47 -0700 From: george anzinger Organization: Monta Vista Software X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.12-20b i686) X-Accept-Language: en MIME-Version: 1.0 To: Andi Kleen CC: Alan Cox , linux-kernel@vger.kernel.org Subject: Re: Why HZ on i386 is 100 ? In-Reply-To: <3CC4861C.F21859A6@mvista.com.suse.lists.linux.kernel> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Andi Kleen wrote: > > Alan Cox writes: > > > > The problem is in accounting (or time slicing if you prefer) where we > > > need to start a timer each time a task is context switched to, and stop > > > it when the task is switched away. The overhead is purely in the set up > > > and tear down. MOST of these never expire. > > > > Done properly on many platforms a variable tick is very very easy and also > > very efficient to handle. X86 is a paticular problem case because the timer > > is so expensive to fiddle with > > Depends. On modern x86 you can either use the local APIC timer or > the mmtimers (ftp://download.intel.com/ial/home/sp/mmts097.pdf - > should be in newer x86 chipsets). Both should be better than the > 8254 timer and are also not expensive to work with. I must not be making my self clear :) The overhead has nothing to do with hardware. It is all timer list insertion and deletion. The problem is that we need to do this at context switch rates, which are MUCH higher that tick rates and, even with the O(1) insertion code, cause the overhead to increase above the ticked overhead. -g > > -Andi > - > 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/ -- George Anzinger george@mvista.com High-res-timers: http://sourceforge.net/projects/high-res-timers/ Real time sched: http://sourceforge.net/projects/rtsched/ Preemption patch: http://www.kernel.org/pub/linux/kernel/people/rml - 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/