DNOTIFY support and some timing

Christian Esken c.esken at cityweb.de
Tue Mar 4 22:34:55 GMT 2003


Am Sonntag, 23. Februar 2003 22:56 schrieb Josef Weidendorfer:
> On Sunday 23 February 2003 15:07, Christian Esken wrote:
> > Hello,
> >
> > is there a good reason not to compile in DNOTIFY support by default?
> > The code in kio/kio/kdirwatch.cpp already checks the kernel version.
> > I agree, that there should be a possibility do --disable-dnotify ,
> > but default should be enabled.
>
> I agree.
>
> > For example SuSE8.1 (ships Kernel 2.4.19 and KDE3.0) has
> > not compiled KDE with "--enable-dnotify".
>
> Hmm. That's not our problem, though.
> Doesn't SuSE use FAM with DNOTIFY? This way, KDE programs should never need
> to do polling at all...
>
> > AFAIK KDE3.0 already had dnotify support?!?
> >
> >
> > Remark: I came across this, while working on a list of tips on how to
> > use KDE3 on slow computers. On "low end" computers like mine
> > (PIII - 450Mhz, 128MB Ram) doing polling has MAJOR impact on
> > overall KDE performance. Application startup and overall resposiveness
> > is much better with DNOTIFY. I blame this on the continuous task
> > switching from and to kded.
>
> You may be right. What's the sustained activity of kded in top?
>
> OTOH, DNOTIFY has drawbacks, too: If you write a big file, for each "write"
> syscall a DNOTIFY real-time signal is sent to each process watching the
> directory.
>
> Can you open konqueror in your HOME, and check the result of a
> "while(true) do echo >> $HOME/log; done" in top?

Yes I can.

Sorry for not answering not earlier, but I am in the progress of setting up
a new computer. Here's the results for the new system:

Athlon XP2220+ , SuSE8.1 with preinstalled KDE 3.0.3.

CPU states: 23.7% user, 76.2% system,  0.0% nice,  0.0% idle
20697 chris     25   0  1728 1728  1696 R    37.1  0.3   1:19 bash
 1183 chris    -51   0  5532 5524  4116 S     2.9  1.0   1:40 artsd
20703 root      15   0   972  972   756 R     0.1  0.1   0:00 top

Rest of the processes uses 0.0% CPU (No, I don't know why
37.1% + 2.9% + 0.1% = 100%). And I do not see any fam process,
probably I just "forgot" to install/setup/whatsover the fam subsystem.

But basically this means in plain SuSE8.1 there is no FAM in KDE.

I can give results for my old system (PIII-450, current CVS, DNOTIFY)
later.

Chris





More information about the kde-core-devel mailing list