Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gnome slow and choppy
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Chocrates
n00b
n00b


Joined: 28 Apr 2007
Posts: 27

PostPosted: Wed Aug 15, 2012 3:09 am    Post subject: Gnome slow and choppy Reply with quote

Installing gentoo for the first time.
My gnome shell seems to be extremely choppy.
Firefox takes seconds to switch tabs and VLC drops frames like crazy. Totem also likes to slow down the video playback so that it is out of sync with the sound.

Any ideas on how i can track what might be causing this?
Back to top
View user's profile Send private message
epsilon72
Guru
Guru


Joined: 20 Sep 2007
Posts: 530

PostPosted: Wed Aug 15, 2012 6:26 am    Post subject: Reply with quote

What video card and driver are you using?
Back to top
View user's profile Send private message
Chocrates
n00b
n00b


Joined: 28 Apr 2007
Posts: 27

PostPosted: Wed Aug 15, 2012 10:38 pm    Post subject: Reply with quote

I have an ati of some sort using the open source drivers (although i do not think i actually installed any....)

Code:
~ # lspci | grep AMD
...
01:05.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI RS780M/RS780MN [Mobility Radeon HD 3200 Graphics]
02:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI RV710 [Mobility Radeon HD 4500/5100 Series]


Code:
~ # glxinfo | head -n 20
name of display: :0.0
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:
    GLX_ARB_multisample, GLX_EXT_visual_info, GLX_EXT_visual_rating,
    GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, GLX_OML_swap_method,
    GLX_SGI_make_current_read, GLX_SGIS_multisample, GLX_SGIX_fbconfig,
    GLX_SGIX_pbuffer, GLX_MESA_copy_sub_buffer, GLX_INTEL_swap_event
client glx vendor string: Mesa Project and SGI
client glx version string: 1.4
client glx extensions:
    GLX_ARB_create_context, GLX_ARB_create_context_profile,
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_framebuffer_sRGB,
    GLX_EXT_create_context_es2_profile, GLX_MESA_copy_sub_buffer,
    GLX_MESA_multithread_makecurrent, GLX_MESA_swap_control,
    GLX_OML_swap_method, GLX_OML_sync_control, GLX_SGI_make_current_read,
    GLX_SGI_swap_control, GLX_SGI_video_sync, GLX_SGIS_multisample,
Back to top
View user's profile Send private message
d2_racing
Moderator
Moderator


Joined: 25 Apr 2005
Posts: 13034
Location: Ste-Foy,Canada

PostPosted: Thu Aug 16, 2012 4:24 am    Post subject: Reply with quote

Hi, can you post this :

Code:

# cat /etc/make.conf
# lsmod -kvm

_________________
Sysadmin of GentooQuébec.org
Wiki
Signature
IRC on Freenode : #gentoo-quebec
Back to top
View user's profile Send private message
Chocrates
n00b
n00b


Joined: 28 Apr 2007
Posts: 27

PostPosted: Thu Aug 16, 2012 12:10 pm    Post subject: Reply with quote

d2_racing wrote:
Hi, can you post this :

Code:

# cat /etc/make.conf
# lsmod -kvm


Here it is:
Code:

~ # cat /etc/make.conf
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-O2 -march=i686 -pipe"
CXXFLAGS="${CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="i686-pc-linux-gnu"
INPUT_DEVICES="evdev synaptics"
VIDEO_CARDS="radeon"

Code:

~ # lsmod -kvm
Usage: lsmod

Code:

~ # lsmod
Module                  Size  Used by
test_nx                 1303  0
scsi_wait_scan           483  0
hid_logitech_dj         8821  0
kcopy                   3636  0
Back to top
View user's profile Send private message
d2_racing
Moderator
Moderator


Joined: 25 Apr 2005
Posts: 13034
Location: Ste-Foy,Canada

PostPosted: Thu Aug 16, 2012 12:32 pm    Post subject: Reply with quote

Sorry, I mean :

Code:

# lspci -kvm

_________________
Sysadmin of GentooQuébec.org
Wiki
Signature
IRC on Freenode : #gentoo-quebec
Back to top
View user's profile Send private message
Chocrates
n00b
n00b


Joined: 28 Apr 2007
Posts: 27

PostPosted: Thu Aug 16, 2012 12:45 pm    Post subject: Reply with quote

d2_racing wrote:
Sorry, I mean :

Code:

# lspci -kvm


That makes more sense!

Code:
~ # lspci -kvm
Device:   00:00.0
Class:   Host bridge
Vendor:   Advanced Micro Devices [AMD]
Device:   RS780 Host Bridge
SVendor:   Advanced Micro Devices [AMD]
SDevice:   RS780 Host Bridge

Device:   00:01.0
Class:   PCI bridge
Vendor:   Advanced Micro Devices [AMD]
Device:   RS780/RS880 PCI to PCI bridge (int gfx)

Device:   00:02.0
Class:   PCI bridge
Vendor:   Advanced Micro Devices [AMD]
Device:   RS780 PCI to PCI bridge (ext gfx port 0)
Driver:   pcieport

Device:   00:05.0
Class:   PCI bridge
Vendor:   Advanced Micro Devices [AMD]
Device:   RS780/RS880 PCI to PCI bridge (PCIE port 1)
Driver:   pcieport

Device:   00:06.0
Class:   PCI bridge
Vendor:   Advanced Micro Devices [AMD]
Device:   RS780 PCI to PCI bridge (PCIE port 2)
Driver:   pcieport

Device:   00:11.0
Class:   SATA controller
Vendor:   Advanced Micro Devices [AMD] nee ATI
Device:   SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode]
SVendor:   ASUSTeK Computer Inc.
SDevice:   Device 1117
ProgIf:   01
Driver:   ahci

Device:   00:12.0
Class:   USB controller
Vendor:   Advanced Micro Devices [AMD] nee ATI
Device:   SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
SVendor:   ASUSTeK Computer Inc.
SDevice:   Device 1d57
ProgIf:   10
Driver:   ohci_hcd

Device:   00:12.1
Class:   USB controller
Vendor:   Advanced Micro Devices [AMD] nee ATI
Device:   SB7x0 USB OHCI1 Controller
SVendor:   ASUSTeK Computer Inc.
SDevice:   Device 1d57
ProgIf:   10
Driver:   ohci_hcd

Device:   00:12.2
Class:   USB controller
Vendor:   Advanced Micro Devices [AMD] nee ATI
Device:   SB7x0/SB8x0/SB9x0 USB EHCI Controller
SVendor:   ASUSTeK Computer Inc.
SDevice:   Device 1d57
ProgIf:   20
Driver:   ehci_hcd

Device:   00:13.0
Class:   USB controller
Vendor:   Advanced Micro Devices [AMD] nee ATI
Device:   SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
SVendor:   ASUSTeK Computer Inc.
SDevice:   Device 1d57
ProgIf:   10
Driver:   ohci_hcd

Device:   00:13.1
Class:   USB controller
Vendor:   Advanced Micro Devices [AMD] nee ATI
Device:   SB7x0 USB OHCI1 Controller
SVendor:   ASUSTeK Computer Inc.
SDevice:   Device 1d57
ProgIf:   10
Driver:   ohci_hcd

Device:   00:13.2
Class:   USB controller
Vendor:   Advanced Micro Devices [AMD] nee ATI
Device:   SB7x0/SB8x0/SB9x0 USB EHCI Controller
SVendor:   ASUSTeK Computer Inc.
SDevice:   Device 1d57
ProgIf:   20
Driver:   ehci_hcd

Device:   00:14.0
Class:   SMBus
Vendor:   Advanced Micro Devices [AMD] nee ATI
Device:   SBx00 SMBus Controller
SVendor:   ASUSTeK Computer Inc.
SDevice:   Device 1d57
Rev:   3a

Device:   00:14.2
Class:   Audio device
Vendor:   Advanced Micro Devices [AMD] nee ATI
Device:   SBx00 Azalia (Intel HDA)
SVendor:   ASUSTeK Computer Inc.
SDevice:   Device 1523
Driver:   snd_hda_intel

Device:   00:14.3
Class:   ISA bridge
Vendor:   Advanced Micro Devices [AMD] nee ATI
Device:   SB7x0/SB8x0/SB9x0 LPC host controller
SVendor:   ASUSTeK Computer Inc.
SDevice:   Device 1d57

Device:   00:14.4
Class:   PCI bridge
Vendor:   Advanced Micro Devices [AMD] nee ATI
Device:   SBx00 PCI to PCI Bridge
ProgIf:   01

Device:   00:14.5
Class:   USB controller
Vendor:   Advanced Micro Devices [AMD] nee ATI
Device:   SB7x0/SB8x0/SB9x0 USB OHCI2 Controller
SVendor:   ASUSTeK Computer Inc.
SDevice:   Device 1d57
ProgIf:   10
Driver:   ohci_hcd

Device:   00:18.0
Class:   Host bridge
Vendor:   Advanced Micro Devices [AMD]
Device:   Family 11h Processor HyperTransport Configuration
Rev:   40

Device:   00:18.1
Class:   Host bridge
Vendor:   Advanced Micro Devices [AMD]
Device:   Family 11h Processor Address Map

Device:   00:18.2
Class:   Host bridge
Vendor:   Advanced Micro Devices [AMD]
Device:   Family 11h Processor DRAM Controller

Device:   00:18.3
Class:   Host bridge
Vendor:   Advanced Micro Devices [AMD]
Device:   Family 11h Processor Miscellaneous Control

Device:   00:18.4
Class:   Host bridge
Vendor:   Advanced Micro Devices [AMD]
Device:   Family 11h Processor Link Control

Device:   01:05.0
Class:   VGA compatible controller
Vendor:   Advanced Micro Devices [AMD] nee ATI
Device:   RS780M/RS780MN [Mobility Radeon HD 3200 Graphics]
SVendor:   ASUSTeK Computer Inc.
SDevice:   Device 1b12

Device:   02:00.0
Class:   VGA compatible controller
Vendor:   Advanced Micro Devices [AMD] nee ATI
Device:   RV710 [Mobility Radeon HD 4500/5100 Series]
SVendor:   ASUSTeK Computer Inc.
SDevice:   Device 1b32

Device:   03:00.0
Class:   Ethernet controller
Vendor:   Realtek Semiconductor Co., Ltd.
Device:   RTL8111/8168B PCI Express Gigabit Ethernet controller
SVendor:   ASUSTeK Computer Inc.
SDevice:   U6V/U31J laptop
Rev:   01
Driver:   r8169

Device:   04:00.0
Class:   Network controller
Vendor:   Atheros Communications Inc.
Device:   AR9285 Wireless Network Adapter (PCI-Express)
SVendor:   AzureWave
SDevice:   AW-NE785 / AW-NE785H 802.11bgn Wireless Full or Half-size Mini PCIe Card
Rev:   01
Back to top
View user's profile Send private message
Chocrates
n00b
n00b


Joined: 28 Apr 2007
Posts: 27

PostPosted: Sun Aug 19, 2012 4:41 am    Post subject: Reply with quote

It looks as though i solved it myself.
I don't think I actually had the driver installed.

I attempted to rebuild the kernel so i could blacklist the usblp driver, and ran in to this error:

Code:
make[1]: *** No rule to make target `firmware/radeon/R700_rlc.bin', needed by `firmware/radeon/R700_rlc.bin.gen.o'.  Stop.


I must have not noticed it and copied the old kernel in its place, when setting up X. As it turns out, they both hash to the same value.

After following wrc1944's last post here forums.gentoo.org/viewtopic-t-817393.html I was able to get it to compile.

Now glxgears has a roughly static fps reading per screen size, and vlc isn't dropping frames.

This leads me to two questions:

Am i using the open source drivers?
And, is there a better way to stress test my X shell to see if it's now working as expected?
Back to top
View user's profile Send private message
epsilon72
Guru
Guru


Joined: 20 Sep 2007
Posts: 530

PostPosted: Sun Aug 19, 2012 5:44 am    Post subject: Reply with quote

Do you have a VIDEO_CARDS entry in your make.conf?

For open source you'd have
Code:
VIDEO_CARDS="radeon"

and for binary you'd have
Code:
VIDEO_CARDS="fglrx"


Also, check the USE flags for x11-base/xorg-drivers
Back to top
View user's profile Send private message
Chocrates
n00b
n00b


Joined: 28 Apr 2007
Posts: 27

PostPosted: Sun Aug 19, 2012 1:30 pm    Post subject: Reply with quote

Ah,

in /etc/make.conf I had VIDEO_CARDS=radeo, while in /etc/portage/make.conf it was blank.
Moving it to the portage make.conf and updating world, lets see what happens.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 29952
Location: 56N 3W

PostPosted: Sun Aug 19, 2012 2:15 pm    Post subject: Reply with quote

Chocrates,

Code:
CFLAGS="-O2 -march=i686 -pipe"
Thats OK for a PentiumPro CPU, or an i686 installl that must run anywhere but I doubt you have a PentiumPro, or you need such a wide ranging install.

Modern CPUs have Single Instruction Multiple Data instructions sets, which you are not using. Thiese instructions are used for most multimedia applications.

There is also a set of USE flags that enable hand crafted code sections to take advantage of code writtem for these features.
The down side is that for the USE flags, you need to know what your CPU supports. For your CFLAGS, -march-native works well for most amd/intel CPUs.

You can improve your multimedia performace several times by fixing your CFLAGS and USE flags to suit your CPU.
It won't make much difference to other applications, so there is not much to rebuild to see the effects.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Chocrates
n00b
n00b


Joined: 28 Apr 2007
Posts: 27

PostPosted: Sat Aug 25, 2012 5:11 pm    Post subject: Reply with quote

NeddySeagoon wrote:
Chocrates,

Code:
CFLAGS="-O2 -march=i686 -pipe"
Thats OK for a PentiumPro CPU, or an i686 installl that must run anywhere but I doubt you have a PentiumPro, or you need such a wide ranging install.

Modern CPUs have Single Instruction Multiple Data instructions sets, which you are not using. Thiese instructions are used for most multimedia applications.

There is also a set of USE flags that enable hand crafted code sections to take advantage of code writtem for these features.
The down side is that for the USE flags, you need to know what your CPU supports. For your CFLAGS, -march-native works well for most amd/intel CPUs.

You can improve your multimedia performace several times by fixing your CFLAGS and USE flags to suit your CPU.
It won't make much difference to other applications, so there is not much to rebuild to see the effects.


Ooh good catch. I used the Safe Cflags for my processor:
Code:
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -msse3 -O2 -pipe -fomit-frame-pointer"


Code:
~ $ cat /proc/cpuinfo
processor   : 0
vendor_id   : AuthenticAMD
cpu family   : 17
model      : 3
model name   : AMD Turion(tm) X2 Dual-Core Mobile RM-74
stepping   : 1
microcode   : 0x2000032
cpu MHz      : 2199.235
cache size   : 512 KB
physical id   : 0
siblings   : 2
core id      : 0
cpu cores   : 2
apicid      : 0
initial apicid   : 0
fdiv_bug   : no
hlt_bug      : no
f00f_bug   : no
coma_bug   : no
fpu      : yes
fpu_exception   : yes
cpuid level   : 1
wp      : yes
flags      : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt rdtscp lm 3dnowext 3dnow constant_tsc nonstop_tsc extd_apicid pni cx16 lahf_lm cmp_legacy svm extapic cr8_legacy 3dnowprefetch osvw skinit lbrv svm_lock nrip_save
bogomips   : 4398.47
clflush size   : 64
cache_alignment   : 64
address sizes   : 40 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate

processor   : 1
vendor_id   : AuthenticAMD
cpu family   : 17
model      : 3
model name   : AMD Turion(tm) X2 Dual-Core Mobile RM-74
stepping   : 1
microcode   : 0x2000032
cpu MHz      : 2199.235
cache size   : 512 KB
physical id   : 0
siblings   : 2
core id      : 1
cpu cores   : 2
apicid      : 1
initial apicid   : 1
fdiv_bug   : no
hlt_bug      : no
f00f_bug   : no
coma_bug   : no
fpu      : yes
fpu_exception   : yes
cpuid level   : 1
wp      : yes
flags      : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt rdtscp lm 3dnowext 3dnow constant_tsc nonstop_tsc extd_apicid pni cx16 lahf_lm cmp_legacy svm extapic cr8_legacy 3dnowprefetch osvw skinit lbrv svm_lock nrip_save
bogomips   : 4398.47
clflush size   : 64
cache_alignment   : 64
address sizes   : 40 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate


And for kicks, recompiled everything with:

Code:
emerge -e @system


It seems to be running well!

Thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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