Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 79754 - app-admin/procinfo for kernel v2.6 patch
Summary: app-admin/procinfo for kernel v2.6 patch
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-27 10:58 UTC by Arkadi Shishlov
Modified: 2005-03-18 10:59 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
cpu usage percentages fix for kernel v2.6 (procinfo-19-elapsed.diff,779 bytes, patch)
2005-01-31 11:00 UTC, Arkadi Shishlov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Arkadi Shishlov 2005-01-27 10:58:32 UTC
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:
Comment 1 Arkadi Shishlov 2005-01-31 10:58:50 UTC
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.
Comment 2 Arkadi Shishlov 2005-01-31 11:00:24 UTC
Created attachment 50062 [details, diff]
cpu usage percentages fix for kernel v2.6
Comment 3 Carlos Silva (RETIRED) gentoo-dev 2005-03-17 13:14:11 UTC
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.
Comment 4 Arkadi Shishlov 2005-03-18 09:21:37 UTC
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.
Comment 5 Carlos Silva (RETIRED) gentoo-dev 2005-03-18 10:59:53 UTC
Already in CVS. Thanks for reporting.