Message: previous - next
Month: January 2013

Re: [trinity-devel] kdm_greet using lots and lots of CPU

From: russell@... (Russell Brown)
Date: Thu, 24 Jan 2013 17:59:14 +0000 (GMT)
Quoth Russell Brown.....
>3.5.13 kdm_greet eats lots of CPU.

As a followup to my own post (bad form I know :-)....

I've made a change to kdm that adds an option 'UseKDMCTL' (like UseSAK)
in kdmrc that can turn off the monitoring of the kdmctl FIFO (defaults
to true so it won't change anything).

Turning off this monitoring (and thence the loop where Tim's 500usec
sleep was inserted to try and reduce the load) drops the CPU usage of
idle kdm_greet processes from significant to undetectable (as background
I'm trying to configure a 30+ Xterminal system and having 30 kdm_greets
trying to eat ~10% CPU each isn't good).

The downside is that with this option set to 'true', kdmctl will
obviously no longer work; but at least folk have the option and it's
pretty clear what the choices are.

The files modified are:  config.def, kfrontend/kgapp.cpp and

Where and in what format should I send the patches for review?

| Russell Brown          | MAIL: russell@... PHONE: 01780 471800 |
| Lady Lodge Systems     | WWW Work:              |
| Peterborough, England  | WWW Play:         |