В Вск, 02/12/2007 в 16:05 +0300, Nickolay V. Shmyrev пишет: > Heh, sadly memory problems are rather complicated and hidden deeply > inside the stack thus require very experienced knowledge. From my > experience the significant amount of memory consumption can be dropped > by switching to some lightweight gtk theme like Simple. > > I traced mixer applet for example with G_SLICE=always-malloc and some of > the entries look interesting. For example we spend 150 k on xml parser > we can avoid. Another 150 k are hanging in options. I'm attaching the > patch, not sure how correct is it. > > The rest of the log is attached too. As chpe kindly pointed, of course the patch is not correct, option-context is construct-only property. But you get the idea, options are only used during startup, so one can hack libgnome to free context just after options are parsed. For those interested, here http://nshmyrev.narod.ru/temp/mixer-applet-massif.tar.gz one can download massif results for mixer applet. Large amount of memory spent on gst registry xml parsing. Not strange since the registry is around 250 kb xml file in my case.
Attachment:
signature.asc
Description: =?koi8-r?Q?=FC=D4=C1?= =?koi8-r?Q?_=DE=C1=D3=D4=D8?= =?koi8-r?Q?_=D3=CF=CF=C2=DD=C5=CE=C9=D1?= =?koi8-r?Q?_=D0=CF=C4=D0=C9=D3=C1=CE=C1?= =?koi8-r?Q?_=C3=C9=C6=D2=CF=D7=CF=CA?= =?koi8-r?Q?_=D0=CF=C4=D0=C9=D3=D8=C0?=