xorg 100% cpu when scrolling in rdesktop

Bug #378958 reported by dvg
40
This bug affects 7 people
Affects Status Importance Assigned to Milestone
xserver-xorg-video-ati (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

After upgrading from Ubuntu 8.10 to 9.04, my rdesktops to Windows servers are unusable.
Screen refreshes inside rdesktop are awfully slow. Scrolling a logfile causes xorg to take 100% cpu.

I'm using Ubuntu 9.04 as default as possible, no xorg.conf editing or other vga drivers.

I have a ThinkPad Z60m with an ATI x600 mobility:
root@tp:~# lspci |grep -i vga
01:00.0 VGA compatible controller: ATI Technologies Inc M24 1P [Radeon Mobility X600]

Very easy to reproduce with default settings:
- launch laptop from Ubuntu 9.04 live cd
- open rdesktop or tsclient to a Windows machine
- open a large logfile or a putty window
- watch how the screen in building up line per line, slowing down even more near the buttom of the screen

I tested other ThinkPads with other vga cards, they don't have this issue.
- Z61m with ATI x1400 = ok
- R61 with nVidia = ok

A few more observations:
- 2D and 3D in Ubuntu works fine with the new default driver (great job :-)
- Visual Effects (Compiz?) work fine, on 'normal' and even 'extra', but have no effect on the reported issue. I always disable the visial effects.
- scrolling in other applications works fine and fast (FF3, gedit, terminal,...)
- I use rdesktop in a windowed mode (1280x960), RDPv5
- I tried rdesktop bitmap caching enable/disable, same for both
- when I launch a Windows RDP inside my rdesktop, this 2nd RDP does NOT suffer the same problem

Revision history for this message
Bryce Harrington (bryce) wrote :

Hi dvg1976,

Please attach the output of `lspci -vvnn`, and attach your /var/log/Xorg.0.log (and maybe Xorg.0.log.old) file from after reproducing this issue. If you've made any customizations to your /etc/X11/xorg.conf please attach that as well.

[This is an automated message. Apologies if it has reached you inappropriately; please just reply to this message indicating so.]

tags: added: needs-xorglog
tags: added: needs-lspci-vvnn
Changed in xserver-xorg-video-ati (Ubuntu):
status: New → Incomplete
Revision history for this message
dvg (dvg1976) wrote :

Reproduced with LiveCD 9.04, livecd-Xorg.0.log in attachment.

Revision history for this message
dvg (dvg1976) wrote :

Reproduced with LiveCD 9.04, livecd-lspci-vvnn.out in attachment.

Revision history for this message
Xprogrammer (programmer-x) wrote :

We are facing same problem in my team mate PC. He has ATI graphics card and I've Nvidia card. if I do 'rdesktop' to windows PC, everything works well.

From his pc, rdesktop goes to 100% whenever windows VI editor scrolling....

Does anyone has work-around for this problem ?.

dvg (dvg1976)
Changed in xserver-xorg-video-ati (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Rolf Leggewie (r0lf) wrote :

perhaps related to bug 363238?

Revision history for this message
Magnus Lidbom (magnus-lidbom) wrote :

I'm encountering this issue on a travelmate tm8204wlmi with an ati x1600 card.

It may well be related to bug 363238 somehow, since switching to XAA as recommended in the comments there does fix the problem for me. However, EXA gives me vastly superior performance compared to XAA in every single application I've tried except for rdesktop. With XAA and compiz displaying or resizing a window takes 2-3 seconds on my computer.

Revision history for this message
Magnus Lidbom (magnus-lidbom) wrote :

FYI: This problem is now solved for me on Gentoo.
I was seeing the problem until just recently. I believe the fix came with an update of libdrm from version 2.4.11 to 2.4.12
Perhaps this information is useful for ubuntu developers to be able to backport the fix.

Bryce Harrington (bryce)
tags: added: jaunty
Revision history for this message
Bryce Harrington (bryce) wrote :

[This is an automatic notification.]

A new version of the -ati driver is now available in Karmic.

This is a significant update to -ati which brings in kernel mode-setting
(currently disabled) and scores of fixes for DRI2, EXA, etc.

I've posted the new version of this driver to the following PPA,
would you mind testing it and seeing if it resolves the bug you
reported?

  https://edge.launchpad.net/~bryceharrington/+archive/ppa/+sourcepub/709908/+listing-archive-extra

If you're not running this release of Ubuntu, you can try booting the Karmic
LiveCD and loading the PPA onto it, and then log out/in to restart X.
ISOs are available at http://cdimages.ubuntu.com/releases/

After testing Karmic, report back here whether it's still an issue or not,
and if it is please post a fresh Xorg.0.log and 'dmesg' output.

Note there could be new bugs... please file these as new reports using
the command 'ubuntu-bug xorg'.

Changed in xserver-xorg-video-ati (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
dvg (dvg1976) wrote :

When booting from the karmic-desktop-i386 live cd, everything was working perfectly.
After installing the new drivers from your ppa however, my screen wasn't recognised and i got a 1280x1024 resolution.
I tested the scrolling in rdesktop anyway but the problem reappeared (cpu 100%, scrolling text or eventvwr hangs laptop).
I will upload all logfiles later today, when I do the test again.

Bryce Harrington (bryce)
Changed in xserver-xorg-video-ati (Ubuntu):
status: Incomplete → New
Revision history for this message
Bryce Harrington (bryce) wrote :

Thanks, yeah we'll want the fresh log files in order to send this bug upstream.

Changed in xserver-xorg-video-ati (Ubuntu):
status: New → Incomplete
Revision history for this message
dvg (dvg1976) wrote :

Attached in karmic-livecd-logs.tar:

All ok with karmic/alpha-4 defaults:
-> karmic-livecd-default-dmesg
-> karmic-livecd-default-Xorg.0.log

After installing "i386 build of xserver-xorg-video-ati 1:6.12.99+git20090825.fc74e119-0ubuntu1 in ubuntu karmic RELEASE": messed up resolution, Xorg 100% cpu when dragging the rdesktop window around, Xorg 100% cpu when scrolling WinXP eventvwr in rdesktop. But, unlike before, the log entries now disappear while scrolling and the rdesktop doesn't hang completely.

-> karmic-livecd-ati_6.12.99-dmesg
-> karmic-livecd-ati_6.12.99-Xorg.0.log
-> karmic-livecd-ati_6.12.99-Xorg.1.log

dvg (dvg1976)
Changed in xserver-xorg-video-ati (Ubuntu):
status: Incomplete → New
Revision history for this message
doesntcount (doesntcount) wrote :

Is there an eta for a fix in jaunty? I'd rather not have to upgrade to karmic to get this fix.

Revision history for this message
dvg (dvg1976) wrote :

fixed in Ubuntu 9.10

Revision history for this message
Pedro Sousa (pgsousa) wrote :

Hi,

this also happens in 9.10, when scrolling in certain applications using rdesktop, Xorg gets 100% CPU. I see this behaviour on several drivers, including intel, nvidia, s3 and vesa.

Revision history for this message
WolphFang (mjoyner-vbservices) wrote :

Affects 10.04

here is my xorg.conf

Revision history for this message
Bryce Harrington (bryce) wrote :

[This is an automatic notification.]

Hi dvg,

This bug was reported against an earlier version of Ubuntu, can you
test if it still occurs on Lucid?

Please note we also provide technical support for older versions of
Ubuntu, but not in the bug tracker. Instead, to raise the issue through
normal support channels, please see:

    http://www.ubuntu.com/support

If you are the original reporter and can still reproduce the issue on
Lucid, please run the following command to refresh the report:

  apport-collect 378958

If you are not the original reporter, please file a new bug report, so
we can work with you as the original reporter instead (you can reference
bug 378958 in your report if you think it may be related):

  ubuntu-bug xorg

If by chance you can no longer reproduce the issue on Lucid or if you
feel it is no longer relevant, please mark the bug report 'Fix Released'
or 'Invalid' as appropriate, at the following URL:

  https://bugs.launchpad.net/ubuntu/+bug/378958

Changed in xserver-xorg-video-ati (Ubuntu):
status: New → Incomplete
tags: added: needs-retested-on-lucid-by-june
Revision history for this message
WolphFang (mjoyner-vbservices) wrote : Re: [Bug 378958] Re: xorg 100% cpu when scrolling in rdesktop
Download full text (3.2 KiB)

Actually, since my last updates the bug has gotten much worse. Firefox
hangs, etc.
It seems to be related to nvidia + xinerama, I have two nvidia cards with
four displays.

On Wed, May 5, 2010 at 4:20 PM, Bryce Harrington
<email address hidden>wrote:

> [This is an automatic notification.]
>
> Hi dvg,
>
> This bug was reported against an earlier version of Ubuntu, can you
> test if it still occurs on Lucid?
>
> Please note we also provide technical support for older versions of
> Ubuntu, but not in the bug tracker. Instead, to raise the issue through
> normal support channels, please see:
>
> http://www.ubuntu.com/support
>
>
> If you are the original reporter and can still reproduce the issue on
> Lucid, please run the following command to refresh the report:
>
> apport-collect 378958
>
> If you are not the original reporter, please file a new bug report, so
> we can work with you as the original reporter instead (you can reference
> bug 378958 in your report if you think it may be related):
>
> ubuntu-bug xorg
>
> If by chance you can no longer reproduce the issue on Lucid or if you
> feel it is no longer relevant, please mark the bug report 'Fix Released'
> or 'Invalid' as appropriate, at the following URL:
>
> https://bugs.launchpad.net/ubuntu/+bug/378958
>
>
> ** Changed in: xserver-xorg-video-ati (Ubuntu)
> Status: New => Incomplete
>
> ** Tags added: needs-retested-on-lucid-by-june
>
> --
> xorg 100% cpu when scrolling in rdesktop
> https://bugs.launchpad.net/bugs/378958
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “xserver-xorg-video-ati” package in Ubuntu: Incomplete
>
> Bug description:
> After upgrading from Ubuntu 8.10 to 9.04, my rdesktops to Windows servers
> are unusable.
> Screen refreshes inside rdesktop are awfully slow. Scrolling a logfile
> causes xorg to take 100% cpu.
>
> I'm using Ubuntu 9.04 as default as possible, no xorg.conf editing or other
> vga drivers.
>
> I have a ThinkPad Z60m with an ATI x600 mobility:
> root@tp:~# lspci |grep -i vga
> 01:00.0 VGA compatible controller: ATI Technologies Inc M24 1P [Radeon
> Mobility X600]
>
>
> Very easy to reproduce with default settings:
> - launch laptop from Ubuntu 9.04 live cd
> - open rdesktop or tsclient to a Windows machine
> - open a large logfile or a putty window
> - watch how the screen in building up line per line, slowing down even more
> near the buttom of the screen
>
>
> I tested other ThinkPads with other vga cards, they don't have this issue.
> - Z61m with ATI x1400 = ok
> - R61 with nVidia = ok
>
>
> A few more observations:
> - 2D and 3D in Ubuntu works fine with the new default driver (great job :-)
> - Visual Effects (Compiz?) work fine, on 'normal' and even 'extra', but
> have no effect on the reported issue. I always disable the visial effects.
> - scrolling in other applications works fine and fast (FF3, gedit,
> terminal,...)
> - I use rdesktop in a windowed mode (1280x960), RDPv5
> - I tried rdesktop bitmap caching enable/disable, same for both
> - when I launch a Windows RDP inside my rdesktop, this 2nd RDP does NOT
> suffer the same problem
>
> To unsubscribe from this bug...

Read more...

Bryce Harrington (bryce)
tags: removed: needs-xorglog
tags: removed: needs-lspci-vvnn
Changed in xserver-xorg-video-ati (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
dvg (dvg1976) wrote :

Hi Bryce,

I've tested it with the LiveCD of Ubuntu 10.04 on the same laptop (Thinkpad Z60m with ATI x600 mobility) and I don't have the issue. It only occurred after upgrading 8.10 to 9.04 and got fixed in 9.10.

Regards,
dvg

Bryce Harrington (bryce)
tags: added: hardy
Revision history for this message
Paul Gotch (paulg-chiark) wrote :

This or something similar also affects me in 11.04. Using an RV710 based ATI card using the free driver. Text Scrolling in rdesktop produces high host CPU load and is very slow.

I'm not sure but I think that this wasn't a problem when I had a nvidia card and was using the binary drivers (which I don't want to do for other reasons).

Revision history for this message
penalvch (penalvch) wrote :

dvg, this bug report is being closed due to your last comment https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-ati/+bug/378958/comments/18 regarding this being fixed with an update. For future reference you can manage the status of your own bugs by clicking on the current status in the yellow line and then choosing a new status in the revealed drop down box. You can learn more about bug statuses at https://wiki.ubuntu.com/Bugs/Status. Thank you again for taking the time to report this bug and helping to make Ubuntu better. Please submit any future bugs you may find.

Changed in xserver-xorg-video-ati (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
WolphFang (mjoyner-vbservices) wrote : Invitation to connect on LinkedIn

LinkedIn
------------

Bug,

I'd like to add you to my professional network on LinkedIn.

- Michael

Michael Joyner
Programmer at NewsRx
Greater Atlanta Area

Confirm that you know Michael Joyner:
https://www.linkedin.com/e/5mmmew-hr9ik4fz-1t/isd/19867559405/VCFhjn7A/?hs=false&tok=0VK0Uwrbg1US41

--
You are receiving Invitation to Connect emails. Click to unsubscribe:
http://www.linkedin.com/e/5mmmew-hr9ik4fz-1t/TKe-S8LKaFm4LVu-5C4NWbCKjHqQiHTsZNzfWXJ/goo/378958%40bugs%2Elaunchpad%2Enet/20061/I6410445735_1/?hs=false&tok=0mdSqTS2g1US41

(c) 2012 LinkedIn Corporation. 2029 Stierlin Ct, Mountain View, CA 94043, USA.

a1bert (a1bert)
Changed in xserver-xorg-video-ati (Ubuntu):
status: Invalid → New
status: New → Invalid
Revision history for this message
Péter (xfaeznimltegstg) wrote :

This bug appears in current (X)ubuntu 16.10.

Whether appears in 16.04 is unknown. (Perhaps not, else I could notice it earlier.)
I tried to make a test in a virtual (virtualboxed) Xubuntu_16.04.1 - no bug!
Then I made a test in a (similar) virtualboxed Xubuntu_16.10 - no bug either!
So in "real" Xubuntu the bug appears, but in virtualboxed one (the *same* Xubuntu) does not.

When I do scrolling (in a TotalCmd filecontent-comparison window), (in the real Xubuntu) Xorg consumes about 23% CPU, which I guess probably means almost 100% of one "core" (or "cpu thread" or what).

I have a 64bit Samsung laptop, with i915 video.

I will try to attach output of 'lspci -vvnn' and two /var/log/Xorg.0.log* files.

$ rdesktop
rdesktop: A Remote Desktop Protocol client.
Version 1.8.3. Copyright (C) 1999-2011 Matthew Chapman et al.
[...]

The command line was:
$ rdesktop -u xxuserxx -k hu -g 1500x900 -a 16 -z -P -r clipboard:CLIPBOARD xx.ip.addr.xx

Revision history for this message
Péter (xfaeznimltegstg) wrote :

With xubuntu-16.04.1-desktop-amd64.iso live cd: the bug does *not* appear.

With xubuntu-16.10-desktop-amd64.iso live cd: the bug *does* appear.

The test detailed: I booted with the usb stick, choosed "try xubuntu", issued a "sudo ufw enable", "sudo apt-get update", (have not issued "dist-upgrade" nor "upgrade"), "sudo apt-get install rdesktop", "rdesktop -u xxuserxx -k hu -g 1400x700 -a 16 -z -P -r clipboard:CLIPBOARD xx.ip.addr.xx".

Revision history for this message
penalvch (penalvch) wrote :

Péter (xfaeznimltegstg), as this report is closed, it doesn't affect you.

However, regarding your issue, it will help immensely if you filed a new report with Ubuntu by ensuring you have the package xdiagnose installed, and that you click the Yes button for attaching additional debugging information running the following from a terminal:
ubuntu-bug xorg

Also, please feel free to subscribe me to it.

For more on why this is helpful, please see https://wiki.ubuntu.com/ReportingBugs.

Revision history for this message
Péter (xfaeznimltegstg) wrote :

What do you mean by saying "it doesn't affect you"? (It definitely affect me.)

What are you saying? Posting here is completely useless? (Why is not it indicated, with VERY bold letters?) No one will even forward my report?

What should I do exactly? (Just "ubuntu-bug xorg"? Without, for example launching rdesktop? On what platform? Which live-usb?) (All my sensitive data, without review possibility, will be made public?..)

The https://help.ubuntu.com/community/ReportingBugs says that I should use Launchpad.net. (This site.)
And "if you find an already reported bug that is exactly like the problem you have, please feel free to add this information to the existing report". I did that.

Revision history for this message
penalvch (penalvch) wrote :

Péter, the documentation at https://help.ubuntu.com/community/ReportingBugs has been fixed so folks aren't confused when they are asked to file a new report.

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.