* [Bug 88227] Radeonsi: High GTT usage in Prison Architect large map
@ 2015-01-09 9:16 bugzilla-daemon
2015-01-09 9:16 ` bugzilla-daemon
` (12 more replies)
0 siblings, 13 replies; 14+ messages in thread
From: bugzilla-daemon @ 2015-01-09 9:16 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 1778 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=88227
Bug ID: 88227
Summary: Radeonsi: High GTT usage in Prison Architect large map
Product: DRI
Version: DRI git
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: DRM/Radeon
Assignee: dri-devel@lists.freedesktop.org
Reporter: lothmordor@gmail.com
Created attachment 111992
--> https://bugs.freedesktop.org/attachment.cgi?id=111992&action=edit
dmesg
Poor performace in Prison Architect (version alpha-28) when trying to play on
the large map setting. Small map is smooth, Gallium hud showing 60fps. A new
game with a large map (empty, nothing constructed) has about 0fps and high GTT
usage while zoomed out. Zooming in fairly close on the large map shows a
decrease in GTT use and fps increases.
Kernel is linux-3.19.0-rc3
Running git versions of the following packages (updated Jan 08):
libdrm 566c3ce877a4be72697e15cdfc421ce965f7c37d
llvm c41acffe2297585ad56aa772de75e82c132070bb
xf86-video-ati 04da199231bb3f11cf17f94574a8df05855a7b82
mesa 3d8188d4f898afcf4f181de29e12c5b218bbd393
dmesg shows two errors:
[ 5665.586842] [drm:radeon_cs_ioctl [radeon]] *ERROR* Failed to parse
relocation -12!
[ 5750.747498] [drm:radeon_gem_va_ioctl [radeon]] *ERROR* Couldn't update BO_VA
(-512)
R600_DEBUG=cs shows:
radeon: The kernel rejected CS, see dmesg for more information.
R600_DEBUG=nodma seemed to have no effect.
Logs and gallium hud screenshots attached. Just picked up this game, so not
sure if there is a regression involved. Will try some older kernels and mesa.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 3115 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug 88227] Radeonsi: High GTT usage in Prison Architect large map
2015-01-09 9:16 [Bug 88227] Radeonsi: High GTT usage in Prison Architect large map bugzilla-daemon
@ 2015-01-09 9:16 ` bugzilla-daemon
2015-01-09 9:17 ` bugzilla-daemon
` (11 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: bugzilla-daemon @ 2015-01-09 9:16 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 295 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=88227
--- Comment #1 from James Harvey <lothmordor@gmail.com> ---
Created attachment 111993
--> https://bugs.freedesktop.org/attachment.cgi?id=111993&action=edit
xorg.log
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1180 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug 88227] Radeonsi: High GTT usage in Prison Architect large map
2015-01-09 9:16 [Bug 88227] Radeonsi: High GTT usage in Prison Architect large map bugzilla-daemon
2015-01-09 9:16 ` bugzilla-daemon
@ 2015-01-09 9:17 ` bugzilla-daemon
2015-01-09 9:18 ` bugzilla-daemon
` (10 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: bugzilla-daemon @ 2015-01-09 9:17 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 314 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=88227
--- Comment #2 from James Harvey <lothmordor@gmail.com> ---
Created attachment 111994
--> https://bugs.freedesktop.org/attachment.cgi?id=111994&action=edit
Game log with R600_DEBUG=cs
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1237 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug 88227] Radeonsi: High GTT usage in Prison Architect large map
2015-01-09 9:16 [Bug 88227] Radeonsi: High GTT usage in Prison Architect large map bugzilla-daemon
2015-01-09 9:16 ` bugzilla-daemon
2015-01-09 9:17 ` bugzilla-daemon
@ 2015-01-09 9:18 ` bugzilla-daemon
2015-01-09 9:18 ` bugzilla-daemon
` (9 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: bugzilla-daemon @ 2015-01-09 9:18 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 311 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=88227
--- Comment #3 from James Harvey <lothmordor@gmail.com> ---
Created attachment 111995
--> https://bugs.freedesktop.org/attachment.cgi?id=111995&action=edit
Gallium hud on small map
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1228 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug 88227] Radeonsi: High GTT usage in Prison Architect large map
2015-01-09 9:16 [Bug 88227] Radeonsi: High GTT usage in Prison Architect large map bugzilla-daemon
` (2 preceding siblings ...)
2015-01-09 9:18 ` bugzilla-daemon
@ 2015-01-09 9:18 ` bugzilla-daemon
2015-01-09 9:20 ` bugzilla-daemon
` (8 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: bugzilla-daemon @ 2015-01-09 9:18 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 311 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=88227
--- Comment #4 from James Harvey <lothmordor@gmail.com> ---
Created attachment 111996
--> https://bugs.freedesktop.org/attachment.cgi?id=111996&action=edit
Gallium hud on large map
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1228 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug 88227] Radeonsi: High GTT usage in Prison Architect large map
2015-01-09 9:16 [Bug 88227] Radeonsi: High GTT usage in Prison Architect large map bugzilla-daemon
` (3 preceding siblings ...)
2015-01-09 9:18 ` bugzilla-daemon
@ 2015-01-09 9:20 ` bugzilla-daemon
2015-01-09 9:24 ` bugzilla-daemon
` (7 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: bugzilla-daemon @ 2015-01-09 9:20 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 427 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=88227
Michel Dänzer <michel@daenzer.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #111996|text/plain |image/png
mime type| |
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1106 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug 88227] Radeonsi: High GTT usage in Prison Architect large map
2015-01-09 9:16 [Bug 88227] Radeonsi: High GTT usage in Prison Architect large map bugzilla-daemon
` (4 preceding siblings ...)
2015-01-09 9:20 ` bugzilla-daemon
@ 2015-01-09 9:24 ` bugzilla-daemon
2015-01-09 10:13 ` bugzilla-daemon
` (6 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: bugzilla-daemon @ 2015-01-09 9:24 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 255 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=88227
--- Comment #5 from Michel Dänzer <michel@daenzer.net> ---
Does radeon.gartsize=2048 on the kernel command line help?
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1051 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug 88227] Radeonsi: High GTT usage in Prison Architect large map
2015-01-09 9:16 [Bug 88227] Radeonsi: High GTT usage in Prison Architect large map bugzilla-daemon
` (5 preceding siblings ...)
2015-01-09 9:24 ` bugzilla-daemon
@ 2015-01-09 10:13 ` bugzilla-daemon
2015-01-10 12:00 ` bugzilla-daemon
` (5 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: bugzilla-daemon @ 2015-01-09 10:13 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 313 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=88227
--- Comment #6 from James Harvey <lothmordor@gmail.com> ---
Unfortunately, it did not help.
Seems like the fps drops occurs whenever the requested GTT gets above
about 515-520mb or so.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1089 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug 88227] Radeonsi: High GTT usage in Prison Architect large map
2015-01-09 9:16 [Bug 88227] Radeonsi: High GTT usage in Prison Architect large map bugzilla-daemon
` (6 preceding siblings ...)
2015-01-09 10:13 ` bugzilla-daemon
@ 2015-01-10 12:00 ` bugzilla-daemon
2015-01-11 7:08 ` bugzilla-daemon
` (4 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: bugzilla-daemon @ 2015-01-10 12:00 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 678 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=88227
--- Comment #7 from James Harvey <lothmordor@gmail.com> ---
Further testing shows large fps drops from 60 to ~0 whenever used GTT exceeds
550mb. Tested kernels going back to 3.10.63 with no improvement.
Installed kernel 3.19.0-rc3 and llvm-3.4.2 to test mesa releases.
Confirmed this is a regression in mesa. Mesa-10.0.4, 10.3.5 and 10.3.6 manage
at least 30fps or higher with GTT usage over 550mb.
Tested Mesa 10.4.1 and Mesa git master, both are effected by this issue. Looks
like it was introduced in the 10.4 branch. Attempting to bisect.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1454 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug 88227] Radeonsi: High GTT usage in Prison Architect large map
2015-01-09 9:16 [Bug 88227] Radeonsi: High GTT usage in Prison Architect large map bugzilla-daemon
` (7 preceding siblings ...)
2015-01-10 12:00 ` bugzilla-daemon
@ 2015-01-11 7:08 ` bugzilla-daemon
2015-01-11 14:40 ` bugzilla-daemon
` (3 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: bugzilla-daemon @ 2015-01-11 7:08 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 833 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=88227
--- Comment #8 from James Harvey <lothmordor@gmail.com> ---
Created attachment 112085
--> https://bugs.freedesktop.org/attachment.cgi?id=112085&action=edit
large map prior to commit 150ac07b
Bisect complete:
150ac07b855b5c5f879bf6ce9ca421ccd1a6c938 is the first bad commit
commit 150ac07b855b5c5f879bf6ce9ca421ccd1a6c938
Author: Michel Dänzer <michel.daenzer@amd.com>
Date: Wed Jun 25 18:36:43 2014 +0900
r600g/radeonsi: Prefer VRAM for CPU -> GPU streaming buffers
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Prior to this commit, there is a slight fps drop (60->24) while moving around
the map for the first time, but thereafter it stays at roughly 60fps.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1908 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug 88227] Radeonsi: High GTT usage in Prison Architect large map
2015-01-09 9:16 [Bug 88227] Radeonsi: High GTT usage in Prison Architect large map bugzilla-daemon
` (8 preceding siblings ...)
2015-01-11 7:08 ` bugzilla-daemon
@ 2015-01-11 14:40 ` bugzilla-daemon
2015-01-11 15:00 ` bugzilla-daemon
` (2 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: bugzilla-daemon @ 2015-01-11 14:40 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 822 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=88227
--- Comment #9 from James Harvey <lothmordor@gmail.com> ---
Reverting the above commit against mesa git master did not solve the problem.
Performed another bisection and got result:
commit b419c651fbbf3660d7b53623dfa2e5a4c9bd3b98
Author: Marek Olšák <marek.olsak@amd.com>
Date: Wed Aug 20 23:53:40 2014 +0200
gallium/pb_bufmgr_cache: limit the size of cache
This should make a machine which is running piglit more responsive at
times.
e.g. streaming-texture-leak can easily eat 600 MB because of how fast it
creates new textures.
Reverting this commit (to remove the cache limit) returned the game to full
performance. Tested against git-ff1948a.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1673 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug 88227] Radeonsi: High GTT usage in Prison Architect large map
2015-01-09 9:16 [Bug 88227] Radeonsi: High GTT usage in Prison Architect large map bugzilla-daemon
` (9 preceding siblings ...)
2015-01-11 14:40 ` bugzilla-daemon
@ 2015-01-11 15:00 ` bugzilla-daemon
2015-01-12 3:31 ` bugzilla-daemon
2015-01-20 3:35 ` bugzilla-daemon
12 siblings, 0 replies; 14+ messages in thread
From: bugzilla-daemon @ 2015-01-11 15:00 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 402 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=88227
--- Comment #10 from Marek Olšák <maraeo@gmail.com> ---
James, can you increase the size of cache manually and see what works better?
There is only one formula in radeon_drm_winsys.c:676, so it should be trivial.
Also please how much VRAM and GTT do you have?
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1196 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug 88227] Radeonsi: High GTT usage in Prison Architect large map
2015-01-09 9:16 [Bug 88227] Radeonsi: High GTT usage in Prison Architect large map bugzilla-daemon
` (10 preceding siblings ...)
2015-01-11 15:00 ` bugzilla-daemon
@ 2015-01-12 3:31 ` bugzilla-daemon
2015-01-20 3:35 ` bugzilla-daemon
12 siblings, 0 replies; 14+ messages in thread
From: bugzilla-daemon @ 2015-01-12 3:31 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 1038 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=88227
--- Comment #11 from James Harvey <lothmordor@gmail.com> ---
Hello Marek,
My memory info:
[ 1.879493] [drm] radeon: 2048M of VRAM memory ready
[ 1.879494] [drm] radeon: 2048M of GTT memory ready.
I also have 8gb of system memory. I patched radeon_drm_winsys.c as per your
suggestion. This seemed to work well:
- (ws->info.vram_size + ws->info.gart_size) / 8);
+ (ws->info.vram_size + ws->info.gart_size) / 2);
I tried changing the divisor to 4, but that didn't help much.
Divisor at 3 was better but still had some fps drops to zero and trouble
getting above about 40fps.
Divisor at 2 was much better, fps drops only when waiting for data to load in
memory. (such as suddenly zooming out or saving/loading game).
While testing, the maximum GTT usage I saw was 1.82gb, with typical usage
around 1-1.5gb depending on how closely the map was zoomed in. Vram usage is
pretty flat, usually around 450mb.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1827 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug 88227] Radeonsi: High GTT usage in Prison Architect large map
2015-01-09 9:16 [Bug 88227] Radeonsi: High GTT usage in Prison Architect large map bugzilla-daemon
` (11 preceding siblings ...)
2015-01-12 3:31 ` bugzilla-daemon
@ 2015-01-20 3:35 ` bugzilla-daemon
12 siblings, 0 replies; 14+ messages in thread
From: bugzilla-daemon @ 2015-01-20 3:35 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 814 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=88227
Michel Dänzer <michel@daenzer.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #12 from Michel Dänzer <michel@daenzer.net> ---
Module: Mesa
Branch: master
Commit: ccc5b60b06269a5d847b7fe9ebe08dc61b4d2030
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=ccc5b60b06269a5d847b7fe9ebe08dc61b4d2030
Author: Marek Olšák <marek.olsak@amd.com>
Date: Mon Jan 12 14:35:24 2015 +0100
winsys/radeon: increase the size of buffer cache
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 2495 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2015-01-20 3:35 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-09 9:16 [Bug 88227] Radeonsi: High GTT usage in Prison Architect large map bugzilla-daemon
2015-01-09 9:16 ` bugzilla-daemon
2015-01-09 9:17 ` bugzilla-daemon
2015-01-09 9:18 ` bugzilla-daemon
2015-01-09 9:18 ` bugzilla-daemon
2015-01-09 9:20 ` bugzilla-daemon
2015-01-09 9:24 ` bugzilla-daemon
2015-01-09 10:13 ` bugzilla-daemon
2015-01-10 12:00 ` bugzilla-daemon
2015-01-11 7:08 ` bugzilla-daemon
2015-01-11 14:40 ` bugzilla-daemon
2015-01-11 15:00 ` bugzilla-daemon
2015-01-12 3:31 ` bugzilla-daemon
2015-01-20 3:35 ` bugzilla-daemon
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.