![]() | |||||||||||||
Messages in this thread |
Hi! > > > > It eats CPU, it's error-prone, and all in all it's just "wrong". > > > > > > How much of your CPU time is spent parsing /proc files? > > > > 30% of 486 if you run top... That's way too much and top is unusable > > on slower machines. > > "Not fast enough for showing processes" sounds wery wrong. > > Is this time actually spent parsing ascii, or is it procfs > walking all the page tables of all processes ? ;) About 1:1, probably. Readdir of /proc and open/read/parse/close is pretty expensive. Pavel -- Philips Velo 1: 1"x4"x8", 300gram, 60, 12MB, 40bogomips, linux, mutt, details at http://atrey.karlin.mff.cuni.cz/~pavel/velo/index.html. - 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/ | ||||||||||||
| Last update: 2005-03-22 13:13 [from the cache] ©2003-2008 | |||||||||||||