From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,7906122176c4c41c X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-05-05 13:44:13 PST Path: gmd.de!nntp.gmd.de!xlink.net!howland.reston.ans.net!cs.utexas.edu!swrinde!ihnp4.ucsd.edu!ames!olivea!decwrl!pa.dec.com!src.dec.com!crl.dec.com!utne.zk3.dec.com!mytoy.zk3.dec.com!ddhill From: ddhill@mytoy.zk3.dec.com (Dave Hill WhatGE) Newsgroups: comp.unix.osf.osf1 Subject: Re: Xdec blows up more and more, reboot at 57640K size ?? Is there a bug ? Date: 5 May 1994 17:27:53 GMT Organization: WHATX Distribution: world Message-ID: <2qbaap$ngg@utne.zk3.dec.com> References: NNTP-Posting-Host: mytoy.zk3.dec.com Keywords: Xdec, OSF1 1.3 In article , max@cis.uni-muenchen.de (Max Hadersbeck) writes: |> |> Hi |> We have OSF 1 1.3 running. After starting new X |> applications the X Server Xdec gets bigger and bigger. |> It seems that there is only a malloc() inside, but no free(). |> My machine with 64 MB gets really in trouble with it. |> |> Before boot : |> PID USERNAME PRI NICE SIZE RES STATE TIME CPU COMMAND |> 284 root 41 0 57640K 7184K sleep 47:20 7.70% Xdec |> |> After booting is has |> PID USERNAME PRI NICE SIZE RES STATE TIME CPU COMMAND |> 282 root 41 0 10864K 4988K sleep 0:07 0.60% Xdec |> |> After a while it increases again. |> Is there a bug in the X-Server or what can I do ? | This is not necessarily a bug. There is a known memory leak with DPS (see the release notes...) but this only shows itself over time as you log in and out (grows once per login unless -terminate is passed to the X Server). The reason I say in MAY not be a bug is a fact of Unix. In Unix, once a program grows, it never really gets smaller, and so the size reported by ps(1) really is more of a high water mark rather than an indication of any memory leak. If you have a program that, for example puts a gif into your root background, this creates a pixmap that is rather large. When this pixmap is freed (returning to rootweave, maybe), this memory is now available for reuse by the program, but the freeing is not reflected in ps(1). I have yet to see a 'memory leak' in the X server other than the one I mentioned with DPS. Note that the -terminate option to the X server does cause the X server size to drop (because Xdec goes away & another is restarted). This can be usefull if you are a user that like to use DPS, 3D or other big memory users in the X Server. /Dave