Reading /proc/stat is slooow

From: Andreas Schwab <schwab_at_suse.de>
Date: 2005-12-03 04:42:49
At some point after 2.6.13 reading /proc/stat has become too slow.  This
is most visible with xosview, which spends up to 80% in kernel space.  I
have attached a simple program that you can run with "strace -r" to see
that the second read of /proc/stat which eventually returns EOF takes too
much time.  If you remove the loop around read the same amount of time is
now spent in close.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

-
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 Sat Dec 03 04:43:48 2005

This archive was generated by hypermail 2.1.8 : 2005-12-03 04:43:55 EST