[Bug 399342] New: procinfo brokeb (again)
https://bugzilla.novell.com/show_bug.cgi?id=399342 User koenig@linux.de added comment https://bugzilla.novell.com/show_bug.cgi?id=399342#c1 Summary: procinfo brokeb (again) Product: openSUSE 11.0 Version: Factory Platform: i586 OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: koenig@linux.de QAContact: qa@suse.de Found By: --- as with every suse beta: procinfo is broken (this has a long tratition now -- same procedure as every release, James;-) "procinfo -dn1" shows no percentages for cpu usages: |||||| vvvvvv --- 8< ------ 8< ------ 8< ------ 8< ------ 8< ------ 8< ------ 8< --- Bootup: Mon Jun 9 09:37:23 2008 Load average: 0.99 0.68 0.37 3/192 2266 user : 0:00:01.00 ---.-% page in : 0 disk 1: 0r 3w nice : 0:00:00.00 ---.-% page out: 16 system: 0:00:00.00 ---.-% page act: 0 IOwait: 0:00:00.00 ---.-% page dea: 0 hw irq: 0:00:00.00 ---.-% page flt: 13 sw irq: 0:00:00.00 ---.-% swap in : 0 idle : 0:00:00.00 ---.-% swap out: 0 uptime: 2d 9:01:04.72 context : 99 --- 8< ------ 8< ------ 8< ------ 8< ------ 8< ------ 8< ------ 8< --- ^^^^^^ ^^^^^^ ^^^^^^ and even worse, "procinfo -n1" just crashes: --- 8< ------ 8< ------ 8< ------ 8< ------ 8< ------ 8< ------ 8< --- Linux 2.6.25.4-10-default (geeko@buildhost) (gcc 4.3.1 20080507) #1 SMP 2008-05-28 16:25:04 +0200 1CPU [linux-zpcx.] Memory: Total Used Free Shared Buffers Mem: 190120 186732 3388 0 1608 Swap: 779112 157024 622088 Bootup: Mon Jun 9 09:37:23 2008 Load average: 0.39 0.16 0.15 3/192 2253 user : 0:58:09.22 34892200.0% page in : 53838745 disk 1: 3491951r 2061541w nice : 0:05:54.81 3548100.0% page out: 19609441 system: 0:29:06.24 17462400.0% page act: 969427 IOwait: 7:02:59.29 12.4% page dea: 11404021 hw irq: 0:00:26.97 0.0% page flt: 15609585 sw irq: 0:06:01.98 0.2% swap in : 10178632 idle : 1d 6:08:10.96 52.9% swap out: 2147232 uptime: 2d 8:55:57.29 context : 30323741 irq 0: 10792350 timer irq 9: 4747 acpi irq 1: 14266 i8042 irq 11: 5864845 uhci_hcd:usb1, yenta, irq 2: 0 cascade [4] irq 12: 112558 i8042 irq 4: 6 irq 14: 5597184 ata_piix irq 7: 6 irq 15: 0 ata_piix irq 8: 0 rtc0 [Floating point exception] --- 8< ------ 8< ------ 8< ------ 8< ------ 8< ------ 8< ------ 8< --- -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=399342
Marcus Meissner
https://bugzilla.novell.com/show_bug.cgi?id=399342
User werner@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=399342#c1
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=399342
User werner@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=399342#c2
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=399342
User werner@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=399342#c3
--- Comment #3 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=399342
User koenig@linux.de added comment
https://bugzilla.novell.com/show_bug.cgi?id=399342#c4
Harald Koenig
Please provide the *exact* used kernel version including any guest system.
from the report: Linux 2.6.25.4-10-default (geeko@buildhost) (gcc 4.3.1 20080507) #1 SMP 2008-05-28 16:25:04 +0200 1CPU [linux-zpcx.] which is harald@linux-zpcx:~> rpm -qf /boot/vmlinuz kernel-default-2.6.25.5-1.1 which "any guest system" ? (In reply to comment #3 from Werner Fink)
Beside this please provide disks, interrupt lines and the output
I'll attach proc.tgz with all /proc/* files which get opened by "procinfo -n1"
of "type procinfo" and "rpm -qif `type -p procinfo'"
harald@linux-zpcx:~> rpm -qif `type -p procinfo`
Name : procinfo Relocations: (not relocatable)
Version : 18 Vendor: SUSE LINUX Products
GmbH, Nuernberg, Germany
Release : 170 Build Date: Fri 30 May 2008
23:37:28 CEST
Install Date: Mon 09 Jun 2008 01:06:04 CEST Build Host: aguirre.suse.de
Group : System/Monitoring Source RPM: procinfo-18-170.src.rpm
Size : 68975 License: GPL v2 or later
Signature : DSA/SHA1, Fri 30 May 2008 23:42:39 CEST, Key ID a84edae89c800aca
Packager : http://bugs.opensuse.org
URL : ftp://ftp.cistron.nl/pub/people/svm/
Summary : Display System Status Gathered from /proc
Description :
The "procinfo" command gathers some system data from the /proc
directory and prints it nicely formatted on the standard output device.
Authors:
--------
Sander van Malssen
https://bugzilla.novell.com/show_bug.cgi?id=399342
User koenig@linux.de added comment
https://bugzilla.novell.com/show_bug.cgi?id=399342#c5
--- Comment #5 from Harald Koenig
https://bugzilla.novell.com/show_bug.cgi?id=399342
User werner@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=399342#c6
--- Comment #6 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=399342
User werner@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=399342#c7
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=399342
User werner@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=399342#c8
--- Comment #8 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=399342
User koenig@linux.de added comment
https://bugzilla.novell.com/show_bug.cgi?id=399342#c9
Harald Koenig
Which kernel? I'm not able to reproduce this there I ask for e.g. XEN.
this was run on an old Toshiba Portege, plain old P3 500 MHz with 192 MB ram (runs nice with xfce4 and 11.0!). no XEN or whatsoever, just plain default-kernel FYI: on x86_64 (just installed on an IBM T61), procinfo seems to work fine. (In reply to comment #8 from Werner Fink)
Try out
watch -n1 cat /proc/uptime
/proc/uptime steps correctly as expected. strace procinfo -n1 shows two reads from /proc/update with values 1 sec apart. I'll try to debug procinfo later/tomorrow... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=399342
User werner@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=399342#c10
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=399342
User koenig@linux.de added comment
https://bugzilla.novell.com/show_bug.cgi?id=399342#c11
Harald Koenig
Do have any news around? Btw: which HZ values in user and kernel space are used on this Toshiba Portege?
it's the plain newly installed 11.0, noting special using the tickless kernel -- so HZ is somewhat... here is the problem from debugging procinfo: in get_HZ() clock_getres() returns 1e-9 for the tickless kernel giving sys_hz = (long) 1e9 with this huge value of sys_hz in procinfo.c:465 elapsed = (DIFF(intr[0]) * usr_hz) / sys_hz; gives elapsed = 2 (for tickless kernel the DIFF(intr[0]) doesn't really make much sense anymore). elapsed=2 is passed to perc() as t=2 causing a divide by zero in the last term of 438 v = (unsigned int) (i < 1000000 ? 439 ((1000 * i + t / 2) / t) : 440 ((i + t / 2000) / (t / 1000))); with i=2729038 using the following small patch "fixes" procinfo for my i386 system: ------------------------------------------------------------------ --- procinfo.c~ 2008-06-17 20:39:39.000000000 +0200 +++ procinfo.c 2008-06-17 21:24:41.000000000 +0200 @@ -459,12 +459,14 @@ /* XXX Is this stuff still relevant/true? */ +#ifdef NO_TICKLESS_KERNEL #ifdef __i386__ /* IRQ 0 is timer tick on i386's... */ if (nr_irqs && new.intr[0]) { if (fs && old.uptime) elapsed = (DIFF(intr[0]) * usr_hz) / sys_hz; } else #endif +#endif #ifdef __sparc__ /* IRQ 10 is timer tick on sparc's... */ if (nr_irqs && new.intr[10]) { if (fs && old.uptime) ------------------------------------------------------------------ obviously this is a 32bit-only problem and you have to run the system for a while to get vaules > 1e6 to be displayed... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=399342
User werner@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=399342#c12
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=399342
User werner@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=399342#c15
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=399342
User ast@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=399342#c17
--- Comment #17 from Anja Stock
participants (1)
-
bugzilla_noreply@novell.com