Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Lack with 3D Acceleration
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
mort23
n00b
n00b


Joined: 03 Apr 2004
Posts: 39

PostPosted: Sat Apr 03, 2004 3:09 pm    Post subject: Lack with 3D Acceleration Reply with quote

Hi all :-)

I just switched from Debian to Gentoo. So far everything works great, except for my Games /emulated & native).
When I run a game, I'm getting a great framerate, like I'm used to. The problem: It runs for 2 secs with that great framerate, then it goes down to zero FPS for a half second or so and then it's going up again. That situation is repeating all the time. That is very annoying. It stucks all two seconds...
My Hardware: NVidia GeForce 4600 TI with an AthlonXP. Im running the emerged 5336 nvidia drivers.
Code:
ACCEPT_KEYWORDS="~x86" emerge nvidia-kernel nvidia-glx

I though this could be an hdd related problem, but:
Code:

hdparm -it /dev/hda

/dev/hda:

 Model=Maxtor 6Y160P0, FwRev=YAR41VW0, SerialNo=Y60E8XBE
 Config={ Fixed }
 RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=57
 BuffType=DualPortCache, BuffSize=7936kB, MaxMultSect=16, MultSect=off
 CurCHS=4047/16/255, CurSects=16511760, LBA=yes, LBAsects=268435455
 IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes:  pio0 pio1 pio2 pio3 pio4
 DMA modes:  mdma0 mdma1 mdma2
 UDMA modes: udma0 udma1 udma2 udma3 udma4 udma5 *udma6
 AdvancedPM=yes: disabled (255) WriteCache=enabled
 Drive conforms to: (null):

 * signifies the current active mode

 Timing buffered disk reads:   90 MB in  3.11 seconds =  28.92 MB/sec

Well, with Debian I had something with 40mb/s, but I don't think those 10mb matter that much. I'm also using the same X-Config like I used in Debian, and almost the same kernel config.

Any ideas on this?

Mort
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Apr 03, 2004 3:32 pm    Post subject: Reply with quote

mort23,

Two ideas,

1. You have not selected the best kernel scheduler when you compiled your kernel.

2. Try setting the nice factor for X to a negative number. You need to be root to do this. Try values between -1 and -10.
_________________
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
mort23
n00b
n00b


Joined: 03 Apr 2004
Posts: 39

PostPosted: Sat Apr 03, 2004 3:53 pm    Post subject: Reply with quote

I had absoluteley no Idea what a kernel scheduler is. I googled a bit and figured it out, but how do I change that? Do I have to hack kernel/sched.c from the kernel-source-tree? Is there any documetation out there?

Also, I don't know what the nice factor for X is and how to change it. Some documentation for this would also be great.

Thanks for your help!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Apr 03, 2004 4:15 pm    Post subject: Reply with quote

mort23,

No kernel hacking is required. Its a Kernel configuration option when you run make menuconfig (or make xconfig). To play with this, you need to rebuild your kernel.

The default nice factor for a task is 0. When you make the nice more positive, the task does not get scheduled for a slice of CPU time as often, when you make the nice negative, the task competes more agressively for CPU time. Toy can play with nive on the fly with top.

Run top as the root user, make a note of the ProcessID of X and type r (for renice). top will ask for the PID then the new nice value.
You will see other things running at -10.
_________________
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
mort23
n00b
n00b


Joined: 03 Apr 2004
Posts: 39

PostPosted: Sat Apr 03, 2004 4:56 pm    Post subject: Reply with quote

I tried that renice thing. Going to negative number doesn't seem to change anything, but going positive makes it much worse.

Code:
CONFIG_IOSCHED_NOOP=y
CONFIG_IOSCHED_AS=y
CONFIG_IOSCHED_DEADLINE=y
# CONFIG_NET_SCHED is not set

That's all I could find in my kernel config containing the word "SCHED". Do you mean that? How could this be possible? My debian kernel config is the same, and I hadn't those problems with it. Are you shure this is a kernel thing?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Apr 03, 2004 5:44 pm    Post subject: Reply with quote

Message
mort23,

No. Thats not it. Those options only appear if you choose Embedded. It looks like my info is out of date, googling shows that the scheduler improvements went into the main kerenl tree early in 2.5
_________________
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
Riftwing
Apprentice
Apprentice


Joined: 06 Oct 2002
Posts: 293

PostPosted: Sat Apr 03, 2004 7:19 pm    Post subject: Reply with quote

J'm pretty sure that you just need to pass a line to the kernel to change scedulers during boot (grub or lilo).
_________________
Good, bad, I'm the guy with the gun. - Ash, Army of Darkness
Back to top
View user's profile Send private message
mort23
n00b
n00b


Joined: 03 Apr 2004
Posts: 39

PostPosted: Sat Apr 03, 2004 7:34 pm    Post subject: Reply with quote

I'm confused. Why do I need to boot with some parameters to enable some kind of kernel scheduling? On another distribution this worked just fine with the same kernel. What makes gentoo need that extra stuff?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Apr 03, 2004 7:45 pm    Post subject: Reply with quote

mort23,

Not all distros are equal. Some have patches applied that others don't, then the options settings vary too.

Gentoo has a range of different kernels aimed at different jogs.
_________________
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
Moled
l33t
l33t


Joined: 09 Jul 2003
Posts: 635

PostPosted: Sat Apr 03, 2004 9:45 pm    Post subject: Reply with quote

"elevator=xxxxxx"
the default is as
Back to top
View user's profile Send private message
mort23
n00b
n00b


Joined: 03 Apr 2004
Posts: 39

PostPosted: Sun Apr 04, 2004 2:35 pm    Post subject: Problem Solved Reply with quote

I tried all kind of Stuff until I figured out that gDesklets kills my performance! More precisely it's the gDesklets display "SysInfo". That display looks all two seconds for system stats, like CPU load, memory, etc.
I hadn't those problems with Debian because I was unable to get gDesklets to work there.
Thanks a lot for your friendly support!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players 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