Bug 1959 - procinfo -d -n1 gets FP exceptions
procinfo -d -n1 gets FP exceptions
Status: CLOSED NEXTRELEASE
Product: Red Hat Raw Hide
Classification: Retired
Component: procinfo (Show other bugs)
1.0
All Linux
high Severity high
: ---
: ---
Assigned To: Michael K. Johnson
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1999-04-02 22:00 EST by Chris Siebenmann
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 1999-08-27 10:46:08 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Chris Siebenmann 1999-04-02 22:00:55 EST
procinfo-16-3's procinfo gets FP exceptions sometimes
when run with '-d -n1' on a dual-CPU machine. What seems
to do it is running something with heavy CPU usage on
both CPUs (such as the distributed.net rc5des client).
If you run it for a while and wait, boom, there it goes.
I have not tested this behavior on a UP kernel.

 This is running with the latest Rawhide (although it
happened both under the Rawhide SMP kernel and under
stock 2.2.5-ac3).
Comment 1 Chris Siebenmann 1999-04-03 19:47:59 EST
The root cause of this seems to be that raw idle time number
in /proc/stat occasionally blips backwards (!), with a ripple
through effect on procinfo, which assumes it always goes forward.

 I'm not sure how this is possible, but the idle number is not
a kstat variable but is instead worked out by subtracting all
the other time ticks (kernel, user, nice) from elapsed jiffies
(times the number of cpus). Possibly there is some update ordering
issues there, especially with multiple cpus and IRQs coming in at
just the wrong time on the 'other' cpu.

 I will be asking the gurus. In the mean time, there is an obvious
patch that can be made to the code in procinfo that reads /proc/stat
(just check if new.cpu_idle < old.cpu_idle and make them equal if
so).
Comment 2 Preston Brown 1999-08-27 10:46:59 EDT
fixed in procinfo-17-1, available in the next release.  However, as
this seems to be a kernel bug, I also certainly hope that it has been
corrected in a later release of the kernel as well.

Note You need to log in before you can comment on or make changes to this bug.