View previous topic :: View next topic |
Author |
Message |
tweakt Tux's lil' helper
Joined: 16 Sep 2003 Posts: 92 Location: Boston, MA. USA
|
Posted: Fri Sep 30, 2005 12:26 am Post subject: Memory usage of Gnome, etc |
|
|
Someone please tell me this is not normal... nearly 1GB of ram consumed sitting at my empty desktop.
For panel apps I have: system-monitor, cpu-frequency-monitor, weather-applet, revelation, clock, volume, window selector, trash,workspace-switcher
Code: | $ ps -eo pid,start,vsz,rsz,comm:30 k -vsz,-rsz
PID STARTED VSZ RSZ COMMAND
21759 19:29:58 263216 68140 firefox-bin
21639 18:45:01 158944 25348 python
21579 18:44:57 148568 20652 nautilus
21814 19:47:14 116452 18140 gnome-terminal
21641 18:45:01 109468 14044 gweather-applet
21577 18:44:57 108728 15272 gnome-panel
21631 18:45:01 105936 14252 mixer_applet2
21673 18:45:13 103756 18676 gnome-system-mo
21595 18:44:58 101620 13700 wnck-applet
21601 18:44:59 100948 10348 trashapplet
21531 18:44:55 100808 10440 gnome-settings-
21629 18:45:00 97220 11476 clock-applet
21645 18:45:02 94416 11012 multiload-apple
21494 18:44:53 92368 11600 gnome-session
21643 18:45:01 91584 11656 cpufreq-applet
21637 18:45:01 90880 8716 notification-ar
21533 18:44:55 90868 7540 vino-server
21585 18:44:57 86528 8076 gnome-volume-ma
21487 18:44:50 77348 35308 X
21575 18:44:57 60436 9988 metacity
21598 18:44:59 42832 4320 gnome-vfs-daemo$ emerge --info
21524 18:44:54 30076 11916 gconfd-2
|
Code: | Portage 2.0.52-r1 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r1, 2.6.13-gentoo-r1 x86_64)
=================================================================
System uname: 2.6.13-gentoo-r1 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4400+
Gentoo Base System version 1.12.0_pre8
ccache version 2.4 [enabled]
dev-lang/python: 2.3.5, 2.4.1-r1
sys-apps/sandbox: 1.2.13
sys-devel/autoconf: 2.13, 2.59-r7
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils: 2.16.1
sys-devel/libtool: 1.5.20
virtual/os-headers: 2.6.11-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -mfpmath=sse -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=k8 -O2 -mfpmath=sse -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.mirrors.tds.net/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlay/custom"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac aalib acpi adns alsa artworkextra audiofile avi berkdb bitmap-fonts browserplugin cddb cdparanoia cdr crypt cscope cups curl custom-cflags dbus dlloader dv dvd dvdr dvdread dvi ecc eds emboss encode esd evo fam fame ffmpeg firefox flac foomaticdb fortran fpx gif gimp glitz gnome gpm graphviz gstreamer gtk gtk2 gtkhtml guile hal howl idea imagemagick imlib ipv6 java joystick jpeg kdeenablefinal kerberos lcms ldap libcaca libwww lzo lzw lzw-tiff mad matroska mjpeg mozilla mp3 mpeg nautilus ncurses net new-login nls nntp nptl nptlonly nvidia offensive ogg oggvorbis opengl oss pam pam_console pam_timestamp pdf pdflib perl png postscript python quicktime readline real rtc samba smp sndfile spell ssl svg t1lib tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts unicode usb userlocales v4l v4l2 vcd vorbis wmf xine xml2 xmms xpm xv xvid xvmc yv12 zlib userland_GNU kernel_linux elibc_glibc"
Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
|
|
|
Back to top |
|
|
Vann Guru
Joined: 04 Aug 2002 Posts: 357
|
Posted: Fri Sep 30, 2005 12:36 am Post subject: |
|
|
In general Linux is going to be using all or nearly all of your RAM. What isn't being used directly by applications will be used either by the kernel or applications like X to cache things. Also, with X, sometimes your video RAM in use is also being reported or memory shared among applications/threads is reported multiple times.
But yes, Gnome and GTK+ are pretty heavy on memory usage. There is a lot of effort underway to reduce that, but unless you're noticing sluggishness I wouldn't worry about it. I have 512MB of RAM and use Gnome without any trouble. |
|
Back to top |
|
|
lambada Apprentice
Joined: 31 Jul 2005 Posts: 157
|
Posted: Fri Sep 30, 2005 1:16 am Post subject: |
|
|
Quote: |
In general Linux is going to be using all or nearly all of your RAM. What isn't being used directly by applications will be used either by the kernel or applications like X to cache things. Also, with X, sometimes your video RAM in use is also being reported or memory shared among applications/threads is reported multiple times.
|
Not true. I am using xfce and have 500 Mb of memory. About 70 are used by the kernel and X and when i start xfce it fills another 60. I know this since I have a monitor on my panel. Your memory usage of 1 Gb is not normal. The highest I got was when compiling heavily or doing intensive operations was about 400. Maybe it's Gnome. I don't use it so I wouldn't know.
Try out xfce, it's light and easy to configure. _________________ Lambada |
|
Back to top |
|
|
Vaarsuvius Guru
Joined: 02 Dec 2004 Posts: 345
|
|
Back to top |
|
|
Vann Guru
Joined: 04 Aug 2002 Posts: 357
|
Posted: Fri Sep 30, 2005 4:15 am Post subject: |
|
|
lambada wrote: | Not true. I am using xfce and have 500 Mb of memory. About 70 are used by the kernel and X and when i start xfce it fills another 60. | Yes, well, you won't be caching anything until there's something to be cached. You'll actually probably notice the highest memory usage when you've been running a few, large applications for an extended period of time. Use Firefox for three hours and you should see it using a sizeable portion of your memory. It's not that it's being a memory hog, it's just that it's been caching stuff left and right.
lambada wrote: | The highest I got was when compiling heavily or doing intensive operations was about 400. |
I'm not quite sure how to parse that sentence. Compiling is generally more CPU intensive than memory intensive. Something like GIMP is probably more likely to suck up a bunch of RAM than compiling your favorite software, unless you're running make -j 1000 or the like. To wit, I am doing nothing CPU intensive right now, and the top four memory users are, in order, Firefox, X, Thunderbird, and Rhythmbox, with a total of 470 MB used for the whole system. I notice no slowdown whatsoever.
In any case, unused memory is dead weight. It's doing nobody any good, so unless your machine actually feels slow there's absolutely no need to worry. |
|
Back to top |
|
|
tweakt Tux's lil' helper
Joined: 16 Sep 2003 Posts: 92 Location: Boston, MA. USA
|
Posted: Fri Sep 30, 2005 4:45 am Post subject: |
|
|
Ok. Thanks for the comments.
Sorry, I probably should've been more clear:
Code: | $ cat /proc/meminfo
MemTotal: 2056716 kB
MemFree: 41684 kB
Buffers: 576424 kB
Cached: 422404 kB
SwapCached: 24 kB
Active: 654656 kB
Inactive: 602644 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 2056716 kB
LowFree: 41684 kB
SwapTotal: 2097144 kB
SwapFree: 2096664 kB
Dirty: 4 kB
Writeback: 0 kB
Mapped: 240124 kB
Slab: 721472 kB
CommitLimit: 3125500 kB
Committed_AS: 587112 kB
PageTables: 6396 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 45792 kB
VmallocChunk: 34359686651 kB |
MemTotal - (Cached + Buffers + MemFree) ~= 900MB
So I have 2GB of ram. It's 100% in use, and 900MB of that is userspace. That can't be right.
Anyway... At some point I recall booting into Gnome desktop and being at around 200-300MB. I'm not sure if it's my CFLAGS, a memory leak, a bloated library, something statically linked... I dunno. But it's definately increaded lately. And yes, it seems sluggish. |
|
Back to top |
|
|
Suicidal l33t
Joined: 30 Jul 2003 Posts: 959 Location: /dev/null
|
Posted: Fri Sep 30, 2005 5:42 am Post subject: |
|
|
Mine reports:
Code: | MemTotal: 1034316 kB
MemFree: 50100 kB
Buffers: 115220 kB
Cached: 552704 kB
SwapCached: 0 kB
Active: 456048 kB
Inactive: 310224 kB
HighTotal: 130240 kB
HighFree: 120 kB
LowTotal: 904076 kB
LowFree: 49980 kB
SwapTotal: 1004020 kB
SwapFree: 1003736 kB
Dirty: 184 kB
Writeback: 0 kB
Mapped: 137932 kB
Slab: 200980 kB
CommitLimit: 1521176 kB
Committed_AS: 656924 kB
PageTables: 1680 kB
VmallocTotal: 114680 kB
VmallocUsed: 50720 kB
VmallocChunk: 61940 kB
|
Yet Gnome system monitor only shows ~300 used |
|
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
|
|