From owner-freebsd-current Fri Jun 5 06:42:06 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA22974 for freebsd-current-outgoing; Fri, 5 Jun 1998 06:42:06 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from ha1.rdc1.az.home.com (siteadm@ha1.rdc1.az.home.com [24.1.240.66]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA22865 for ; Fri, 5 Jun 1998 06:41:58 -0700 (PDT) (envelope-from straka@home.com) Received: from home.com ([24.1.209.47]) by ha1.rdc1.az.home.com (Netscape Mail Server v2.02) with ESMTP id AAA27145; Fri, 5 Jun 1998 06:41:50 -0700 Message-ID: <3577F59D.983C4EE4@home.com> Date: Fri, 05 Jun 1998 06:41:49 -0700 From: "Richard S. Straka" X-Mailer: Mozilla 4.05 [en] (X11; I; FreeBSD 3.0-CURRENT i386) MIME-Version: 1.0 To: Bruce Evans , current@FreeBSD.ORG Subject: Re: strange behavior with signal latencies References: <199806042229.IAA23654@godzilla.zeta.org.au> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Bruce Evans wrote: > >In looking at the results, I noticed that that the current box exhibited > >a 2300 microsecond additional delay every 10th signal or at 100ms > >intervals. Also, occationally a signal is missed. I have also noticed > >recently using top and systat that current has been consuming between > >1.6% and 3.1% of my P133 in interrupt handling. This seems to > >correspond to the latancy I am seeing with the signal test code. I > >changed the quantum interval using sysctl to 20 ticks. This had no > >effect, the 2300 microsecond latency still appeared at 10Hz. > > > >The results with 2.2.6R on the 486-100 box showed no signs of the > >latency and appeared to always reliably wakeup on every signal. Also, > >when the machine is completely idle, the interrupt load is 0.0%, > >occationally jumping to 0.4% when the disks sync. > > The results show no signs of latency with -current on a P5/133 here. > > This should be relatively easy to debug - just find whatever is causing > the abnormal interrupt load. I suspect it is an interrupt handler looping. > > Bruce It turned out to be the de driver. I am currently using two of these cards in a firewall/natd configuration. Thanks for the help. BTW, these latancy times really go out the window (10+ms ) when the system is loaded with disk writing or network activity. I have performed similar tests on an Ultra 30 box running Solaris 2.6. Even under extreme loading, the latencies stay below 1ms (its no VxWorks, but it ain't bad for soft realtime). It appears that Solaris does very little work in hardware interrupts, defering work to preemtable kernel threads which are under control of the scheduler. They offer a realtime scheduling class which has higher priority than their system scheduling class. The amount of work we currently do in FreeBSD in hardware and software interrupts coupled with the non-preemtable nature of kernel activity precludes us from doing even soft realtime work. Regards, Richard Straka straka@home.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message