Package: procinfo
Version: 18-1
Severity: normal
Tags: patch
*** Please type your report below this line ***
procinfo on alpha does not correctly report times for user, nice,
etc...: rather all appear as zero.
e.g.
~(0)$ /usr/bin/procinfo
Linux 2.6.17.8 ([EMAIL PROTECTED]) (gcc [can't parse]) #??? 1CPU [sera.(none)]
Memory: Total Used Free Shared Buffers
Mem: 2069152 1035096 1034056 0 134048
Swap: 3124984 0 3124984
Bootup: Fri Oct 6 02:24:15 2006 Load average: 0.03 0.07 0.08 1/176 6012
user : 0:00:00.00 0.9% page in : 505895 disk 1: 26241r
33698w
nice : 0:00:00.00 0.0% page out: 547970 disk 2: 4342r
1476w
system: 0:00:00.00 0.2% page act: 82436
IOwait: 0:00:00.00 0.2% page dea: 0
hw irq: 0:00:00.00 0.0% page flt: 2157850
sw irq: 0:00:00.00 0.1% swap in : 0
idle : 0:00:00.00 98.6% swap out: 0
uptime: 0:00:00.00 context : 4364976 interrupts: 46596964
(on an XP1000, similar behaviour on a 433au)
This problem appeared in
02_procinfo_paging_swap_disk_statistics_on_2.6.dpatch.
Suggested patch (tested on the XP1000, works fine).
I have restricted the change to Alpha, as I lack the knowledge of why
the change was made originally.
~/procinfo/new(0)$ diff -c routines.c.old routines.c
*** routines.c.old Fri Oct 6 14:18:36 2006
--- routines.c Fri Oct 6 14:33:36 2006
***************
*** 391,400 ****
--- 391,406 ----
unsigned long q;
static char buf[22];
+ #if !defined(__alpha__)
q = 100 / HZ; /* We need this because the libc does something
funny here */
/* if we try to use: t = t * 100 / HZ; here! */
/* [EMAIL PROTECTED] 11. Feb. 2004 */
t = t * q;
+ #else
+ t = t * 100 / HZ; /* ...and we need to not do this on Alpha */
+ /* because it breaks time display completely */
+ /* mrt 6/10/06 */
+ #endif
d = (int) (t / 8640000);
t = t - (long) (d * 8640000);
h = (int) (t / 360000);
Regards,
Mark Thompson
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: alpha
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17.8
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages procinfo depends on:
ii libc6.1 2.3.6.ds1-5 GNU C Library: Shared libraries
ii libncurses5 5.5-4 Shared libraries for
terminal hand
ii perl 5.8.8-6.1 Larry Wall's Practical
Extraction
procinfo recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]