when vino is running for several hours, performance degrades, making xorg to eat up cpu usage

Bug #125179 reported by Tomas M.
8
Affects Status Importance Assigned to Milestone
vino (Ubuntu)
Fix Released
Low
Ubuntu Desktop Bugs

Bug Description

Binary package hint: vino

ok, ive been trying to pinpoint the problem of performance degrading under feisty fawn for a while.

i did 2 formats, different desktop environments, and yet, the problem persisted.

you can read the thread i started @ http://ubuntuforums.org/showthread.php?p=2949815#post2949815

i tried the following without any results:

ati closed fglrx drivers and ati open source drivers.
with compiz running, and withouth compiz running.
gnome, xfce, and kde.
formated twice, no external repositores, this problem started happening after i decided to format and move my ubuntu partition to a raid-0 (fakeraid array). during the second formatting, i moved the linux partition to an ATA drive, and the /home to the raid-0 array. same results.
downgraded xorg's libraries as pointed in bug # 88815

after disabling vino, and replacing the server with x11vnc, everything went back to normal (even vnc sessions ran smoother)

my system:
dfi lanparty UT- nf4 sli-dr
athlon64-939 3000+
4x512 ddr400 dual channel.
2x sata 80gb raid-0
several ide drives.
ati x600 128mb

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug. Are you using vino while performance degrade? Do you have any process using extra memory or cpu? Do you have easy steps to trigger the bug? The current descriptions lack details to be useful

Changed in vino:
assignee: nobody → desktop-bugs
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
SFS (sortfloorsolutions) wrote :

My wife connects to Feisty from Windows XP using VNC.

During the VNC session and after disconnecting, my PC is slow and XORG CPU utilization is very high. vino-server shows ~4.4MB of memory usage when she is connected and disconnected and it must be ended to return to normal operation. After ending vino-server, it's memory goes down to ~940KB.

This does not appear to be caused by entering the wrong password. It appears to occur every time VNC is used. Using the new utility that shows others are connected to disconnect, does not lower the CPU or the vino-server memory size of 4.4MB.

Please give me a detailed explanation of how to trace the issue for you.

Revision history for this message
Tomas M. (el-dragon) wrote :

well, actually, i wouldnt know how to reproduce the bug........it just happens when vino is up and running.......
it took me a while to figure this out since vino wasnt actually showing any performance degrading...
when the server was running....being connected to it (or not), performance would degrade with time.
the process being problematic when vino is running, is not vino itself, but xorg. could it be xorg at fault instead of vino?
killing vino fixes the issue for me.
ive been tracking xorg's logs and the kernel logs for a while trying to figure out what the problem could be, vino isnt in them. i ended up killing vino by chance. and presto.

Changed in vino:
status: Incomplete → New
Revision history for this message
steve hardy (hardysteven) wrote :
Download full text (4.2 KiB)

Hi,

I have pretty much this exact same fault with Ubuntu Gusty, as soon as a client (another Ubuntu Gusty machine) connects to the server, Xorg uses near 100% CPU and performance is terrible - the server machine grinds to a halt, and the client machine's remote desktop is sluggish.

The machines are two laptops, the "server" simply grinds to a halt as soon as the "client" connects via vncviewer.

The problem defintely appears related to vino-server : As soon as it starts handling a client request, the Xorg CPU utilization goes through the roof.

Here is before/after top :
BEFORE :
top - 22:07:37 up 4:04, 3 users, load average: 0.08, 0.04, 0.15
Tasks: 104 total, 2 running, 102 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 450300k total, 439256k used, 11044k free, 4368k buffers
Swap: 859436k total, 34704k used, 824732k free, 258032k cached

  PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
    1 root 15 0 2952 1852 532 S 0.0 0.4 0:01.57 init
    2 root 14 -5 0 0 0 S 0.0 0.0 0:00.00 kthreadd
    3 root RT -5 0 0 0 S 0.0 0.0 0:00.00 migration/0
    4 root 34 19 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/0
    5 root RT -5 0 0 0 S 0.0 0.0 0:00.00 watchdog/0
    6 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 events/0
    7 root 10 -5 0 0 0 S 0.0 0.0 0:00.02 khelper
   26 root 10 -5 0 0 0 S 0.0 0.0 0:00.12 kblockd/0
   27 root 10 -5 0 0 0 S 0.0 0.0 0:01.86 kacpid
   28 root 10 -5 0 0 0 S 0.0 0.0 0:00.03 kacpi_notify
  111 root 11 -5 0 0 0 S 0.0 0.0 0:00.01 kseriod
  128 root 15 0 0 0 0 S 0.0 0.0 0:00.04 pdflush
  129 root 15 0 0 0 0 S 0.0 0.0 0:00.49 pdflush
  130 root 10 -5 0 0 0 S 0.0 0.0 0:00.78 kswapd0
  181 root 11 -5 0 0 0 S 0.0 0.0 0:00.00 aio/0
 2029 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 ksuspend_usbd
 2030 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 khubd

AFTER client connection with vncviewer (top run on server)
top - 22:10:06 up 4:07, 3 users, load average: 0.31, 0.10, 0.15
Tasks: 104 total, 4 running, 100 sleeping, 0 stopped, 0 zombie
Cpu(s): 63.1%us, 14.6%sy, 0.0%ni, 19.6%id, 0.0%wa, 1.0%hi, 1.7%si, 0.0%st
Mem: 450300k total, 436764k used, 13536k free, 4440k buffers
Swap: 859436k total, 34704k used, 824732k free, 258156k cached

  PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
 4982 root 16 0 191m 30m 7232 R 64.8 6.8 54:28.34 Xorg
15658 steveh 15 0 32736 10m 6112 S 14.3 2.5 1:54.88 vino-server
16087 steveh 15 0 2368 1148 876 R 0.3 0.3 0:00.09 top
    1 root 15 0 2952 1852 532 S 0.0...

Read more...

Revision history for this message
Alan Bell (alanbell) wrote : do you have moving things on screen

is there a CPU monitor or pulsating Skype icon in the panel at the top of the screen? I think this was related to the problem for me.

Revision history for this message
girto (patspiper) wrote :

I have the same problem as steve hardy pointed 2 posts above:

With remote desktop enabled (vino server running), once a remote connection is established (using TightVNC viewer on the client), xorg on the server consumes about 50-60% of the CPU cycles (there is no further degradation).
Once the connection is dropped, xorg goes back to its usual < 10%.

Server setup:
Ubuntu Gutsy as released (will try updates asap)
Celeron 2.5GHz
512MB RAM
Intel 845GV chipset
i810 graphics driver
LCD panel 1024x768
100 Mbps LAN

There are no pulsating icons on the desktop.

Should a separate bug report be opened?

Revision history for this message
girto (patspiper) wrote :

I updated ubuntu with the automatic update. Same behavior!

However, just for accuracy purposes, when there is no remote connection established, xorg's CPU utilization drops to below 1% when the PC is idle.

Revision history for this message
Sebastien Bacher (seb128) wrote :

could you try if that's still an issue in hardy or intrepid?

Changed in vino:
status: New → Incomplete
Revision history for this message
Tomas M. (el-dragon) wrote :

running the SAME hardware with the same ubuntu install when reported the bug report. now running hardy upto date.. no fresh install. upgraded.

just killed my x11vnc server, and setup vino instead..

will report back after a day of usage...

Revision history for this message
Tomas M. (el-dragon) wrote :

ok, its late at night, and computer works fine.........so........i guess its been fixed.

either vino, xorg7.3 or ... whatever got fixed.....

anyone else got it fixed?

Revision history for this message
Sebastien Bacher (seb128) wrote :

closing the bug since that works correctly now

Changed in vino:
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.