Bug 13305

Summary: 1k buffer not big enough to read /proc/stat
Product: [Retired] Red Hat Linux Reporter: James Manning <jmm>
Component: procpsAssignee: Preston Brown <pbrown>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7.1   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-07-01 02:24:38 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description James Manning 2000-07-01 02:24:37 UTC
vmstat.c (probably others) use a 1k buffer to read /proc/stat.
Increasing to 4096 works, but might not be optimal.

[root@rts-test2 /root]# wc /proc/stat
     20     308    1225 /proc/stat

Comment 1 Preston Brown 2000-07-03 18:27:39 UTC
fixed.