Re: userspace irq balancer

Andrea Arcangeli (andrea@suse.de)
Tue, 27 May 2003 03:28:18 +0200


On Tue, May 27, 2003 at 02:16:20AM +0100, Dave Jones wrote:
> On Tue, May 27, 2003 at 03:09:03AM +0200, Andrea Arcangeli wrote:
>
> > > So I'm asking you, again, how are you going to measure softirq load in
> > > making hardware IRQ load balancing decisions? Watching the scheduling
> >
> > rdtsc could do it very well, irqs and softirqs can't be rescheduled so
> > you can tick measure how long you take in each cpu
>
> On CPUs that vary frequency, this will break, unless TSC scales
> with frequency. You cannot assume that this will be the case.

those stats would per-second or similar anyways. so unless you change
frequency every second it won't matter. it's an heuristic. And
especially if you change frequency on all cpus at nearly the same time
as I expect it will matter even less since it would decrease the window
even more.

Andrea
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/