From owner-freebsd-current Fri Sep 21 12: 1: 2 2001 Delivered-To: freebsd-current@freebsd.org Received: from mail.wrs.com (unknown-1-11.windriver.com [147.11.1.11]) by hub.freebsd.org (Postfix) with ESMTP id 76E9E37B41C; Fri, 21 Sep 2001 12:00:59 -0700 (PDT) Received: from laptop.baldwin.cx ([147.11.46.201]) by mail.wrs.com (8.9.3/8.9.1) with ESMTP id MAA12175; Fri, 21 Sep 2001 12:00:26 -0700 (PDT) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Fri, 21 Sep 2001 12:00:14 -0700 (PDT) From: John Baldwin To: Julian Elischer Subject: Re: Problems with interrupts on -current. Cc: current@FreeBSD.org, Julian Elischer , Jun Kuriyama , Dag-Erling Smorgrav , Josef Karthauser Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 21-Sep-01 Julian Elischer wrote: > I must say I'm worried, but stumped.. > I cannot see this problem here, and I cannot think of a change in the > KSE support stuff that would have this effect. > > There was soem small change in the statistics gathering code that > is done at clock time, but nothing so low-level as to > effect the further generation of clock ticks. > > It does sound as thuogh statclock has been stopped though. Really bad things can happen if another interrupt comes in during statclock and causes a preemption. In the preemptive kernel I had to wrap fast interrupt handlers in a critical section. I'll see if I can't resurrect that. The problem is that during a fast interrupt handler, we don't acknowledge the interrupt until we return from the interrupt handler, so if we preempt it may be a while before we get back to the interrupted process so it can finish the interrupt handler and ack the interrupt in the PIC. -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message