Please include this patch into procinfo ebuild - it enables correct paging/swap and disk statistics display when running on kernel v2.6 and other miscellaneous cpu stats. After patching it works on kernel 2.4 too. http://www.meisel.cc/software/procinfo19.patch Reproducible: Always Steps to Reproduce:
I also propose additional patch to fix CPU percentage display on kernel 2.6. The reason for this is that HZ = 100 but on x86 intr0 timer ticks at a rate = 1000/s. /proc/uptime have in %.2f format so precision should't be a problem. Works fine on 2.4.
Created attachment 50062 [details, diff] cpu usage percentages fix for kernel v2.6
The patch that you added, the one that fixes the cpu percentages on 2.6, i tested it and i didn't see any difference. Are you sure that is needed? 'cause i don't know if the i386 and sparc archs will work ok since the code was removed.
I'm sure. development-sources-2.6.10 linux26-headers-2.6.7-r4 amd athlon/sempron procinfo without this patch shows real values divided by 10 so it maxed out at 10% cpu load. Try procinfo -D -n5.
Already in CVS. Thanks for reporting.