> Let me be clear about what I mean by interrupt rate limiting:
>
> interrupt()
> {
> harvester(...)
> }
It does that already.
> harvester(...)
> {
> if (queue is not full) {
> ... add data to queue (reasonably sized queue, like 32 entries)
> }
> }
It does that. I guess we differ on the idea of "reasonable".
> queue-runner(...)
> {
> for(;;) {
> sleep for 1/10 second
>
> Pull next item (if any) off queue
> }
> }
It almost does that, except it sleeps every N items where the user
is given control of N.
> That is what my patch does. If a high rate of interrupts occur, the
> queue becomes full almost instantly because the queue-runner only
> pulls one item off per 1/10 second. The result is that the
> harvester() routine effectively becomes a NOP for most of the
> interrupts.
My code does that. Do a "cat /dev/zero > /dev/random"
to see it in action.
M
--
Mark Murray
Warning: this .sig is umop ap!sdn
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message