Bug 97593 - [amdgpu SI] low performace, low (about 1/4) VRAM usage
Summary: [amdgpu SI] low performace, low (about 1/4) VRAM usage
Status: RESOLVED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/AMDgpu (show other bugs)
Version: DRI git
Hardware: Other All
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-04 19:16 UTC by Arek Ruśniak
Modified: 2016-09-13 22:51 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
screenshot from unigine-heaven (2.68 MB, image/png)
2016-09-04 19:16 UTC, Arek Ruśniak
no flags Details
kernel log for heaven (154.27 KB, text/plain)
2016-09-04 19:19 UTC, Arek Ruśniak
no flags Details
xorg log for heaven (67.58 KB, text/plain)
2016-09-04 19:37 UTC, Arek Ruśniak
no flags Details
dmesg log (82.77 KB, text/x-log)
2016-09-05 21:07 UTC, Arek Ruśniak
no flags Details
xorg log (192.10 KB, text/x-log)
2016-09-05 21:09 UTC, Arek Ruśniak
no flags Details
Update active VRAM size when turning DMA on/off (752 bytes, patch)
2016-09-06 08:03 UTC, Michel Dänzer
no flags Details | Splinter Review

Description Arek Ruśniak 2016-09-04 19:16:10 UTC
Created attachment 126201 [details]
screenshot from unigine-heaven

Hi, I've tried amdgpu driver for SI and GL apps run much slower than for radeon.
Unigine-Heaven drops from 20 fps to 8 fps
VRAM usage ~ 200MB
requested VRAM ~500MB
GTT usage ~ 500MB 
Look at the screenshot for more.

drm-next-4.9-wip: 48fad3aff638c7bc16656e31047f689aa44020a1 
xorg-git
mesa-git:98f734e
llvm-svn:280612
libdrm:4462303 + 2 patches for SI support from amd-gfx's list

I used unigine-heaven benchmark for first shot but more apps in affected:
Alien Isolation
Shadow of Mordor
Bioshock Infinite
Metro 2033 Redux
XCOM
The Witcher 2
xonotic (for quality "low" performance is normal) 
In fact only glxgears, lightsmark, gputest(all),openarena are not affected :) 

In any case VRAM-usage isn't raised over a 250MB but dmesg & xorg logs are different for each games, I will try update the logs later.
I've tested it with dpm=1, but dpm=0 makes nothing.
Comment 1 Arek Ruśniak 2016-09-04 19:19:13 UTC
Created attachment 126202 [details]
kernel log for heaven
Comment 2 Arek Ruśniak 2016-09-04 19:37:06 UTC
Created attachment 126203 [details]
xorg log for heaven

this is next boot then dmesg, heaven starts at 78 sec.
Comment 3 Arek Ruśniak 2016-09-05 21:07:23 UTC
Created attachment 126231 [details]
dmesg log

dmesg for:

shadow of mordor (empty)
metro 2033 redux
bioshock infinite
alien: isolation
deadfall adventures
tomb raider
xcom (empty)

xonotic

i've played a few second each game
Comment 4 Arek Ruśniak 2016-09-05 21:09:08 UTC
Created attachment 126232 [details]
xorg log

looks good to me
Comment 5 Michel Dänzer 2016-09-06 08:03:07 UTC
Created attachment 126237 [details] [review]
Update active VRAM size when turning DMA on/off

Does this patch fix the problem?
Comment 6 Konstantin A. Lepikhov 2016-09-06 18:45:31 UTC
(In reply to Michel Dänzer from comment #5)
> Created attachment 126237 [details] [review] [review]
> Update active VRAM size when turning DMA on/off
> 
> Does this patch fix the problem?

It helped in my case - FPS in Heaven increased from 1 to 15 and VRAM usage was optimal.
Comment 7 Arek Ruśniak 2016-09-06 20:11:38 UTC
Michael yes, it fix the problem. VM-errors are still making some noise but i think it's another problem.
thx
Comment 8 Arek Ruśniak 2016-09-06 20:52:23 UTC
*Michel
it's embarrassing


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.