You are not logged in.

#1 2010-11-09 14:34:25

Lexion
Member
Registered: 2008-03-23
Posts: 510

performance better as root for everthing [SOLVED]

I've got a Dell Mini 10v. When I run just about anything as user it is really slow. Then if I open the same application as root without changing anything else, it suddenly speeds up.

For example, youtube as user is unwatchable, but as root is fine. I have noticed this behavior in flash, urban terror, sauerbraten, warsow, and glxgears.

Also, youtube has no sound as user, but has perfect sound as root, although I don't really want to run chromium/firefox as root.

uname:

Linux Caewyn 2.6.25-ARCH #1 SMP PREEMT Sat Oct 30 19:57:05 UTC 2010 i686 Intel(R) Atom(TM) CPU N270 @ 1.60GHz GenuineIntel GNU/Linux

lspci | grep VGA

00:02.0 VGA compatible controller: Intel Corporation Mobile 945GME Express Integrated Graphics Controller (rev 03)

lspci | grep Audio

00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)

glxgears -fullscreen: ~45 fps (performance was so low that I couldn't see the gear turning animation)
sudo glxgears -fullscreen: ~45 fps (performance was fine)

xorg.conf: http://onebluecat.net/files/xorg.conf
xinitrc: http://onebluecat.net/files/xinitrc
glxinfo: http://onebluecat.net/files/glxinfo.txt
glxinfo (as root): http://onebluecat.net/files/glxinfo_root.txt

EDIT: fixed link

Last edited by Lexion (2010-11-11 15:09:14)


urxvtc / wmii / zsh / configs / onebluecat.net
Arch will not hold your hand

Offline

#2 2010-11-09 14:42:54

ise
Developer
From: Karlsruhe / Germany
Registered: 2005-10-06
Posts: 404
Website

Re: performance better as root for everthing [SOLVED]

In which groups is your normal user? Is it in audio and video and in other groups which are recommended?

See this section: https://wiki.archlinux.org/index.php/Be … tup_groups

Offline

#3 2010-11-09 16:01:12

Lexion
Member
Registered: 2008-03-23
Posts: 510

Re: performance better as root for everthing [SOLVED]

I am in and only in wheel, games, network, video, and audio.


urxvtc / wmii / zsh / configs / onebluecat.net
Arch will not hold your hand

Offline

#4 2010-11-09 18:11:55

edward.taylor89
Member
From: UK
Registered: 2010-10-21
Posts: 34

Re: performance better as root for everthing [SOLVED]

As a normal user, you should be in these groups.

https://wiki.archlinux.org/index.php/Gr … ful_groups


'The perfect blossom is a rare thing. You could spend your life looking for one, and it would not be a wasted life.'

Offline

#5 2010-11-09 23:01:51

Stebalien
Member
Registered: 2010-04-27
Posts: 1,237
Website

Re: performance better as root for everthing [SOLVED]

The only groups that could possibly have anything to do with speed would be video and audio.
Try creating a new user and, if that works, start deleting config files (starting with .asoundrc).
Also, what does cpufreq-info say (if you even have cpufreq).


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C
Do not email: honeypot@stebalien.com

Offline

#6 2010-11-09 23:39:46

Lexion
Member
Registered: 2008-03-23
Posts: 510

Re: performance better as root for everthing [SOLVED]

I tried creating a new user:

groups test

wheel video audio users

and it was just as good as root. I'll try deleting some config files later, but I have to be somewhere now.


urxvtc / wmii / zsh / configs / onebluecat.net
Arch will not hold your hand

Offline

#7 2010-11-11 15:08:50

Lexion
Member
Registered: 2008-03-23
Posts: 510

Re: performance better as root for everthing [SOLVED]

While deleting config files I kinda screwed up my system, so I had to reinstall. But then when I tried glxgears again as user, it was still slow. The only config files were Xauthority, Xdefaults, xinitrc, zshrc, bashrc, and the .config directory. I tried the following:

mv .config .config.bak

Which had no effect. So then I tried the following:

sudo adduser accel
...
Login name: accel
UID: [next available]
Initial group: users
Additional groups: wheel
Home directory: /home/.accel
Shell: /bin/bash

su -l accel -c "glxgears"

And it worked fine. The only thing I could think of was the environment variables. Which worked:

env -i DISPLAY=$DISPLAY glxgears

And now I just prefix chrome, any games, and stuff with "env -i DISPLAY=$DISPLAY" and everything works great.

Thanks for all your help.


urxvtc / wmii / zsh / configs / onebluecat.net
Arch will not hold your hand

Offline

Board footer

Powered by FluxBB