RE: Reading /proc/stat is slooow

From: Luck, Tony <>
Date: 2005-12-06 17:15:57
The huge bulk of the time is consumed in this loop:

#if !defined(CONFIG_PPC64) && !defined(CONFIG_ALPHA)
        for (i = 0; i < NR_IRQS; i++)
                seq_printf(p, " %u", kstat_irqs(i));

But why is this worse now than in 2.6.13?  At the top of
show_stat() we already looked at all of the kstat_cpu(i).irqs[j]
elements [but with the loops reversed: outer loop is all cpus,
inner loop counts 0..NR_IRQ].

To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to
More majordomo info at
Received on Tue Dec 06 17:16:40 2005

This archive was generated by hypermail 2.1.8 : 2005-12-06 17:16:47 EST