Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 08 Jan 1999 14:57:26 -0500 (EST)
From:      Marc Giannoni <marc@versa.eng.comsat.com>
To:        Steve Watt <steve@Watt.COM>
Cc:        freebsd-stable@FreeBSD.ORG, Mark Murray <mark@grondar.za>, Chris Dillon <cdillon@wolves.k12.mo.us>
Subject:   Re: IRQ entropy causes panics?
Message-ID:  <XFMail.990108151224.marc@versa.eng.comsat.com>
In-Reply-To: <19990108094015.A10590@wattres.Watt.COM>

next in thread | previous in thread | raw e-mail | index | archive | help

Hooking interrupts is a "real time" issue.  There is no way an OS, however
will written, can tolerate flagrant additions to it's interrupt latencies.
("j. random sysadmin run-amok")

I'm suprised that the randomizer code can hook interrupts at all and still
keep the OS stable.  This stuff is some pretty clever code.  You are actually 
modifying the kernel's core execution by enabling these hooks!

Trust me when I say that there probably is no "Underlying Problem".
It's pretty amazing that this thing even exists.

On 08-Jan-99 Steve Watt wrote:
>On Fri, Jan 08, 1999 at 11:10:52AM -0600, Chris Dillon wrote:
>> On Fri, 8 Jan 1999, Mark Murray wrote:
>> 
>> > Steve Watt wrote:
>> > > [ serial irq running 800int/sec ]
>> > 
>> > That could cause problems; I'll look into it.
>> > 
>> > > What it sounds like is that I shouldn't use "high rate" (for some
>> > > definition thereof -- more than the clock irqs?) things to feed
>> > > the entropy pool.  That probably ought to be documented somewhere.
>> > 
>> > I'll fix that too :-).
>
>I think that it would be better to fix the underlying problem, if possible;
>during a news expire with NFS archiving, the PCI irq can run as high as
>300-400/s for most of an hour.  I suppose the safest things to hook
>would be the keyboard irq (1) and the mouse (12 -- pms).  But if there
>really is some kind of race condition in there, which is how it smells,
>then for max stability none is the right answer.
>
>> If I recall correctly, this _was_ documented before we moved from
>> /etc/sysconfic to /etc/rc.conf (basically, becuse we went from
>> "sections" with long descriptions for each option to single lines for
>> each option).  It also specifically mentioned not to hook interrupts
>> attached to serial ports or the clock, I think.  
>
>Interesting.  It still seems that it oughta be safe for j. random
>(pun half-intended) sysadmin to hook whatever they like.  The timers
>aren't good sources of entropy simply because of their periodicity.
>The same really *isn't* true, even for high-bandwidth serial ports,
>because there will always be the vagaries of network timing, non-busy
>periods, etc.  Seems like a pretty good source, except that it makes
>the box fall over.
>
>To Unsubscribe: send mail to majordomo@FreeBSD.org
>with "unsubscribe freebsd-stable" in the body of the message

----------------------------------
E-Mail: Marc Giannoni <marc@versa.eng.comsat.com>
Date: 08-Jan-99
Time: 14:57:28

This message was sent by XF-Mail
----------------------------------

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.990108151224.marc>