From owner-freebsd-current@FreeBSD.ORG Thu Nov 11 23:06:53 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 62D4316A4CE for ; Thu, 11 Nov 2004 23:06:53 +0000 (GMT) Received: from digger1.defence.gov.au (digger1.defence.gov.au [203.5.217.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 01FF843D4C for ; Thu, 11 Nov 2004 23:06:52 +0000 (GMT) (envelope-from wilkinsa@squash.dsto.defence.gov.au) Received: from ednmsw503.dsto.defence.gov.au (ednmsw503.dsto.defence.gov.au [131.185.2.150]) by digger1.defence.gov.au with ESMTP id iABN5rZg017917 for ; Fri, 12 Nov 2004 09:35:53 +1030 (CST) Received: from muttley.dsto.defence.gov.au (unverified) by ednmsw503.dsto.defence.gov.au (Content Technologies SMTPRS 4.3.10) with ESMTP id for ; Fri, 12 Nov 2004 09:36:43 +1030 Received: from ednex501.dsto.defence.gov.au (ednex501.dsto.defence.gov.au [131.185.2.81]) by muttley.dsto.defence.gov.au (8.11.3/8.11.3) with ESMTP id iABN1Yh32549 for ; Fri, 12 Nov 2004 09:31:34 +1030 (CST) Received: from squash.dsto.defence.gov.au ([131.185.40.212]) by ednex501.dsto.defence.gov.au with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id RZJDFVHM; Fri, 12 Nov 2004 09:31:33 +1030 Received: from squash.dsto.defence.gov.au (localhost [127.0.0.1]) by squash.dsto.defence.gov.au (8.12.11/8.12.11) with ESMTP id iABN27lx040130 for ; Fri, 12 Nov 2004 09:32:07 +1030 (CST) (envelope-from wilkinsa@squash.dsto.defence.gov.au) Received: (from wilkinsa@localhost) by squash.dsto.defence.gov.au (8.12.11/8.12.11/Submit) id iABN27Y8040129 for freebsd-current@freebsd.org; Fri, 12 Nov 2004 09:32:07 +1030 (CST) (envelope-from wilkinsa) Date: Fri, 12 Nov 2004 09:32:07 +1030 From: "Wilkinson, Alex" To: freebsd-current@freebsd.org Message-ID: <20041111230156.GA40059@squash.dsto.defence.gov.au> Mail-Followup-To: freebsd-current@freebsd.org References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6i Subject: Re: kernel: return from interrupt X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Nov 2004 23:06:53 -0000 Curios, Robert, how does one find out whether their currently running kernel is a 'pre-empatble' one ? sysctl ? - aW 0n Thu, Nov 11, 2004 at 09:46:20PM +0000, Robert Watson wrote: On Thu, 11 Nov 2004, Anurekh Saxena wrote: > I was under the impression that the 5.3 release had an option for full > preemption. If I am correct, why does the kernel refuse to schedule on > a return_from_interrupt if its not going back to userland? I can > understand this being a problem if interrupts were nested, or return > from a page fault in a critical section. Please correct me if I am > wrong, but if a *high* priority interrupt thread is ready to run, it > should be given a chance. Presuming the *interrupted* kernel path is > going to give up the CPU fast enough is probably not a good idea. > > I hope I have sent this to the right mailing list. Even normal "options PREEMPTION" should do this. I know from tracing the kernel in 6.x that that's the way the system behaves out of the box; with PREEMPTION turned on in 5.x you should see the same behavior. One thing I often do see, FWIW, is that if you're on an SMP box, the ithread will get scheduled to run immediately on another CPU that's idle, so you won't actually preempt the thread on the current CPU other than for the interrupt handler. What behavior are you seeing that suggests this isn't happening with PREEMPTION compiled in? Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Principal Research Scientist, McAfee Research _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"