Bug 68637 - High CPU Usage when remote client is connected
Summary: High CPU Usage when remote client is connected
Status: RESOLVED INTENTIONAL
Alias: None
Product: krfb
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR wishlist
Target Milestone: ---
Assignee: tim
URL:
Keywords:
: 80261 99087 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-11-20 10:26 UTC by Arne Schmitz
Modified: 2008-05-03 10:43 UTC (History)
5 users (show)

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 Arne Schmitz 2003-11-20 10:26:58 UTC
Version:            (using KDE KDE 3.1.4)
Installed from:    SuSE RPMs
OS:          Linux

When i connect to my KDE desktop via VNC (SSH tunneled or not), CPU usage on that desktop soars up to 100%. I haven't looked at the sources, but I wonder if it is possible to reduce the usage of the CPU somewhat. I guess that it required some hacks to integrate VNC into X11 after the latter one started up, and when I use the regular Xvncserver, CPU-usage is also much lower. So is it possible in anyway to better integrate X11 and KDE's VNC server, so that CPU usage drops?
Comment 1 tim 2003-11-20 20:11:05 UTC
The problem with X11 is that it can't notify krfb when something on the screen changed, so krfb needs to poll for changes by getting the screen content and comparing it to the last snap shot. It tries various ways to improve performance, but in the end a relatively good framerate is only possible by using a large amount of CPU time. 
There's a X11 extension called XDamage in development that will solve the problem.

vncserver is a full X11 server. The networking part runs as graphic card driver, so it does not have these problems. 
Comment 2 Arne Schmitz 2004-02-03 09:36:34 UTC
I've got a hint, that some people might find useful. There is an XFree86 loadable module available which adds VNC functionality to the standard X-server. See http://xf4vnc.sourceforge.net/ for details. This is only useful for your own machines, since it runs systemwide instead of session-wide with KDE's VNC implementation, but it is unbelievably fast.
Comment 3 Carsten Schlipf 2004-04-20 16:21:37 UTC
xf4vnc seems to be very good. Why not integrate it into krfb? Of course, there is quite some effort for setting this up, but the current method could be the default, but if the vnc X module is loaded, this one is used.
Comment 4 tim 2004-04-24 16:09:40 UTC
*** Bug 80261 has been marked as a duplicate of this bug. ***
Comment 5 Luke-Jr 2004-07-22 00:08:46 UTC
The DAMAGE extention should be in the next version of xorg-x11 which will probably be released sometime in August from what I've heard... Will KDE 3.3's Krfb support it for once the new xorg-x11 is released? Even if it doesn't work right, broken support would be better than none at all that way it can be considered a bugfix to get it in for 3.3.1/2
Comment 6 tim 2005-02-11 12:23:11 UTC
*** Bug 99087 has been marked as a duplicate of this bug. ***
Comment 7 Gustavo Michels 2005-05-30 05:16:53 UTC
How does one find out if krfb supports the DAMAGE extension? If it doesn't, is it in the feature plan?
Comment 8 Luke-Jr 2005-05-30 05:22:47 UTC
If it's horribly inefficient and eating 100% CPU, it likely doesn't support DAMAGE (as it doesn't now).
There is nobody maintaining Krfb or Krdc at this time.
Comment 9 Gustavo Michels 2005-05-30 14:00:08 UTC
Yes, it is eating 100% cpu. I kind of knew the answer to my first question, but was hoping for it to be at least in the feature plan. Too bad no one is maintaining, it's unusable for me.

As an alternative to xf4vnc, I tried x11vnc and it works great and it does support the DAMAGE extension.
Comment 10 tmeedend 2007-05-15 12:03:00 UTC
I don't understand why this bug is marked as resolved ...
i still have this problem and I am on kubuntu 7.04
I think it is a very important problem.
saying that it will not be fixed is too bad :(
Comment 11 Jürgen Scholz 2008-05-03 10:43:22 UTC
I also don't like this. Why isn't there an option to set the rate manually? That would help a lot!!!