Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
High single core CPU usage with 3d Applications (fglrx)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
griever
n00b
n00b


Joined: 24 Sep 2002
Posts: 57

PostPosted: Sat Jun 28, 2014 12:52 am    Post subject: High single core CPU usage with 3d Applications (fglrx) Reply with quote

Hi all,

I'm at wit's end trying to figure out why any application (kwin, steam, glxgears, amdccc) that uses 3d pegs a single core at 100%. This started occurring when I try to run any version of fglrx higher than ati-drivers-13.9.

I'm running gentoo-sources-3.15.1 and ati-drivers-14.4_p1 on an MSI GX60 laptop.
The cpu is an AMD A10-4600M and the discrete graphics card is an AMD Radeon HD 7970M

I've tried turning VSYNC off and on system-wide. That didn't help (although I did note its effects on cpu usage on other cores).
I started looking into the concept of spinlocks or busy waiting, but there were no obvious ways for me to experiment with it. It's a little beyond what I know.

But what I DID notice was that if I run glxgears as root, the cpu doesn't max out. It only occurs in my regular user account. Unfortunately I don't know how to turn that tidbit of a finding into anything meaningful. My regular user is already part of the video group.

Does anyone have any ideas?

Thanks,
G
Back to top
View user's profile Send private message
StarAUrryon
n00b
n00b


Joined: 15 Aug 2014
Posts: 3

PostPosted: Fri Aug 15, 2014 12:58 pm    Post subject: Same problem Here Reply with quote

Hi,
I have a MSI GX60 Hitman Edition 5750m + 7970m
The problem only happened when I use 7970m in my case. I have reported the bug to Amd but until now I have no answer.
I will try to investigate the problem. First I'm On Ubuntu 14.04 Gnome and it seems all Linux Distributions are concerned about it.
If on root there are no problems I will try to find out what happend.

StarAurryon
Back to top
View user's profile Send private message
StarAUrryon
n00b
n00b


Joined: 15 Aug 2014
Posts: 3

PostPosted: Fri Aug 15, 2014 1:04 pm    Post subject: No problems As Root Reply with quote

Ok you're right there is no issue at root. A little bit strange.
StarAurryon
Back to top
View user's profile Send private message
szatox
Veteran
Veteran


Joined: 27 Aug 2013
Posts: 1777

PostPosted: Sat Aug 16, 2014 9:58 am    Post subject: Reply with quote

100% CPU usage on a single core means it's software rendering.
Since it works well when running as root, it seems to be a problem with permissions. A bit weird in days of consolekit, policykit, etckit, but then, shit happens.

How to solve it? Add your users to video group. Users' groups are read upon login, so you might need to relog after that change.
Back to top
View user's profile Send private message
StarAUrryon
n00b
n00b


Joined: 15 Aug 2014
Posts: 3

PostPosted: Sat Aug 23, 2014 3:45 pm    Post subject: Reply with quote

I don't think it is software rendering as glxgears performances are the same as root and and as user. While running as a simple user two cores are used one has the same amount of charge as root and the second one has full load.
StarAurryon
Back to top
View user's profile Send private message
griever
n00b
n00b


Joined: 24 Sep 2002
Posts: 57

PostPosted: Thu Aug 28, 2014 11:16 am    Post subject: Reply with quote

szatox wrote:
How to solve it? Add your users to video group. Users' groups are read upon login, so you might need to relog after that change.


Thank you for the suggestion. Unfortunately my user is already part of the video group, so that wasn't the issue. Also as user:

Code:
$ glxinfo | grep direct

direct rendering: Yes

Code:
$ getfacl /dev/ati/card1

# file: dev/ati/card1
# owner: root
# group: root
user::rw-
group::rw-
other::rw-

As I understand this output, glxgears isn't software rendering and ACL shouldn't be a problem either.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum