Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 93327

Summary: gnome-system-monitor-2.10.1 vm size off by orders of magnitude
Product: Gentoo Linux Reporter: Ivan Yosifov <iyosifov>
Component: [OLD] GNOMEAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Ivan Yosifov 2005-05-20 07:35:45 UTC
I am looking at the process listing in gnome-system-monitor. Acording to it I
have four apache2 processes, namely:

11087, VM size 234.7 MB
11085, VM size 234.7 MB
11031, VM size 17.0 MB
11030, VM size 18.6 MB

However, I also have:

obelix@home ~ $ ps aux | head -n 1; ps aux | grep apache2
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root     11030  0.0  0.7  19020  7400 ?        Ss   16:58   0:00
/usr/sbin/apache2 -D SSL -D PHP5 -d /usr/lib/apache2 -f /etc/apache2/httpd.conf
-k start
apache   11031  0.0  0.5  17380  5224 ?        S    16:58   0:00
/usr/sbin/apache2 -D SSL -D PHP5 -d /usr/lib/apache2 -f /etc/apache2/httpd.conf
-k start
apache   11085  0.0  0.7 240312  7552 ?        Sl   16:58   0:00
/usr/sbin/apache2 -D SSL -D PHP5 -d /usr/lib/apache2 -f /etc/apache2/httpd.conf
-k start
apache   11087  0.0  0.7 240312  7548 ?        Sl   16:58   0:00
/usr/sbin/apache2 -D SSL -D PHP5 -d /usr/lib/apache2 -f /etc/apache2/httpd.conf
-k start
obelix   13690  0.0  0.0   2760   680 pts/3    R+   17:29   0:00 grep apache2

11085 and 11087 use 0.7 of the memory, the memory being 1GB, that means each
uses about 8MB. Yet gnome-system-monitor shows 234.7 MB, orders of magnitude larger.

Am I interpreting the information wrongly or is this a gnome-system-monitor bug ?






Reproducible: Always
Steps to Reproduce:
1./etc/init.d/apache2 start
2.start gnome-system-monitor
3.watch apache memory usage
4.ps aux | grep apache2
5.compare VM size.

Actual Results:  
Results differ wildly.

Expected Results:  
They should be exactly the same.

Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.4.3-20050110,
glibc-2.3.5-r0, 2.6.11-gentoo-r9 i686)
=================================================================
System uname: 2.6.11-gentoo-r9 i686 Intel(R) Pentium(R) 4 CPU 3.20GHz
Gentoo Base System version 1.6.12
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.8
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-r9
sys-devel/libtool:   1.5.18
virtual/os-headers:  2.6.11
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-g0 -O2 -march=pentium4 -mtune=pentium4 -msse2 -pipe
-fomit-frame-pointer -momit-leaf-frame-pointer -funit-at-a-time -ftracer
-mfpmath=sse"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-g0 -O2 -march=pentium4 -mtune=pentium4 -msse2 -pipe
-fomit-frame-pointer -momit-leaf-frame-pointer -funit-at-a-time -ftracer
-mfpmath=sse -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.ITDNet.net/gentoo"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--strip-all"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aac acl acpi alsa apache2 avi bash-completion berkdb bitmap-fonts
bonobo cdr crypt cups curl doc dvd dvdr eds emboss encode flac foomaticdb gd
gdbm gif gnome gpm gstreamer gtk gtk2 guile hal howl imagemagick imlib ipv6
ithreads java jpeg junit kde kdeenablefinal ldap libg++ libwww mad mikmod mmap
mmx motif mozilla mp3 mpeg mysql ncurses nls nptl nvidia ogg oggvorbis opengl
pam pdflib perl pic plotutils png postgres pthreads python qt quicktime readline
sdl session sharedmem slang spell sse sse2 ssl svga symlink tcltk tcpd tetex
threads tiff truetype truetype-fonts type1-fonts unicode usb vorbis xml xml2 xv
zlib linguas_en userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET
Comment 1 foser (RETIRED) gentoo-dev 2005-05-20 08:03:51 UTC
VM size is the collumn VSZ in the ps output. You should look at the detailed
process info in g-s-m to see what amount is really not shared mem.

You can change the columns displayed in g-s-m trough preferences and get info
more to your liking.

I don't think this is a bug, just misunderstanding of the meaning of different info.
Comment 2 Ivan Yosifov 2005-05-20 08:49:41 UTC
I see... Thanks for the explanation.