Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Jun 1995 15:55:30 +1000 (EST)
From:      David Dawes <dawes@physics.usyd.edu.au>
To:        henrich@crh.cl.msu.edu (Charles Henrich)
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Memory leak somewhere?
Message-ID:  <199506240555.AA01618@physics.su.oz.au>
In-Reply-To: <199506230630.CAA09279@crh.cl.msu.edu> from "Charles Henrich" at Jun 23, 95 02:30:03 am

next in thread | previous in thread | raw e-mail | index | archive | help
>I've noticed lately that my S3 X server grows continuously (as does my swap
>utilization) as time goes by, and never shrinks.  Currently my X server process
>looks like so:
>
>root       252  0.0 30.9 11632 9440 ??  I    10:39PM    0:21.43 X :0 (XF86_S3)
>
>and has only been running a few hours.  I've talked with the author of the
>Server and he was astonished when I told him I've seen it as high as 15M of
>ram.  He claims he never see's this, however he's running it under Linux.  He
>suggests perhaps there is a problem with something somewhere in FreeBSD. This
>behaviour seems to be new with the 0412-SNAP, although I dont have any
>proof of this.  This is crazy, I have a 32mb machine, and its performing like
>a dog because of this sort of memory usage (!) :(.  On a 16mb machine, if you
>run any significant apps you go to swaphell because of the memory usage here.
>Could this be a leak in the kernel malloc, or mmap code or some such?

I've noticed it growing fairly large too.  I've tried linking it with
-lgnumalloc (Linux uses GNU malloc by default), and that seems to help
(you can do this using the XFree86 LinkKit).  We (XFree86) are doing
some work on the malloc issue, both regarding memory leaks, and
regarding methods to reduce fragmentation, and allow the system to
regain freed memory.

David



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199506240555.AA01618>