Re: userspace irq balancer

David S. Miller
2003-05-26T23:31:38Z

From: Andrea Arcangeli <andrea@suse.de>
Date: Tue, 27 May 2003 01:34:46 +0200

On Mon, May 26, 2003 at 04:26:16PM -0700, Andrew Morton wrote:
> How hard would it be to make this HT-aware?

yeah! that was the obvious next step.

So what is idle defined as? How are you going to measure things like
softirq load? How much weight will softirq load get compared to
hardirq load? How will process load be factored into this and what
weight will this get?

All of these questions have no answer as far as the kernel is
concerned, because this is a policy decision and something the user
ought to be able to configure to suite his needs.

All you've said today is that IRQ balancing needs to be more like the
cpufreq drivers. The hardware programming and some of the delicate
time sensitive details are done in the kernel, but deciding how and
when to do these things belongs as some userspace action.

I still contend that Arjan's usermode irq balancer solves one realm of
those problems. And there is nothing that prevents his work from
being extended to upload policies for the things you have brought up
today.

Finally, claiming this is a performance issue is moot. We've already
shown that if the current IRQ load balancer in 2.5.x improves
performance for any network based things there is no reasonable reason
WHY this is the case bacause it's behavior is anti-networking in
nature in that it thinks hardware IRQ load equates to real load which
it does not.