Bug 55530 - kdm_greet eats 192M ram
Summary: kdm_greet eats 192M ram
Status: RESOLVED NOT A BUG
Alias: None
Product: kdm
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: kdm bugs tracker
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-05 02:20 UTC by Bugs Kde Org
Modified: 2008-05-19 17:30 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bugs Kde Org 2003-03-05 02:20:37 UTC
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
Comment 1 jerfa 2003-03-12 12:02:59 UTC
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.  
Comment 2 Bugs Kde Org 2003-03-12 14:16:36 UTC
Is this a Gentoo issue? Or is it just that Gentoo users discover this faster? 
Comment 3 Oswald Buddenhagen 2003-03-12 14:22:20 UTC
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. :)

Comment 4 degs 2003-03-25 19:26:17 UTC
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 
Comment 5 Stephan Kulow 2003-03-25 21:38:59 UTC
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. 
Comment 6 Bugs Kde Org 2003-03-26 00:00:27 UTC
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? 
Comment 7 Oswald Buddenhagen 2003-03-26 03:31:55 UTC
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.

Comment 8 Oswald Buddenhagen 2003-04-02 16:28:59 UTC
go away! :)