linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RE: Linux 2.4.19ac3rc3 on IBM x330/x340 SMP - "ps" time skew
@ 2002-07-31 11:01 David Luyer
  2002-07-31 13:28 ` Alan Cox
  0 siblings, 1 reply; 24+ messages in thread
From: David Luyer @ 2002-07-31 11:01 UTC (permalink / raw)
  To: linux-kernel; +Cc: 'Alan Cox'

I wrote:

> In Linux 2.4.19ac3rc3 on IBM x330/x340 SMP systems we're seeing this:
> 
> luyer@praxis8:~$ ps auxwww | tail -1
> luyer     1025  0.0  0.0  1276  352 pts/2    S    Aug06   0:00 tail -1
> luyer@praxis8:~$ date
> Wed Jul 31 12:35:16 EST 2002

(UP systems are fine, SMP have this problem)

Reason:

luyer@praxis8:~$ ps --info 2>&1 | grep Hertz
EUID=111 TTY=136,3 Hertz=50

procps is getting the hertz value wrong, it's computing it as:

  h = (unsigned long)( (double)jiffies/seconds/smp_num_cpus );

but we're only getting timer interrupts on CPU 0, and hence
jiffies is only incrementing once per 100th of a second.

luyer@praxis8:~/procps/procps-2.0.7.orig/proc$ cat /proc/interrupts
           CPU0       CPU1
  0:   52459351          0  local-APIC-edge  timer
  1:          0          2    IO-APIC-edge  keyboard
  2:          0          0          XT-PIC  cascade
 24:     883655     863043   IO-APIC-level  ips
 26:          7          9   IO-APIC-level  aic7xxx
 27:          8          8   IO-APIC-level  aic7xxx
 28:   97880608   96542591   IO-APIC-level  eth0
NMI:          0          0
LOC:   52456889   52456887
ERR:          0
MIS:          0

procps version is 2.0.7 (Debian 3.0).

Where's the mistake -- should timer interrupts be on both
CPUs (I think this is the problem), or is procps miscalculating
Hz (seems less likely, someone would have noticed by now...)?

David.


^ permalink raw reply	[flat|nested] 24+ messages in thread
* Linux 2.4.19ac3rc3 on IBM x330/x340 SMP - "ps" time skew
@ 2002-07-31  2:46 David Luyer
  0 siblings, 0 replies; 24+ messages in thread
From: David Luyer @ 2002-07-31  2:46 UTC (permalink / raw)
  To: linux-kernel; +Cc: 'Alan Cox'

In Linux 2.4.19ac3rc3 on IBM x330/x340 SMP systems we're seeing this:

luyer@praxis8:~$ ps auxwww | tail -1
luyer     1025  0.0  0.0  1276  352 pts/2    S    Aug06   0:00 tail -1
luyer@praxis8:~$ date
Wed Jul 31 12:35:16 EST 2002

luyer@praxis8:~$ cat /proc/$$/stat
1053 (bash) S 1052 1053 1053 34818 1056 0 99 56 294 99 1 0 0 0 15 0 0 0
49574810 2244608 316 4294
967295 134512640 134997952 3221225056 3221224264 1074760249 0 65536
3686404 1266761467 3222376853
 0 0 17 0
luyer@praxis8:~$ cat /proc/uptime
495803.96 481602.41
luyer@praxis8:~$ cat /proc/stat
cpu  1570707 3 1853018 95737544
cpu0 685268 1 876356 48019011
cpu1 885439 2 976662 47718533
page 1720960 27277642
swap 25 534
intr 244887271 49580636 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1742620 0 16 16 193563981 0
 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0
 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0
disk_io: (8,0):(988585,67688,1019318,920897,8472052)
(8,1):(1832129,206174,2422602,1625955,460832
32)
ctxt 81010049
btime 1027587797
processes 98440

Note the time skew in the "ps" output (the clock time is correct).

This is happening on all ten IBM x330/x340's we're running this in SMP
on this kernel.

We have fourteen Intel ISP 2150 servers running UP with IO-APIC on SMP
motherboards which are not experiencing this issue.

David.
--
David Luyer                                     Phone:   +61 3 9674 7525
Network Development Manager    P A C I F I C    Fax:     +61 3 9699 8693
Pacific Internet (Australia)  I N T E R N E T   Mobile:  +61 4 1111 BYTE
http://www.pacific.net.au/                      NASDAQ:  PCNTF


^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2002-08-01 18:23 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-31 11:01 Linux 2.4.19ac3rc3 on IBM x330/x340 SMP - "ps" time skew David Luyer
2002-07-31 13:28 ` Alan Cox
2002-07-31 12:59   ` David Luyer
2002-07-31 14:26     ` Alan Cox
2002-07-31 13:18       ` David Luyer
2002-07-31 13:31       ` Dana Lacoste
2002-07-31 13:38         ` David Luyer
2002-07-31 15:04           ` Alan Cox
2002-07-31 13:57             ` David Luyer
2002-07-31 16:15       ` NMI watchdog, die(), & console_loglevel Jonathan Lundell
2002-07-31 19:14       ` Linux 2.4.19ac3rc3 on IBM x330/x340 SMP - "ps" time skew Albert D. Cahalan
2002-08-01  0:37         ` Alan Cox
2002-07-31 23:49           ` Dave Jones
2002-08-01  1:30             ` Alan Cox
2002-08-01  0:19               ` Dave Jones
2002-07-31 23:42     ` Lincoln Dale
2002-08-01  1:33       ` Albert D. Cahalan
2002-08-01  3:34         ` Martin J. Bligh
2002-08-01 14:16           ` Alan Cox
2002-08-01  8:49         ` Benjamin Herrenschmidt
2002-08-01 11:40         ` Lincoln Dale
2002-08-01 18:26           ` Albert D. Cahalan
2002-08-01 14:15         ` Alan Cox
  -- strict thread matches above, loose matches on Subject: below --
2002-07-31  2:46 David Luyer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).