Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 40640 - x11-plugins/wmcms does not show memory usage or swap usage with sys-kernel/gentoo-dev-sources-2.6.1-r1
Summary: x11-plugins/wmcms does not show memory usage or swap usage with sys-kernel/ge...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Michele Noberasco (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-06 13:27 UTC by Ivan Heffner
Modified: 2004-07-20 13:57 UTC (History)
0 users

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


Attachments
diff of changes to make work (not exactly a patch) (diff.txt,1.27 KB, text/plain)
2004-02-06 13:29 UTC, Ivan Heffner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Heffner 2004-02-06 13:27:54 UTC
I upgraded my kernel from linux-2.4.22-gentoo-r5 linux-2.6.1-gentoo-r1.  Now, the WindowMaker dock-app x11-plugins/wmcms-0.3.5 does not show memory usage or swap usage.  This was working under the 2.4 kernel. 

In looking at the source, I found that the format of /proc/meminfo has bee changed.  I modified state_linux.h to look for the new format.

diff will be attached.

Reproducible: Always
Steps to Reproduce:
1. install kernel 2.6
2. install wmcms
3. run wmcms

Actual Results:  
cpu usage is shown, but mem usage and swap usage are at 0%

Expected Results:  
mem and swap usage should show a % as well as a usage bar.

Portage 2.0.50_pre21 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20040117-r0,
2.6.1-gentoo-r1)
=================================================================
System uname: 2.6.1-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 1.80GHz
Gentoo Base System version 1.4.3.12
Autoconf: sys-devel/autoconf-2.59
Automake: sys-devel/automake-1.8.2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=i686 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/portage/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib apm avi berkdb crypt cups dga directfb encode esd fbcon foomaticdb
gdbm ggi gif gpm gtk gtk2 guile imlib java jpeg lcms libg++ libwww mad mikmod
mmx motif mozilla mpeg mysql ncurses nls oci8 oggvorbis opengl oss pam pdflib
perl png python qt quicktime radeon readline samba sdl slang spell sse ssl svga
tcltk tcpd tiff truetype usb videos wmf wxwindows x86 xml2 xmms xv zlib"
Comment 1 Ivan Heffner 2004-02-06 13:29:59 UTC
Created attachment 25102 [details]
diff of changes to make work (not exactly a patch)
Comment 2 roma1390 2004-05-05 11:07:54 UTC
Yes it's true. This bug is. And I this that this patch is is acceptable.
Comment 3 Jeff C. 2004-07-17 07:47:37 UTC
Well i poked around the /usr/src/linux-2.6.7-gentoo-r11/drivers/scsi

here is the ouput of

jeffs-amd64 linux-2.6.7-gentoo-r11 # cd drivers/scsi
jeffs-amd64 scsi # ls sata*
sata_promise.c  sata_sil.c  sata_svw.c  sata_via.c
sata_promise.h  sata_sis.c  sata_sx4.c  sata_vsc.c

when im in /usr/src/linux-2.6.7-mm6

jeffs-amd64 src # cd linux-2.6.7-mm6
jeffs-amd64 linux-2.6.7-mm6 # cd drivers/scsi
jeffs-amd64 scsi # ls sata*
sata_nv.c       sata_promise.h  sata_sis.c  sata_sx4.c  sata_vsc.c
sata_promise.c  sata_sil.c      sata_svw.c  sata_via.c


we have a sata_nv.c which is the driver that is needed.

Now if I'm mistaken in believing that the gentoo-dev-sources are based on the latest 2.6.7 kernel as in vanilla-2.6.7-bk20 or whatever is the latest, when in fact they are based on vanilla-2.6.7 with no updates then i am confused which is not unusuall and please forgive me for waisting your time. But if Im correct and the gentoo-dev-sources are supposed to be the latest and greatest with some patches applied by the gentoo-devs then something is not being done correctly... So any idea which is right ..... im borked as normal .... or im actually right for a change.....wow that would be neato.....any way thanks for looking at this.

Jeff C.
Comment 4 Michele Noberasco (RETIRED) gentoo-dev 2004-07-20 13:57:11 UTC
Accepted patch, but extended it to make it work seamlessly with both 2.4 and 2.6 kernels. Fixed revision is now in Portage.
Thank you for the submission!