Skip to contentSkip to conversation

New: high load avg, extreme sluggishness on T41 w/ Radeon Mobility M7

Bug 15328 [email protected] 1 participant 22 messages Feb 16, 2010 – Feb 22, 2010

lore
Share & tools
lore

[email protected]

author Acked-by Thomas Hellstrom
#0 lore raw

http://bugzilla.kernel.org/show_bug.cgi?id=15328

Summary: high load avg, extreme sluggishness on T41 w/ Radeon
Mobility M7
Product: Drivers
Version: 2.5
Kernel Version: 2.6.33-rc8
Platform: All
OS/Version: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: Video(DRI - non Intel)
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Regression: Yes

After loading a recent wireless-testing kernel (based on 2.6.33-rc8) on my T41 I noticed an unacceptabel sluggishness. Opening gnome-terminal took a long time, firefox took so long I rebooted before it ever came-up, etc. The w command continually reported a load average for between 2 and 3 on an apparently idle box.

A git bisect session identified this patch:

commit db78e27de7e29a6db6be7caf607cf803d84094aa

Author: Francisco Jerez <[email protected]>
Date:   Tue Jan 12 18:49:43 2010 +0100

drm/ttm: Avoid conflicting reserve_memtype during ttm_tt_set_page_caching.

Fixes errors like:
> reserve_ram_pages_type failed 0x15b7a000-0x15b7b000, track 0x8, req 0x10 when a BO is moved between WC and UC areas.

Just to verify, I sent back to my wireless-testing tree and reverted that patch. This restored normal/acceptable performance.

If you need/want testing or whatnot just let me know...

Signature · 9 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
--
#1 lore raw

[Bug 15328] high load avg, extreme sluggishness on T41 w/ Radeon Mobility M7

http://bugzilla.kernel.org/show_bug.cgi?id=15328

Xavier Chantry <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #1 from Xavier Chantry <[email protected]> 2010-02-16 20:36:49 --- It was also reported here :
http://www.mail-archive.com/[email protected]/msg47164.html

I asked curro about it but he had no idea :
17:13 < shining> curro__: did you see "Problem with drm-radeon-testing commit - drm/ttm: Avoid conflicting reserve_memtype during ttm_tt_set_page_caching." ? 17:20 < curro__> shining: not sure about that

It seems to be an issue only for few radeon users.

Signature · 9 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
--
#2 lore raw

[Bug 15328] high load avg, extreme sluggishness on T41 w/ Radeon Mobility M7

In reply to [email protected]

http://bugzilla.kernel.org/show_bug.cgi?id=15328

--- Comment #2 from John W. Linville <[email protected]> 2010-02-16 20:43:30 --- Definitely the same commit, and sounds more-or-less like the same problem. Although in the report above it doesn't sound that terrible whereas on this T41 (single 1.6GHz i686) it cripples the box.

Signature · 9 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
--
#3 lore raw

[Bug 15328] high load avg, extreme sluggishness on T41 w/ Radeon Mobility M7

In reply to [email protected]

http://bugzilla.kernel.org/show_bug.cgi?id=15328

--- Comment #3 from Thomas Hellstrom <[email protected]> 2010-02-16 21:24:27 --- Really, The Radeon driver *should* never change caching policy from WC to UC, and thus never hit the code path affected by that patch. However if it does, and particularly if it does frequently it's quite natural that the patch causes severe CPU overhead since transition from WC->WB->UC causes a cache flush whereas WC->UC doesn't.

Maybe Jerome has some input?

Signature · 9 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
--
#4 lore raw

[Bug 15328] high load avg, extreme sluggishness on T41 w/ Radeon Mobility M7

In reply to [email protected]

http://bugzilla.kernel.org/show_bug.cgi?id=15328

--- Comment #4 from John W. Linville <[email protected]> 2010-02-17 22:06:22 --- I have no idea at to how serious a problem the commit fixed. But I know it is causing a serious problem on my T41. Maybe I'm wrong, but I don't get the feeling that the patch author is too interested in fixing the problem his patch created. Since we are late in the 2.6.33 cycle, I would prefer to see this reverted under the "we don't exchange one bug for another" policy.

Signature · 11 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.

------------------------------------------------------------------------------
Download Intel&reg; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs 
proactively, and fine-tune applications for parallel performance. 
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--
#5 lore raw

[Bug 15328] high load avg, extreme sluggishness on T41 w/ Radeon Mobility M7

In reply to [email protected]

http://bugzilla.kernel.org/show_bug.cgi?id=15328

Pauli <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #5 from Pauli <[email protected]> 2010-02-17 22:25:34 --- (In reply to comment #4)

Quoted 5 lines

I have no idea at to how serious a problem the commit fixed. But I know it is causing a serious problem on my T41. Maybe I'm wrong, but I don't get the feeling that the patch author is too interested in fixing the problem his patch created. Since we are late in the 2.6.33 cycle, I would prefer to see this reverted under the "we don't exchange one bug for another" policy.

Does your kernel have PAT enabled?

Signature · 11 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.

------------------------------------------------------------------------------
Download Intel&reg; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs 
proactively, and fine-tune applications for parallel performance. 
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--
#6 lore raw

[Bug 15328] high load avg, extreme sluggishness on T41 w/ Radeon Mobility M7

In reply to [email protected]

http://bugzilla.kernel.org/show_bug.cgi?id=15328

--- Comment #6 from bjaglin <[email protected]> 2010-02-18 01:59:51 --- Same problem here on a T40 (Radeon 9000 - RV250), extremely sluggish for

Quoted 1 line

=2.6.33-rc7. Reverting the commit mentioned above seems to fix the problem.

If that's what you are asking, cat /proc/cpuinfo does not show "pat" as a flag on my Pentium M (SL7EG).

Signature · 11 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.

------------------------------------------------------------------------------
Download Intel&reg; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs 
proactively, and fine-tune applications for parallel performance. 
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--
#7 lore raw

[Bug 15328] high load avg, extreme sluggishness on T41 w/ Radeon Mobility M7

In reply to [email protected]

http://bugzilla.kernel.org/show_bug.cgi?id=15328

Jérôme Glisse <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #7 from Jérôme Glisse <[email protected]> 2010-02-18 15:44:56 --- Yes, radeon is wrong, i am tracking down why we are doing WC -> UC or UC -> WC

Signature · 14 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel
#8 lore raw

[Bug 15328] high load avg, extreme sluggishness on T41 w/ Radeon Mobility M7

In reply to [email protected]

http://bugzilla.kernel.org/show_bug.cgi?id=15328

--- Comment #8 from Jérôme Glisse <[email protected]> 2010-02-18 17:02:45 --- Ok so it's more likely because on non PAT get_page_memtype always return -1 thus we always do set_wb and if page were already wb it likely kill perf. I don't think we ever do WC -> UC or UC -> WC.

Signature · 14 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel
#9 lore raw

[Bug 15328] high load avg, extreme sluggishness on T41 w/ Radeon Mobility M7

In reply to [email protected]

http://bugzilla.kernel.org/show_bug.cgi?id=15328

--- Comment #9 from Francisco Jerez <[email protected]> 2010-02-18 18:53:42 --- Created an attachment (id=25107)
--> (http://bugzilla.kernel.org/attachment.cgi?id=25107)
ttm_set_caching_nopat.patch

I guess the attached patch fixes it. However it might make sense to fix the PAT code instead because this interface is somewhat annoying.

Signature · 11 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--
#10 lore raw

[Bug 15328] high load avg, extreme sluggishness on T41 w/ Radeon Mobility M7

In reply to [email protected]

http://bugzilla.kernel.org/show_bug.cgi?id=15328

Francisco Jerez <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #10 from Francisco Jerez <[email protected]> 2010-02-18 19:14:55 --- BTW, sorry for not taking care of this before.

Signature · 11 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--
#11 lore raw

[Bug 15328] high load avg, extreme sluggishness on T41 w/ Radeon Mobility M7

In reply to [email protected]

http://bugzilla.kernel.org/show_bug.cgi?id=15328

--- Comment #11 from John W. Linville <[email protected]> 2010-02-19 14:23:30 --- Sorry for the delay...

CONFIG_X86_PAT=y

Building w/ patch from comment 9 now.

Signature · 11 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--
#12 lore raw

[Bug 15328] high load avg, extreme sluggishness on T41 w/ Radeon Mobility M7

In reply to [email protected]

http://bugzilla.kernel.org/show_bug.cgi?id=15328

--- Comment #12 from John W. Linville <[email protected]> 2010-02-19 15:00:57 --- Yup, that looks good...thanks!

Signature · 11 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--
#13 lore raw

[Bug 15328] high load avg, extreme sluggishness on T41 w/ Radeon Mobility M7

In reply to [email protected]

http://bugzilla.kernel.org/show_bug.cgi?id=15328

Francisco Jerez <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

  Attachment #25107|0                           |1

is obsolete| |

--- Comment #13 from Francisco Jerez <[email protected]> 2010-02-19 16:48:47 --- Created an attachment (id=25118)
--> (http://bugzilla.kernel.org/attachment.cgi?id=25118)
ttm_set_caching_nopat_2.patch

This patch uses a simpler approach, would you mind checking that it has the same effect?

Signature · 11 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--
#14 lore raw

[Bug 15328] high load avg, extreme sluggishness on T41 w/ Radeon Mobility M7

In reply to [email protected]

http://bugzilla.kernel.org/show_bug.cgi?id=15328

--- Comment #14 from John W. Linville <[email protected]> 2010-02-19 18:47:23 --- The patch from comment 13 is acceptable, but my "seat of the pants" feeling is that the first patch performed better. FWIW the load average seemed 20-30% lower with the first patch too, but I didn't do exhaustive testing by any means.

Signature · 11 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--
#15 lore raw

[Bug 15328] high load avg, extreme sluggishness on T41 w/ Radeon Mobility M7

In reply to [email protected]

http://bugzilla.kernel.org/show_bug.cgi?id=15328

Tobias Jakobi <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #15 from Tobias Jakobi <[email protected]> 2010-02-19 22:35:26 --- I'm experiencing similar problems on my RV740 which is hooked up through the PCIe.

I first noticed the issue when updating drm-radeon-testing and mesa+xf86-video-ati+libdrm to git master.

I'm now using the latest drm-linus branch, which should fix this problem - but apparantly not for me. Maybe it's just similar...

Anyway, I now have a average performance of 4fps in CS 1.5. The funny thing is that quake3 is running with around 300fps when not limiting the fps. However that's the only application I have currently installed that does that. Every other OpenGL game I tested slows down to a crawl.

I also tried both patches here on drm-radeon-testing prior to checking out drm-linus. Applying them there makes no difference to the performance.

Signature · 11 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--
#16 lore raw

[Bug 15328] high load avg, extreme sluggishness on T41 w/ Radeon Mobility M7

In reply to [email protected]

http://bugzilla.kernel.org/show_bug.cgi?id=15328

--- Comment #16 from Francisco Jerez <[email protected]> 2010-02-19 22:49:18 --- (In reply to comment #15)

Quoted 9 lines

I'm experiencing similar problems on my RV740 which is hooked up through the PCIe.

I first noticed the issue when updating drm-radeon-testing and mesa+xf86-video-ati+libdrm to git master.

I'm now using the latest drm-linus branch, which should fix this problem - but apparantly not for me. Maybe it's just similar...

Quoted 7 lines

Anyway, I now have a average performance of 4fps in CS 1.5. The funny thing is that quake3 is running with around 300fps when not limiting the fps. However that's the only application I have currently installed that does that. Every other OpenGL game I tested slows down to a crawl.

I also tried both patches here on drm-radeon-testing prior to checking out drm-linus. Applying them there makes no difference to the performance.

Have you tried reverting db78e27de7e2?

Signature · 11 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--
#17 lore raw

[Bug 15328] high load avg, extreme sluggishness on T41 w/ Radeon Mobility M7

In reply to [email protected]

http://bugzilla.kernel.org/show_bug.cgi?id=15328

--- Comment #17 from Tobias Jakobi <[email protected]> 2010-02-19 23:36:50 --- I get an error with git when trying to revert the commit, so I just tried the two patches.

Signature · 11 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--
#18 lore raw

[Bug 15328] high load avg, extreme sluggishness on T41 w/ Radeon Mobility M7

In reply to [email protected]

http://bugzilla.kernel.org/show_bug.cgi?id=15328

--- Comment #18 from Francisco Jerez <[email protected]> 2010-02-19 23:44:25 --- (In reply to comment #17)

Quoted 2 lines

I get an error with git when trying to revert the commit, so I just tried the two patches.

You'll need to revert f0e2f38befa7 first.

Signature · 11 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--
#19 lore raw

[Bug 15328] high load avg, extreme sluggishness on T41 w/ Radeon Mobility M7

In reply to [email protected]

http://bugzilla.kernel.org/show_bug.cgi?id=15328

--- Comment #19 from Tobias Jakobi <[email protected]> 2010-02-19 23:49:06 --- I just went back to commit db78e27de7e2 and reverted then - I'm now building that tree. Reporting back once I've done some tests.

Signature · 11 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--
#20 lore raw

[Bug 15328] high load avg, extreme sluggishness on T41 w/ Radeon Mobility M7

In reply to [email protected]

http://bugzilla.kernel.org/show_bug.cgi?id=15328

--- Comment #20 from Tobias Jakobi <[email protected]> 2010-02-20 00:03:17 --- No, nothing - doesn't have any effect on performance. Must be something else. I'm still wondering though since I already went back several weeks in git with xf86-video-ati, libdrm and mesa and the problem still occurs... have to think about what I updated in the past. :(

Signature · 11 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--
#21 lore raw

[Bug 15328] high load avg, extreme sluggishness on T41 w/ Radeon Mobility M7

In reply to [email protected]

http://bugzilla.kernel.org/show_bug.cgi?id=15328

Rafael J. Wysocki <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]
             Blocks|                            |14885
         Resolution|                            |PATCH_ALREADY_AVAILABLE

--- Comment #21 from Rafael J. Wysocki <[email protected]> 2010-02-22 21:42:00 --- Patch : http://bugzilla.kernel.org/attachment.cgi?id=25118

Signature · 11 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--