Bug 8208 - initscripts gets CPU count wrong.
initscripts gets CPU count wrong.
Status: CLOSED ERRATA
Product: Red Hat Linux
Classification: Retired
Component: initscripts (Show other bugs)
6.1
All Linux
medium Severity medium
: ---
: ---
Assigned To: Bill Nottingham
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2000-01-05 13:22 EST by Stephen Tweedie
Modified: 2014-03-16 22:11 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2000-01-05 14:06:33 EST
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 Stephen Tweedie 2000-01-05 13:22:35 EST
initscripts greps for CPUs in /proc/stat incorrectly.  The file
/etc/rc.d/rc.local performs a

NUMPROC=`grep -cl "^cpu[0-9]+" /proc/stat`

which should probably be:

NUMPROC=`grep -c "cpu[0-9]" /proc/stat`

as otherwise you just get NUMPROC=0 unless you have >10 CPUs.
Comment 1 Bill Nottingham 2000-01-05 14:06:59 EST
Fixed in the errata initscripts.

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