New: Lag/Pause When VRAM->GTT or GTT->VRAM transfer occur
https://bugs.freedesktop.org/show_bug.cgi?id=84648
Bug ID: 84648
Summary: Lag/Pause When VRAM->GTT or GTT->VRAM transfer occur
Product: Mesa
Version: git
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/radeonsi
Assignee: [email protected]
Reporter: [email protected]Created attachment 107298
--> https://bugs.freedesktop.org/attachment.cgi?id=107298&action=edit
HUD showing FPS drop and mem transfer
I got an lag / pause (stopping for one to +- 5 seconds) when I get transfer of memory from the VRAM to GTT and the opposite, the GTT to VRAM.
It append only on Minecraft (No problem with EVE-Online & Source Engine games), even sometime when it is not on the screen, and in that case, the whole X ui stay locked until the transfer finish. It usually go fine until the VRAM reach between 280-300MB and it start playing with the GTT.
The bug Append with:
Kernel 3.17-rc2+ (did not test the RC1, 3.16 was fine) Mesa GIT newer than somewhere in the beginning of september.
Note that these don't need to be recent for the two. A old kernel with a new Mesa and a new Kernel with a old Mesa recreate the problem. Having the latest GIT of the two don't fix the problem. (I did in fact update libdrm, llvm, mesa, xf86.... after upgrading the kernel to rc2, thinking something changed and was requiring a newer mesa.
I have attached a screenshot with the Gallium hud showing the FPS and memory.
PS : I thought initially that it was the same as BUG #82050 but got requested to file another bug.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84648] Lag/Pause When VRAM->GTT or GTT->VRAM transfer occur
https://bugs.freedesktop.org/show_bug.cgi?id=84648
Mathieu Belanger <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #107298|0 |1
is obsolete| |
--- Comment #1 from Mathieu Belanger <[email protected]> --- Created attachment 107299
--> https://bugs.freedesktop.org/attachment.cgi?id=107299&action=edit
Gallium hud screenshot
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84648] Lag/Pause When VRAM->GTT or GTT->VRAM transfer occur
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=84648
--- Comment #2 from Michel Dänzer <[email protected]> --- (In reply to Mathieu Belanger from comment #0)
Quoted 2 lines
A old kernel with a new Mesa and a new Kernel with a old Mesa recreate the problem.
Hmm, that's weird. Can you try bisecting Mesa with an old kernel and/or bisecting the kernel with old Mesa?
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84648] Lag/Pause When VRAM->GTT or GTT->VRAM transfer occur
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=84648
--- Comment #3 from [email protected] --- Fixed in linux-3.19rc1.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84648] Lag/Pause When VRAM->GTT or GTT->VRAM transfer occur
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=84648
--- Comment #4 from [email protected] ---
Created attachment 112921
--> https://bugs.freedesktop.org/attachment.cgi?id=112921&action=edit
Lags in ETS2
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84648] Lag/Pause When VRAM->GTT or GTT->VRAM transfer occur
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=84648
--- Comment #5 from [email protected] --- Confirm this bug with agd5/linux/drm-next-3.20-wip in ETS2 :(
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84648] Lag/Pause When VRAM->GTT or GTT->VRAM transfer occur
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=84648
--- Comment #6 from [email protected] ---
Created attachment 113077
--> https://bugs.freedesktop.org/attachment.cgi?id=113077&action=edit
ETS2 with GTT-usage:100
My 3Com U.S Robotics modem 56k works more faster than the GART memory.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84648] Lag/Pause When VRAM->GTT or GTT->VRAM transfer occur
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=84648
--- Comment #7 from smoki <[email protected]> --- (In reply to commiethebeastie from comment #6)
Quoted 4 lines
Created attachment 113077 [details]
ETS2 with GTT-usage:100My 3Com
U.SRobotics modem 56k works more faster than the GART memory.
Yeah i can confirm that with ETS2, but also with any earlier 18 Wheels of
Steel games (http://en.wikipedia.org/wiki/18_Wheels_of_Steel) played in wine (i have all of them :)) have same very worse stutter... try how it goes with reverting this mesa commit, it fixed that worse stutter in those games for me on Kabini APU... well and other issues:
https://bugs.freedesktop.org/show_bug.cgi?id=88658#c6
And yeah please use at least kernel 3.19 or later if you test that
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84648] Lag/Pause When VRAM->GTT or GTT->VRAM transfer occur
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=84648
--- Comment #8 from Michel Dänzer <[email protected]> --- Does
http://cgit.freedesktop.org/mesa/mesa/commit/?id=a338dc01866ce50bf7555ee8dc08491c7f63b585
help?
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84648] Lag/Pause When VRAM->GTT or GTT->VRAM transfer occur
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=84648
--- Comment #9 from [email protected] ---
Quoted 1 line
Does http://cgit.freedesktop.org/mesa/mesa/commit/?id=a338dc01866ce50bf7555ee8dc08491c7f63b585 help?
Possible yes. :)
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84648] Lag/Pause When VRAM->GTT or GTT->VRAM transfer occur
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=84648
--- Comment #10 from jochen <[email protected]> ---
https://bugs.freedesktop.org/show_bug.cgi?id=89203 is probably a duplicate of this bug.
I tested it with linux 3.19 and different (git~51b43c5, 10.4.6, 10.3.5) mesa versions, but they don't seem to make a difference. So, no, a338dc01866ce50bf7555ee8dc08491c7f63b585 does not help. Even with mesa 10.3.5, where some people reported this was the the last working version for them, the hangs occured. So it's probably related to some kernel issue, too.
The hangs only seem to occur ( at least surface ) on Minecraft 1.8+. Probably because that was a bigger update and they changed the rendering code significantly. The hangs occur every few seconds and freeze the screen for <5s. Unfortunately I get a similiar issue with FTB/modded Minecraft 1.7. But this time the game itself runs fine, but whenever I switch the virtual workspace in my window manager (awesomewm), it takes up to several *minutes* until the system reacts again and the screen is updated. This only happens if the game was running for some time -> probably more vram/gtt usage. Even the cursor freezes. Big annoyance.
The testing was done on a HD5850, so r600g is affected, too.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84648] Lag/Pause When VRAM->GTT or GTT->VRAM transfer occur
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=84648
--- Comment #11 from Alex Deucher <[email protected]> --- (In reply to J0k3r from comment #10)
Quoted 8 lines
https://bugs.freedesktop.org/show_bug.cgi?id=89203 is probably a duplicate of this bug.
I tested it with linux 3.19 and different (git~51b43c5, 10.4.6, 10.3.5) mesa versions, but they don't seem to make a difference. So, no,
a338dc01866ce50bf7555ee8dc08491c7f63b585does not help. Even with mesa 10.3.5, where some people reported this was the the last working version for them, the hangs occured. So it's probably related to some kernel issue, too.
You might be seeing:
https://bugzilla.kernel.org/show_bug.cgi?id=90741
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84648] Lag/Pause When VRAM->GTT or GTT->VRAM transfer occur
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=84648
--- Comment #12 from J0k3r <[email protected]> --- Created attachment 114311
--> https://bugs.freedesktop.org/attachment.cgi?id=114311&action=edit
minecraft-1.7.10 mesa-1.4.6
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84648] Lag/Pause When VRAM->GTT or GTT->VRAM transfer occur
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=84648
--- Comment #13 from J0k3r <[email protected]> --- Created attachment 114312
--> https://bugs.freedesktop.org/attachment.cgi?id=114312&action=edit
minecraft-1.8.3 mesa-1.4.6
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84648] Lag/Pause When VRAM->GTT or GTT->VRAM transfer occur
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=84648
--- Comment #14 from J0k3r <[email protected]> ---
Alex, as I understand it these kernel changes are just going to make it into 4.1. That's a long time in the future. Will the fixes be backported to 3.19/4.0?
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84648] Lag/Pause When VRAM->GTT or GTT->VRAM transfer occur
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=84648
--- Comment #15 from Alex Deucher <[email protected]> --- (In reply to J0k3r from comment #14)
Quoted 3 lines
Alex, as I understand it these kernel changes are just going to make it into 4.1. That's a long time in the future. Will the fixes be backported to 3.19/4.0?
They were applied to 4.0 and they will also show up in the stable kernels.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 84648] Lag/Pause When VRAM->GTT or GTT->VRAM transfer occur
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=84648
Mathieu Belanger <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED--- Comment #16 from Mathieu Belanger <[email protected]> --- Tested kernel 4.0 with latest mesa git about 6 days ago.
Bug seam to be fixed :)
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel