Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
X much slower in Gentoo than in Mandrake. How come? [SOLVED]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
mariux2
Apprentice
Apprentice


Joined: 16 Sep 2003
Posts: 242

PostPosted: Fri Apr 29, 2005 2:11 pm    Post subject: X much slower in Gentoo than in Mandrake. How come? [SOLVED] Reply with quote

[SOLVED I THINK]
I started xfs (X Font Server) and removed all the extra stash from the Device-section so that it looks like this:

Quote:
Section "Device"
Identifier "Card0"
Driver "nvidia"
BusID "PCI:1:0:0"
# Option "AllowGLXWithComposite" "true"
Option "NoLogo" "on"
# Option "RenderAccel" "True"
# Option "UseEdidFregs" "1"
# Option "NvAGP" "0"
# Option "VideoOverlay" "on"
# Screen 0
#Option "HWCursor" "off"
EndSection


That seems to have solved the problem (don't know which of the two that did the trick though)
[/SOLVED I THINK]


[Original post]
Hi, i've been struggeling with the fact that i think my Gentoo installation is so slow (only X that is slow)
xmms/amarok is for example skipping when i close/open a new tab in opera/firefox and everything application is generally sloppy/slow/laggy. This applies to many WM's and DE's, including KDE 3.4, Openbox 3 and EvilWM.
Then i tried installing Mandrake 10.1 on it and its alot faster/responsive, but i dont want Mandrake, i want Gentoo, so does anyone know/have any idea why my Gentoo is so slow?

My system is a p3 800mhz, 512mb ram, 80gb seagate with two nVidia TNT2 card (and two monitors) running dualhead sometimes with and sometimes without xinerama (in both cases it is slow).
My gentoo is a gcc 2005.0 with gcc 3.4, 2.6.11-ck, X.org 6.8.2 and everything generally up ot date (emerge -u system && emerge -u world).
I use the closed source nVidia drivers and i have Coposition/XDamage disabled.

CFLAGS="-O2 -pipe -march=pentium3 -fomit-frame-pointer"

hdparm: all_args="-d1 -S60"

Quote:
Section "ServerLayout"
Identifier "XFree86 Configured"
Screen 0 "Screen0"
Screen 1 "Screen1" LeftOf "Screen0"
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
Option "OffTime" "20"
EndSection

Section "ServerFlags"
# Option "Xinerama" "True"
EndSection

Section "Files"
RgbPath "/usr/lib/X11/rgb"
ModulePath "/usr/X11R6/lib/modules"
FontPath "/usr/share/fonts/75dpi/:unscaled"
FontPath "/usr/share/fonts/100dpi/:unscaled"
FontPath "/usr/share/fonts/100dpi"
FontPath "/usr/share/fonts/75dpi"
FontPath "/usr/share/fonts/CID"
FontPath "/usr/share/fonts/Speedo"
FontPath "/usr/share/fonts/TTF"
FontPath "/usr/share/fonts/Type1"
FontPath "/usr/share/fonts/artwiz"
FontPath "/usr/share/fonts/corefonts"
FontPath "/usr/share/fonts/cyrillic"
FontPath "/usr/share/fonts/encodings"
FontPath "/usr/share/fonts/freefont"
FontPath "/usr/share/fonts/local"
FontPath "/usr/share/fonts/misc"
FontPath "/usr/share/fonts/terminus"
FontPath "/usr/share/fonts/ttf-bitstream-vera"
FontPath "/usr/share/fonts/ukr"
FontPath "/usr/share/fonts/unifo:nt"
FontPath "/usr/share/fonts/util"
EndSection

Section "Extensions"
# Option "Composite" "Enable"
#Option "XFIXES" "Enable"
# Option "RENDER" "Enable"
EndSection

Section "Module"
Load "glx"
Load "record"
Load "extmod"
Load "dbe"
# Load "dri"
Load "xtrap"
Load "type1"
Load "speedo"
# Load "xinerama"
Load "freetype"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"

Option "XkbModel" "pc105"
Option "XkbLayout" "no"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/mouse"
Option "ZAxisMapping" "4 5"
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
HorizSync 31.5 - 101.5
VertRefresh 50.0 - 110.0
Option "DPMS"
EndSection

Section "Monitor"
Identifier "Monitor1"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
HorizSync 31.5 - 101.5
VertRefresh 50.0 - 110.0
Option "DPMS"
EndSection

Section "Device"
Identifier "Card0"
Driver "nvidia"
BusID "PCI:1:0:0"
Option "AllowGLXWithComposite" "true"
Option "NoLogo" "on"
Option "RenderAccel" "True"
Option "UseEdidFregs" "1"
Option "NvAGP" "0"
Option "VideoOverlay" "on"
# Screen 0
#Option "HWCursor" "off"
EndSection

Section "Device"
Identifier "Card1"
Driver "nvidia"
BusID "PCI:0:3:0"
Option "AllowGLXWithComposite" "true"
Option "NoLogo" "on"
Option "RenderAccel" "True"
Option "UseEdidFregs" "1"
Option "NvAGP" "0"
Option "VideoOverlay" "on"
# Screen 1
#Option "HWCursor" "off"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24

SubSection "Display"
Depth 24
Modes "1280x1024"
# Modes "1600x1200"
ViewPort 0 0
EndSubSection
EndSection

Section "Screen"
Identifier "Screen1"
Device "Card1"
Monitor "Monitor1"
DefaultDepth 24

SubSection "Display"
Depth 24
Modes "1024x768"
ViewPort 0 0
EndSubSection
EndSection



Last edited by mariux2 on Fri Apr 29, 2005 3:53 pm; edited 3 times in total
Back to top
View user's profile Send private message
aidy
l33t
l33t


Joined: 07 Apr 2005
Posts: 915

PostPosted: Fri Apr 29, 2005 2:18 pm    Post subject: Reply with quote

Are you building everything with -03? Because when I first did that, I got 1400 FPS with GLXGears. When I rebuild X.org with -Os I got 2000!
Back to top
View user's profile Send private message
djsmiley2k
Tux's lil' helper
Tux's lil' helper


Joined: 08 Apr 2005
Posts: 79
Location: Coventry

PostPosted: Fri Apr 29, 2005 2:21 pm    Post subject: Reply with quote

is -Os not size? Surely that makes no sense?

How about if its run with only one card? What is it like then?
Back to top
View user's profile Send private message
neuron
Advocate
Advocate


Joined: 28 May 2002
Posts: 2371

PostPosted: Fri Apr 29, 2005 3:12 pm    Post subject: Reply with quote

-Os is optimize for size yes.. doesn't make much sense, either way glxgears is a horrible benchmark.

Just... hdparm /dev/hdX, you do have dma on right? ;), since mandrake uses a pre built kernel that could be where your problem lies.
Back to top
View user's profile Send private message
Chaosite
Guru
Guru


Joined: 13 Dec 2003
Posts: 540
Location: Right over here.

PostPosted: Fri Apr 29, 2005 3:44 pm    Post subject: Reply with quote

-Os might make the code fit better into the processor cache. You never know. (glxgears is still a horrible benchmark. It seems to be a strangely consistent [ on the same machine ] horrible benchmark, though :/).
Back to top
View user's profile Send private message
lenk
Apprentice
Apprentice


Joined: 08 Mar 2004
Posts: 211

PostPosted: Wed May 04, 2005 4:47 pm    Post subject: Reply with quote

mandrake probably prelinks its whole system. I'm not sure.
_________________
E6300 Gigabyte GA-965P-DS3 2GB Corsair 320GB Seagate 7200.10 XFX 7600GT Gentoo
Dell M1330 T7500 2GB 160GB 13.3" WXGA Gentoo
Sharp Zaurus SL-C760 Cacko ROM 1.21b / pdaXrom 1.10rc5 512MB CF + 512MB SD
Sun Ultra5 Gentoo
Back to top
View user's profile Send private message
djsmiley2k
Tux's lil' helper
Tux's lil' helper


Joined: 08 Apr 2005
Posts: 79
Location: Coventry

PostPosted: Wed May 18, 2005 6:25 pm    Post subject: Reply with quote

Anyone explain why this is labled as solved? In my minisule existance i truely cannot find a real reason of the effect listed behind the effect that the poster of this message has left.

In other words, where is this difference explained? Is it the fact that glxgears is a useless benchmark? Is it that the mandrake system MIGHT be pre-linked ?

Anyone care to explain this to a curious noobie?:oops:
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Mon May 23, 2005 6:04 pm    Post subject: Reply with quote

Firstly , glxgears is NOT a bench mark. Neither did the original poster even mention it.

It's solved apparently in the sense that he is now happy with it, and in a very vague way of it being "sloppy/slow" it is now as "responsive" as Mandrake.

It's true this sort of vague , subjective comment is not much help to the rest of the world so dont expect to get much from it.

It seems likely that since one of the things he removed from xorg.conf was composite that may well have had a noticable improvement on his somewhat old h/w.

BTW, incase anyone missed it glxgears isn't a horrible benchmark it is NOT a benchmark.:wink:
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
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