From: Lars Hjorth <hjorthl@aston.ac.uk>
To: axp-list@redhat.com
Subject: process time accounting
Date: Tue, 19 Oct 1999 17:11:25 +0100 (BST) [thread overview]
Message-ID: <Pine.GSO.4.05.9910191711030.9129-100000@nn-pascal> (raw)
All,
I have noticed a problem where the statistics about cpu-usage for the
processes are invalid on my Compaq DS20 machine with Linux 2.2.9 SMP. The
statistics will only take time used on the first processor but not on the
second. Am I the only one to experience this?
Quick test: Make sure both CPU's have been working. Do cat /proc/stats.
This gives a printout that looks something like:
cpu 2718 0 8127 5046643
cpu0 2718 0 8127 2517899
cpu1 0 0 0 2528744
...
The first line corresponds to total cpu usage and the columns to user,
nice and system time. As you can see not a single "time-slice" have been
accounted for cpu1. The same problem applies to per process statistics.
I am not very well qualified in kernel debugging but I managed to find the
following clues:
* The macro smp_processor_id() (which is defined as current->processor)
always returns zero in function
smp_percpu_timer_interrupt (in file arch/alpha/kernel/smp.c) which is the
function that should update the statistics.
* The map between processor numbers and id's are okey. (and the inverse
mapping too)
* in the function handle_ipi the smp_processor_id() returns okey (both 0
and 1)
Any ideas what I should check next?
Grateful for any thoughts or ideas on this,
Lars
next reply other threads:[~1999-10-19 16:14 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-10-19 16:11 Lars Hjorth [this message]
1999-10-19 17:24 ` process time accounting Jay.Estabrook
1999-10-19 16:50 ` Lars Hjorth
1999-10-19 17:52 ` Jay.Estabrook
1999-10-19 18:03 ` xosview Todd Henderson
1999-10-19 19:04 ` xosview Jay.Estabrook
1999-10-20 10:35 ` process time accounting Lars Hjorth
1999-10-21 21:47 ` Jay.Estabrook
1999-10-22 8:21 ` Lars Hjorth
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox