Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 101869 - the panel system monitor plugin doesn't show all harddisk activity (gnome-base/gnome-applets-2.10.0)
Summary: the panel system monitor plugin doesn't show all harddisk activity (gnome-bas...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: AMD64 Linux
: High minor (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-09 07:55 UTC by Simon Stelling (RETIRED)
Modified: 2006-12-03 02:33 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Stelling (RETIRED) gentoo-dev 2005-08-09 07:55:24 UTC
the system-monitor panel plugin doesn't show all harddisk activity here. my hd
setup:

/dev/sda and /dev/sdb in a software raid -> /dev/md0, /dev/md1 
/dev/hda

the monitor only shows activity on /dev/hda, which i use very rarely, an option
to control the behaviour is missing

Portage 2.0.51.22-r2 (default-linux/amd64/2005.1, gcc-3.4.3, glibc-2.3.5-r0,
2.6.12-gentoo-r6 x86_64)
=================================================================
System uname: 2.6.12-gentoo-r6 x86_64 AMD Opteron(tm) Processor 242
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-Os -pipe -march=opteron"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /home /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig candy cvs distlocks multilib-strict sandbox
sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="ftp://mirror.switch.ch/mirror/gentoo"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/blubb/gentoo/cvs/gentoo-x86 /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 X aalib alsa avi berkdb bitmap-fonts cdr cdrom crypt cups curl dvd
eds encode esd foomaticdb gdbm gif gnome gpm gstreamer gtk gtk2 imlib jpeg lzw
lzw-tiff motif mp3 mpeg ncurses network nls nptl nptlonly ogg oggvorbis opengl
pam pdflib perl png ppds quicktime readline samba sdl spell ssl svg tcpd tiff
truetype-fonts type1-fonts usb userlocales utf8 vorbis xine xml xml2 xmms xpm xv
zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 John N. Laliberte (RETIRED) gentoo-dev 2005-08-09 19:56:38 UTC
from a quick scan through the code, it looks like they loop through all the
mounted filesystems and add together ( totaling ) the disk use over all your
mounted filesystems:

mountentries = glibtop_get_mountlist (&mountlist, FALSE);

        for (i = 0; i < mountlist.number; i++)
        {
                glibtop_fsusage fsusage;
                glibtop_get_fsusage(&fsusage, mountentries[i].mountdir);
                read += fsusage.read; write += fsusage.write;
        }

where they set: guint64 read, write;

Can you test this at all by generating a lot of traffic on your raided disks? 
Maybe glibtop_get_fsusage is not grabbing your raid and not returning the fsusage.

Thanks!
Comment 2 Simon Stelling (RETIRED) gentoo-dev 2005-08-10 05:26:14 UTC
the problem is the RAID:
when I put load on md0 and md1 (sd(a/b)1, sd(a/b)2), i can't see anything on the
graph, but when i put load on sda3, which is not in a raid, it works fine.

do you know where glibtop_get_mountlist is defined? I can't find it :/
Comment 3 John N. Laliberte (RETIRED) gentoo-dev 2005-08-10 05:58:17 UTC
yeah, its in the gtop library, libgtop.

If you look in ./docs/libgtop2.info in the source, around line 1664 it shows
more than enough information about how to use the method. ( or you can use info
libgtop2, but thats no fun :) )

The actual method is defined in the source at ./sysdeps/common/mountlist.c at
line 566, and is very short indeed :)

This *should* be easy to fix if you want to put the time in to putting some
debug lines in there and seeing if its even detecting the raided drives.  If
not, I should get around to this in the near future.

Thanks!
Comment 4 Rémi Cardona (RETIRED) gentoo-dev 2006-12-03 02:33:35 UTC
Hi all,

Is this still an issue with current versions of libgtop/gnome-applets? If it is, please don't hesitate to reopen this bug. :)

Thanks