Memoryleak mit Gentoo und Kernel 2.6.10?

FreeBSD, Gentoo, openSUSE, CentOS, Ubuntu, Debian
tally
Posts: 59
Joined: 2004-11-08 21:21
 

Memoryleak mit Gentoo und Kernel 2.6.10?

Post by tally »

Hi,

inzwischen habe ich jetzt Gentoo auf meinem Rooti installiert. Lief eigentlich auch alles völlig problemlos, allerdings habe ich jetzt wohl ein Problem.

Die aktuelle Ausgabe von free:

Code: Select all

             total       used       free     shared    buffers     cached
Mem:        257464     217200      40264          0     110084      10032
-/+ buffers/cache:      97084     160380
Swap:       506036          0     506036
In Anbetracht der aktuell laufenden Prozesse für mich nicht nachvollziehbar:

Code: Select all

USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.1   1348   492 ?        S    Jan24   0:00 init [3]
root         2  0.0  0.0      0     0 ?        SN   Jan24   0:00 [ksoftirqd/0]
root         3  0.0  0.0      0     0 ?        S<   Jan24   0:00 [events/0]
root         4  0.0  0.0      0     0 ?        S<   Jan24   0:00 [khelper]
root         5  0.0  0.0      0     0 ?        S<   Jan24   0:00 [kacpid]
root         6  0.0  0.0      0     0 ?        S<   Jan24   0:00 [kblockd/0]
root         7  0.0  0.0      0     0 ?        S    Jan24   0:00 [pdflush]
root         8  0.0  0.0      0     0 ?        S    Jan24   0:00 [pdflush]
root        10  0.0  0.0      0     0 ?        S<   Jan24   0:00 [aio/0]
root         9  0.0  0.0      0     0 ?        S    Jan24   0:00 [kswapd0]
root        11  0.0  0.0      0     0 ?        S    Jan24   0:00 [kjournald]
root       115  0.0  0.3   1596   876 ?        Ss   Jan24   0:00 /sbin/devfsd /d
root      4322  0.0  0.0      0     0 ?        S    Jan24   0:00 [kjournald]
root      4781  0.0  0.2   1452   620 ?        Ss   Jan24   0:00 metalog [MASTER
root      4827  0.0  0.1   1416   504 ?        S    Jan24   0:00 metalog [KERNEL
root      4962  0.0  0.5   3224  1504 ?        Ss   Jan24   0:00 /usr/sbin/sshd
root      5002  0.0  0.2   1608   716 ?        Ss   Jan24   0:00 /usr/sbin/cron
root      5089  0.0  0.4   2172  1040 ?        Ss   Jan24   0:00 login -- root
root     11499  0.0  0.4   2172  1244 tts/0    Ss   13:11   0:00 -bash
root     11611  0.0  0.3   2348   844 tts/0    R+   14:34   0:00 ps aux
Ein paar sonstige Infos:

Code: Select all

w
 14:36:36 up 3 days, 15:51,  1 user,  load average: 0.00, 0.00, 0.00
USER     TTY        LOGIN@   IDLE   JCPU   PCPU WHAT
root     tts/0     13:11    0.00s  0.00s  0.00s w

lsmod
Module                  Size  Used by
e100                   24220  -
mii                     2364  -

vmstat
procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in    cs us sy id wa
 0  0      0  40152 110180  10060    0    0     0     0   53     2  0  0 100  0

vmstat -a
procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
 r  b   swpd   free  inact active   si   so    bi    bo   in    cs us sy id wa
 0  0      0  40152  14464 107100    0    0     0     0   53     2  0  0 100  0


cat /etc/make.conf
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo/"
MAKEOPTS=""
USE="pcre -X -ipv6 -opengl -pdflib -qt -truetype"

gcc --version
gcc (GCC) 3.3.5  (Gentoo Linux 3.3.5-r1, ssp-3.3.2-3, pie-8.7.7.1)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

uname -a
Linux 2.6.10y #1 Fri Jan 21 10:07:34 CET 2005 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz GenuineIntel GNU/Linux
Bei den folgenden Infos von vmstat bin ich mir nicht sicher, ob die bei free als used oder buffers eingerechnet werden. Auf jeden Fall sind es fast 80 MB:

Code: Select all

vmstat -m
...
ext3_inode_cache         154017 154026    440      9
...
dentry_cache             155025 155034    136     29
Spontan würde ich irgendwo ein Memoryleak vermuten, bloß wo?
Was meint ihr dazu?
oxygen
Posts: 2138
Joined: 2002-12-15 00:10
Location: Bergheim
 

Re: Memoryleak mit Gentoo und Kernel 2.6.10?

Post by oxygen »

Wo soll da ein Problem sein?
tally
Posts: 59
Joined: 2004-11-08 21:21
 

Re: Memoryleak mit Gentoo und Kernel 2.6.10?

Post by tally »

øxygen wrote:Wo soll da ein Problem sein?
Tja, ich verstehe nicht, wo hier laut free fast 95 MB genutzt werden. Vielleicht kannst Du mir das ja erklären?

Bloß zur Info, so sieht es direkt nach einem Reboot aus:

Code: Select all

free
             total       used       free     shared    buffers     cached
Mem:        257464      14984     242480          0       1380       7804
-/+ buffers/cache:       5800     251664
Swap:       506036          0     506036
captaincrunch
Userprojekt
Userprojekt
Posts: 7066
Joined: 2002-10-09 14:30
Location: Dorsten
 

Re: Memoryleak mit Gentoo und Kernel 2.6.10?

Post by captaincrunch »

Man beachte hier (einmal mehr) die Werte der Buffers und des Cache. Weitere Lektüre gibt's unter http://www.rootforum.org/faq/index.php? ... artlang=de
DebianHowTo
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc