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"
Created attachment 25102 [details] diff of changes to make work (not exactly a patch)
Yes it's true. This bug is. And I this that this patch is is acceptable.
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.
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!