Version: unknown (using KDE 3.1.0) Installed from: Gentoo Compiler: gcc version 3.2.1 20021207 (Gentoo Linux 3.2.1-20021207) OS: Linux (i686) release 2.4.20-wolk4.0s-pre9 When kdm_greet starts it eats 192 MB. When you have logged in this memory is freed again. Here is output from top: 02:14:26 up 8:11, 3 users, load average: 0.20, 0.22, 0.19 44 processes: 41 sleeping, 3 running, 0 zombie, 0 stopped CPU states: 44.7% user, 11.7% system, 0.0% nice, 0.0% iowait, 43.5% idle Mem: 773732k av, 555796k used, 217936k free, 0k shrd, 38856k buff 385336k actv, 126080k in_d, 3628k in_c Swap: 248968k av, 0k used, 248968k free 463980k cached PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND 7210 tange 20 0 5392 5392 4564 R 14.9 0.6 0:00 kdeinit 7014 root 15 0 192M 192M 9360 S 0.7 25.4 0:17 kdm_greet
I can confirm this. Similar config: Gentoo Linux 1.4, KDE 3.1 build from source, Kernel 2.4.20. kdm_greet needs 192M and lots of CPU time.
Is this a Gentoo issue? Or is it just that Gentoo users discover this faster?
Subject: Re: kdm_greet eats 192M ram i think this is gentoo's fault. fc-cache should be run every time the installed fonts change. debian gets it right, fwiw. :)
I also experienced this with KDE 3.1.1 running on Gentoo 1.4rc3. Running fc-cache caused the problem to go away. However, I got no indication of what the problem was: kdm_greet consumed all memory pushing the machine well into swap. The kernel then killed it and I was left with no indication of what triggered this behaviour. Although it may technically be a Gentoo configuration issue, kdm_greet doesn't deal with the situation very gracefully. Also, running KDE via startx (i.e. no kdm) on the same machine caused konqueror to slowly suck memory until it got OOM-killed, again with no indication as to what was causing the problem. -- degs
you can't do anything about it. The first time you call XftFontList (which does qt internally) the cache is generated. This bug should move to gentoo, it's no kdm issue.
I can confirm that if I run fc-cache as root then the problem disappears. (fc-cache, however, takes around 180 MB when running - but only need to be run once) Could it be fixed by putting fc-cache into the installscript for kde?
Subject: Re: kdm_greet eats 192M ram On Tue, Mar 25, 2003 at 11:00:28PM -0000, Bugs Kde Org wrote: > (fc-cache, however, takes around 180 MB when running - but only need > to be run once) > yeah, that was a bug in the xfree 4.3 pre-release packaged in gentoo. the numbers are now down to reasonable values according to dan armak. > Could it be fixed by putting fc-cache into the installscript for kde? > no. that clearly belongs into the post-install scripts of any font packages.
go away! :)