RE: Reading /proc/stat is slooow

From: Luck, Tony <tony.luck_at_intel.com>
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));
#endif

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].

-Tony
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
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