[kde-freebsd] QFilesSystemWatcher instead of polling/FAM

Raphael Kubo da Costa kubito at gmail.com
Fri Jun 25 18:55:57 CEST 2010


On Friday 25 June 2010 13:37:53 Tijl Coosemans wrote:
> Hi,
> 
> KDE currently uses polling to detect file and directory changes on
> FreeBSD, which can use up cpu time (and laptop battery power). The
> kded4 process seems to make heavy use of this and currently
> continuously consumes about 5% of my cpu and often causes it to be
> throttled up by powerd.
> 
> I've attached a patch that makes KDE use QFileSystemWatcher on FreeBSD
> which uses kqueue instead of stat. I've been using it for the past few
> days and it seems to work rather well.
> 
> One thing I'm not sure about is whether it works with NFS, so it could
> use some more testing. If you'd like to test it, replace
> /usr/ports/x11/kdelibs4/files/patch-kio-kio-kdirwatch.cpp with the
> attached patch and reinstall kdelibs.

Have you considered submitting this upstream (ie the kde-core-devel mailing 
list)?


More information about the kde-freebsd mailing list