This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: XFree leaking memory?


 Harold,

 I did some tests and basically when I open an xterm the XWin size goes up
by about 30-50 Kb. When I close it, it stays the same (enlarged). When I
open a remote xterm and display it on my machine, same thing happens, i.e.
XWin size increases when xterm appears and stays at the same level when
xterm is closed.

 Another issue is that xclock manages to grow from about 5 Mb when fresh
to about 10 Mb in a week.

 Also, all the xfree components seem to require obscene amounts of memory,
7 Mb per each xterm, 5 Mb for xclock, 5 Mb for fvwm pager, etc. Is this
because the required libraries are statically linked with these
applications such that everything has to keep its own set of libraries?
The end result of this behaviour is that 512 Mb of RAM that I have become
insufficient in a few days and I have to restart Xwin to get things under
control.

 I hope this helps ...

 Konstantin


On Tue, 5 Nov 2002, it was written:

> Konstantin,
>
> Interesting.  So, this appears to be a new memory leak that has nothing to
> do with rootless mode.
>
> At this point I think we will need suggestions from others as to how we can
> find the source of this memory leak.
>
> There are not too many calls in the Windows-specific portion of XWin.exe
> that could result in continual memory leaks like this.  However, I hope that
> the bug is in the Windows-specific portion of XWin.exe and not in either the
> rest of the XWin.exe code or in cygwin1.dll.  Finding a memory leak in
> either of those would be tedious.
>
> Anybody got any suggestions?
>
> Harold
>
> -----Original Message-----
> From: cygwin-xfree-owner@cygwin.com
> [mailto:cygwin-xfree-owner@cygwin.com]On Behalf Of Konstantin N. Kudin
> Sent: Monday, November 04, 2002 8:49 PM
> To: cygwin-xfree@cygwin.com
> Subject: Re: XFree leaking memory?
>
>
>  Harold
>
>  I do not think I am using "-rootless" since I am running the standard
> *.bat file supplied with XFree and have a separate workspace for X. So
> this leak appears to be a separate issue.
>
>  Is there a way to generate memory usage statistics for X?
>
>  Konstantin
>
> On Mon, 4 Nov 2002, it was written:
>
> > Konstantin,
> >
> > Are you using the ``-rootless'' command-line parameter?  If so, the
> > developer of that feature mentioned that there was a memory leak and
> > that he was working on fixing it.  If not, then we might need to look
> > into your problem as a previously unknown problem.
> >
> > Harold
> >
> > Konstantin N. Kudin wrote:
> >
> > > Hi all
> > >
> > > I am using the cygwin + xfree combination for my X server.
> > >I run the program for days on a W2k laptop and put the machine on stand
> by
> > >every night. W2k and xfree are restarted quite infrequently (once every
> > >2-4 weeks).
> > > I have noticed in Task Manager that XWin process slowly but surely grows
> > >in size adding about 2Mb every day. It starts from 13 Mb but over the
> > >course of few days may become as large as 150 Mb (I have seen that). I
> > >tried to update XFree to the latest version a couple of weeks ago yet it
> > >did not stop growing in size.
> > > I mostly run fvwm and 2-3 xterms. I also occasionally display xterms and
> > >other things from other machines.
> > > I am curious if the developers are aware of/working on this issue?
> > > I could provide more details if needed/technically possible.
> > >
> > > Sincerely,
> > > Konstantin
> > >
> >
>
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]