Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Sep 2002 23:45:33 +0200
From:      Lauri Watts <lauri@kde.org>
To:        "James Dean" <freebsdguru@hotmail.com>
Cc:        freebsd-questions@FreeBSD.org
Subject:   Re: KDE 3 is SLOW
Message-ID:  <200209152345.37082.lauri@kde.org>
In-Reply-To: <F483j66CI14GIjA1lcz0001a987@hotmail.com>
References:  <F483j66CI14GIjA1lcz0001a987@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday 15 September 2002 23.23, James Dean wrote:
> I have a few issues, first I run 4.7 PRERELEASE, and all my ports are kept
> VERY current.  I run KDM as a login manager, but keep getting errors about
> another xdm running and it can't lock /var/run/kdm.pid the exact log is
> like this:

ttyv8   "/usr/X11R6/bin/xdm -nodaemon"  xterm   on secure 

Is the magic incantation for me (and I suspect, it's just the -nodaemon switch 
that you're missing)

> fcntl: Bad file descriptor

This one is bogus.  A harmless Qt bug (really, it's just debug output that 
doesn't mean anything and should have been sent to /dev/null)

> then stops output and take about a 2 min. or so before poping up.

A 2 minute pause when starting KDE, or when starting a KDE app from outside 
KDE, is likely to be one or a combination of the following things:

* Wrong file permissions on /tmp/.ICE-Unix.  It should be chmodded to 1777 and 
root owned (ownership is less important than the 1777 though.)  Without it, 
KDE will sit around for up to 30 seconds, before creating it itself.  If 
you're emptying /tmp at every boot, you probably don't need to be.

* DNS - does your machine know it's own hostname? is it in /etc/hosts? Are 
your DNS servers correctly listed in /etc/resolv.conf?  X (and therefore KDE) 
needs to know how to connect to itself, and it uses the hostname to do this.  
This alone can cause an up to 2 minute timeout wait.

* Sound card.  If you have really odd permissions on /dev/dsp, aRts can take a 
bit to figure it out.

* Clearing out /tmp can have another dire effect on KDE: KDE apps need to 
communicate between themselves and the desktop, and KDE does this by way of a 
couple of complicated methods that boil down to a symlink from 
~/.kde/.socket-<yourhostname> to /tmp/ksocket-<your-username> and from 
~/.kde/.tmp-<yourhostname> to /tmp/tmp-<your-username>.  While it's perfectly 
harmless to delete the other end of the symlink by emptying /tmp, it'll cause 
a delay in startup as KDE has to recreate them.  

One of these directories will contain the system configuration cache - which 
is pretty much a cached copy of the contents of all the .desktop files KDE 
knows about (so that KDE apps know what you have HTML files associated with, 
without having to find the right mime.desktop file and look it up every 
single time, they just ask ksycoca, which already knows from this cache). 
 This one can take a while to recreate, if it has to be done from scratch at 
every boot.

Solution: If you must clear out /tmp, rm the ~/.kde/.socket-<yourhostname> 
link, and make it a directory of the same name, or a link to 
~/tmp/ksocket-<yourusername>

To summarize that lot: If you're emptying /tmp, you probably don't need to, 
and it's the reason for the long startup times, and also be very sure that 
your DNS settings are correct.  If you're hit by both, a 2 minute pause at 
the start of X, is not at all unexpected.

Regards,
- -- 
Lauri Watts
KDE Documentation: http://i18n.kde.org/doc/
KDE on FreeBSD: http://freebsd.kde.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)

iD8DBQE9hP9+/gUyA7PWnacRAvX8AJ0YVcHomk5dSHb3u+fnSDv/Z9EqkQCeNMnJ
hTH7T/g9Wg5Uk1aPU7ndW2k=
=Z9tT
-----END PGP SIGNATURE-----


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200209152345.37082.lauri>