Bug 8208 - initscripts gets CPU count wrong.
Summary: initscripts gets CPU count wrong.
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: initscripts   
(Show other bugs)
Version: 6.1
Hardware: All Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact:
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-01-05 18:22 UTC by Stephen Tweedie
Modified: 2014-03-17 02:11 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2000-01-05 19:06:33 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

Description Stephen Tweedie 2000-01-05 18:22:35 UTC
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 19:06:59 UTC
Fixed in the errata initscripts.


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