DragonFly BSD
DragonFly commits List (threaded) for 2005-05
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: cvs commit: src/sys/i386/i386 trap.c src/sys/kern kern_poll.c


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Wed, 25 May 2005 01:06:53 -0700 (PDT)

:
:On Tue, May 24, 2005 at 02:18:27PM -0700, Matthew Dillon wrote:
:>   Get rid of the bad hack that was doing network polling from the trap code.
:
:Why? This allowed to kernel to get an extra round for free, now we have
:to wait for the timer to trigger.
:
:Joerg

    Putting a hook in the trap code does not result in any sort of
    deterministic operation.  I don't know who put that hack in there
    (inherited from FreeBSDland) and I don't want to know.  That whole mess
    was put in because hardclock (the normal polling point) is a totally
    inadequate place to trigger the poll.

    A nice clean solution would simply be to give the polling subsystem
    its own systimer.   It just so happens that DragonFly has the 
    timer facilities necessary to do it right.

    How would you like to do that?  It couldn't be more then an hour's
    worth of programming, and the user could then choose the polling
    interval on the fly rather then screw around with the system's heartbeat.

					-Matt
					Matthew Dillon 
					<dillon@xxxxxxxxxxxxx>



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]