High cpu usage caused by Remote Desktop?

Bug #367087 reported by Saleem on 2009-04-26
22
This bug affects 2 people
Affects Status Importance Assigned to Milestone
remotedesk (Ubuntu)
Undecided
Unassigned

Bug Description

After upgrading to ubuntu 9.04 from 8.1, I noticed excessive cpu usage and sluggishness on my computer. I think there might be something going on when the remote desktop is enabled because when I disabled that feature, cpu usage went down considerably. Although remote desktop was enabled, I wasn't using it during the excessive cpu usage and it didn't show up in the different ways I was trying to find out what was hogging all my cpu. Even with it off, cpu usage is about 20% on each my 2 cores (was at 60-80% on both cores with remote desktop enabled), without much running other then firefox and totem at the moment (this is noticeably more then ubuntu 8.1). Let me know if there's any other information I can provide to help...

Thanks

Saleem

I'm a Ubuntu user for the last 4 months and I'm just in love with linux (upgraded from windows vista), and don't understand why windows is still in business with linux and mac os around. I'm a new user and trying to learn everything as fast I can, but I have to say that you guys are awesome!!!

ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 9.04
ExecutablePath: /usr/bin/yelp
NonfreeKernelModules: nvidia
Package: yelp 2.25.1-0ubuntu5
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: yelp
Uname: Linux 2.6.28-11-generic i686

Saleem (sgmahjub) wrote :
affects: ubuntu → remotedesk (Ubuntu)
mike Bernson (mike-mlb) wrote :

I am also seeing the same problem.

The machine is a laptop Thinkpad T61p.

When remote desktop is enable the cpu goes to 25-35% turn off the remote desktop drop the cpu normal level (1%-3%).
This did not cause a problem on 8.10.

The problem exists with both nvida 180 driver and free driver. It looks to be something in the remote desk top server. It
was spawning over and over. I could see the PID for the server task keep increasing but did not see anything in
syslog or messages.

This was a clean install of 9.04.
For now have turned off the remote desktop.

First time I have used Launchpad, so apologies in advance if I do this wrong.

I have the same problem as already described.

9.04, upgraded from 8.10. On a desktop machine, with an AMD dual-core processor and a decent slice of memory.

Whenever I enable Remote Desktop, CPU usage is consistently between 50 and 60%. Turn off Remote Desktop and it drops down to 0-1% at idle. The change is immediate - it happens the moment you untick the "Allow other users to view your desktop" box.

If I log in with another user account without Remote Desktop activated, the activity remains low.

For now, as Mike Bernson has said, I have turned off "Remote Desktop".

Oli.

pgwulfing (pgwulfing) wrote :

I found the same problem on a clean install of 9.04 to an old Dell Dimension 4300. If I enable Remote desktop, the CPU utilization pegs at 100%. When I turn it off, it drops to 20% or below.

bford16 (bford16) wrote :

Here is what I noticed about this problem. If you have enabled saved sessions, and enabled Remote Desktop, then /usr/lib/vino-server is called twice on startup. There is an entry in ~/.config/autostart that looks like this:

[Desktop Entry]
Name=Remote Desktop
Comment=GNOME Remote Desktop Server
Exec=/usr/lib/vino/vino-server
Icon=preferences-desktop-remote-desktop
OnlyShowIn=GNOME;
Terminal=false
Type=Application
AutostartCondition=GNOME /desktop/gnome/remote_access/enabled
X-GNOME-Autostart-Phase=Applications
X-GNOME-AutoRestart=true
X-Ubuntu-Gettext-Domain=vino
Name[en_US]=Remote Desktop
Comment[en_US]=GNOME Remote Desktop Server
X-GNOME-Autostart-enabled=false

A second entry is stored in ~.config/gnome-session/saved-session, that looks like this:

[Desktop Entry]
Name=Remote Desktop
Comment=GNOME Remote Desktop Server
Exec=/usr/lib/vino/vino-server --sm-config-prefix /vino-server-HoEasp/ --sm-client-id 10bcd2e6992780ce6c125357640957023300000256140028 --screen 0
Icon=preferences-desktop-remote-desktop
OnlyShowIn=GNOME;
Terminal=false
Type=Application
AutostartCondition=GNOME /desktop/gnome/remote_access/enabled
X-GNOME-Autostart-Phase=Applications
X-GNOME-AutoRestart=true
X-Ubuntu-Gettext-Domain=vino
Name[en_US]=Remote Desktop
Comment[en_US]=GNOME Remote Desktop Server
X-GNOME-Autostart-enabled=false
X-GNOME-Autostart-startup-id=10bcd2e6992780ce6c125357640957023300000256140028

I am probably wrong, but it looks to me like enabling Remote Desktop causes the process to be run twice, with conflicting options. Also, the X-GNOME-AutoRestart=true suggests to me that if the process is killed, it will automatically restart (which is exactly what happens).

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers