View previous topic :: View next topic |
Author |
Message |
bazik Retired Dev
Joined: 22 Jul 2002 Posts: 277 Location: Behind you.
|
Posted: Sun Aug 04, 2002 11:53 am Post subject: GKrellM not showing disk-status in 2.4.x kernel |
|
|
Hi!
If your hard disks start at /dev/hde or higher (for example UltraATA100),
and you use the 2.4.x kernel, you should get something like this when you
look in /proc/stat:
Code: |
bazik@antares bazik $ cat /proc/stat
cpu 633 0 1088 9286
cpu0 633 0 1088 9286
page 27641 128
swap 1 0
intr 19998 11007 529 0 0 0 0 2 0 0 1026 2427 4997 0 0 0 10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
disk_io:
ctxt 25309
btime 1028461174
processes 2882
|
Important is the "disk_io:". As you can see, its empty here... and thats a known issue with the 2.4.x kernel and "high" devices.
I found this out because GKrellM didnt show a "disk" option for me. It was
simply blank. BTW, this solution here is also mentioned in the FAQ on the GKrellM homepage.
To solve this problem, you need to patch your Kernel. First download the
correct patch from http://www.swanson.uklinux.net/
Then goto /usr/src and patch your Kernel tree. I have the 2.4.18-xfs sources.
Code: |
root@antares src # patch -p0 < /home/bazik/MyFiles/patch-diskio-2.4.18-1
|
If it complains file not found, you propably need to edit the paths in the patch because it says "linux-2.4.18" sometimes. Or simply make a symlink
After patching, just recompile your Kernel, replace the old and reboot.
Then do a cat /proc/stat again and it should look like this:
Code: |
bazik@antares bazik $ cat /proc/stat
cpu 7302 0 1883 66962
cpu0 7302 0 1883 66962
page 48977 1376
swap 1 0
intr 149055 76147 4471 0 0 0 0 2 0 0 9742 3997 54686 0 0 0 10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
disk_io: (33,0):(4011,3290,106451,721,12853) (33,1):(1,1,8,0,0) (34,0):(1,1,8,0,0)
ctxt 612401
btime 1028461174
processes 2930
|
As you can see, after patching it reports "disk_io:" now. GKrellM is working now, too
Hope this helps someone!
Regards,
bAZiK |
|
Back to top |
|
|
mmontg1 Tux's lil' helper
Joined: 21 Jun 2002 Posts: 129
|
Posted: Sat Oct 26, 2002 12:58 am Post subject: thanks for the info |
|
|
this absolutely helped me. Not seeing my disks status' was a definate bummer. thanks again. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|