Bug 452273 - /sys vfs block device stat fields have changed
/sys vfs block device stat fields have changed
Status: CLOSED CURRENTRELEASE
Product: Fedora
Classification: Fedora
Component: libgtop2 (Show other bugs)
8
All Linux
low Severity low
: ---
: ---
Assigned To: Søren Sandmann Pedersen
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2008-06-20 13:03 EDT by Michael Schwendt
Modified: 2014-06-18 05:10 EDT (History)
1 user (show)

See Also:
Fixed In Version: 2.20.2-1.fc8
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 529068 (view as bug list)
Environment:
Last Closed: 2008-07-23 03:13:02 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)
upstream fix for F-8 branch (2.19 KB, patch)
2008-06-26 16:35 EDT, Michael Schwendt
no flags Details | Diff


External Trackers
Tracker ID Priority Status Summary Last Updated
GNOME Desktop 539360 None None None Never

  None (edit)
Description Michael Schwendt 2008-06-20 13:03:20 EDT
Description of problem:
libgtop2 calculates wrong Read/Write stats based on parsing
/sys/block/sd*/sd??/stat incorrectly with recent kernels in
Rawhide. As a result, this confuses the gnome system monitor
applet, for example, which uses the libgtop2 API.


Version-Release number of selected component (if applicable):
libgtop2-2.23.2-1.fc10.i386
kernel-2.6.26-0.72.rc6.git2.fc10.i686


How reproducible:
Always


Steps to Reproduce:
1. compare /sys/block/sd*/sd??/stat with older kernel (e.g. 2.6.23.15-137.fc8)
Or:
1. configure system monitor applet to display hard-disk Read=red, Write=yellow
  
Actual results:
/sys vfs returns more fields with different meaning, and
system monitor applet displays a graph where Read access has
the colour Write access, because it receives wrong I/O values
from libgtop2.


Example:

# uname -r
2.6.23.15-137.fc8
# cat /sys/block/sda/sda1/stat
     971     1944        2        4

Versus:

# uname -r
2.6.26-0.72.rc6.git2.fc10.i686
# cat /sys/block/sda/sda1/stat
     160      577    13262     1160        6        2       16        6        0
     683     1166
Comment 1 Michael Schwendt 2008-06-20 13:14:27 EDT
Fedora 8 is also affected (!):

# rpm -q kernel
kernel-2.6.23.15-137.fc8  (<-- GOOD)
kernel-2.6.25.4-10.fc8    (<-- BREAKS libgtop2)
Comment 2 Michael Schwendt 2008-06-24 08:57:40 EDT
Since "Status" and "Summary" of external bugzilla references
doesn't change automatically, here comes the notification that
a fix was commited to upstream svn.
Comment 3 Michael Schwendt 2008-06-24 14:08:28 EDT
Changing Version to "8", because Fedora 8 and above are affected.
Comment 4 Michael Schwendt 2008-06-26 16:35:35 EDT
Created attachment 310378 [details]
upstream fix for F-8 branch
Comment 5 Fedora Update System 2008-07-09 15:06:44 EDT
libgtop2-2.20.2-1.fc8 has been submitted as an update for Fedora 8
Comment 6 Fedora Update System 2008-07-15 08:18:55 EDT
libgtop2-2.20.2-1.fc8 has been pushed to the Fedora 8 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update libgtop2'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F8/FEDORA-2008-6384
Comment 7 Fedora Update System 2008-07-23 03:13:00 EDT
libgtop2-2.20.2-1.fc8 has been pushed to the Fedora 8 stable repository.  If problems still persist, please make note of it in this bug report.

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