On Tue, Jul 09, 2002 at 12:51:01AM -0500, David Fries wrote:
> Speaking of memory usage, has anyone thought about looking for some
> memory leaks?  Ok so I've been a lazy Debian user and I'm not up to
> what's in CVS (2.4.7 right now), but here's what I'm seeing (from top).
> 
>   PID USER     PRI  NI  SIZE SWAP  RSS SHARE STAT %CPU %MEM   TIME COMMAND
>   668 david      8   0 15300 8948 6352  3440 S     0.0  1.9   3:35 fvwm2
> after restarting fvwm, same windows etc
>   668 david     10   0  2468    0 2468  1348 S     0.1  0.7   3:36 fvwm2
>

Maybe some part the leaks come from the Xlib. I think that the
debian package is compiled with --enable-multibyte. There is some memory
leaks in XCreateFontSet: each time a font is unloaded ~4kb is lost (this
depends on the font, with an utf8 locale and if you use an iso106464-1
font with a big coverage this may be a lot more).

For example:
- if you delete a window ~4kb is lost (0kb with 2.5.2) 
- if you change your font and you have 20 windows, ~80kb is
lost (only 4kb with 2.5.2).

I've recently sent a patch to the XFree developers but no feedback yet ...

Note that I do not claim that all the leak come from the Xlib,
it is just a possibility. So one question and one query:
- Do you do something special regarding the fvwm config
(as regularly changing some config parameters)
- Can you send me your config file(s) if this is possible.

Regards, Olivier 
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]

Reply via email to