View previous topic :: View next topic |
Author |
Message |
goku8499 n00b
Joined: 20 Feb 2004 Posts: 22
|
Posted: Thu Jun 29, 2006 4:51 pm Post subject: To PREEMPT or not to PREEMPT |
|
|
Is there any real problems with compling in preemption or not? i have been using with out a single problem. what is all the hoopla about not using it? |
|
Back to top |
|
|
erik258 Advocate
Joined: 12 Apr 2005 Posts: 2650 Location: Twin Cities, Minnesota, USA
|
Posted: Thu Jun 29, 2006 4:54 pm Post subject: |
|
|
what hoopla? _________________ Configuring a Firewall? Try my iptables configuration
LinuxCommando.com is my blog for linux-related scraps and tidbits. Stop by for a visit! |
|
Back to top |
|
|
goku8499 n00b
Joined: 20 Feb 2004 Posts: 22
|
Posted: Thu Jun 29, 2006 5:12 pm Post subject: |
|
|
its just that everything you read tells you not to, but being adventurous, i went ahead and did, no instablity at all just wondering what is broken or just not quite right enough to say don't do it. |
|
Back to top |
|
|
erik258 Advocate
Joined: 12 Apr 2005 Posts: 2650 Location: Twin Cities, Minnesota, USA
|
Posted: Thu Jun 29, 2006 6:04 pm Post subject: |
|
|
i have never been told not to preempt
furthermore i have noticed that preempting the big kernel lock seems to help with realtime stuff, especially media on a crappy sound card _________________ Configuring a Firewall? Try my iptables configuration
LinuxCommando.com is my blog for linux-related scraps and tidbits. Stop by for a visit! |
|
Back to top |
|
|
fb l33t
Joined: 08 Dec 2003 Posts: 636 Location: New Zealand
|
Posted: Thu Jun 29, 2006 11:10 pm Post subject: |
|
|
preempt on ppc was buggy for a while but it has improved a lot and is safe
to use since 2.6.16 at least (may be even 2.6.15). It was also reported that
it worked all right earlier in some kernel where smp has been enabled.
As someone that has beeen bitten by the buggy "preempt" behavior I can
tell you it was real. Compilation of big package (firefox) would fail in a random
place. Not really pretty.
But it is safe to use now.
Hope that answer your question. |
|
Back to top |
|
|
JoseJX Retired Dev
Joined: 28 Apr 2002 Posts: 2774
|
Posted: Fri Jun 30, 2006 2:22 am Post subject: |
|
|
It's certainly a whole lot more stable since 2.6.15, but there are still a few unverified issues with it (they're all hard to reproduce), and if you do end up having any problems, enabling SMP seems to always take care of it. Feel free to give it a go, and let us know how it works. Some people were never hit by it at all. On my G4 500, I would have issues rarely (say, once every few weeks). But then again, I never noticed much benefit either.
Good luck either way. :) _________________ Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml |
|
Back to top |
|
|
ruben Guru
Joined: 04 Jul 2003 Posts: 462
|
Posted: Fri Jun 30, 2006 9:22 pm Post subject: |
|
|
JoseJX wrote: | But then again, I never noticed much benefit either. |
Neither did I, not on ppc, but not on x86 either. Also got bitten by bugs in preempt code before, but that's already over a year ago and since then I never enabled it again. |
|
Back to top |
|
|
erik258 Advocate
Joined: 12 Apr 2005 Posts: 2650 Location: Twin Cities, Minnesota, USA
|
Posted: Fri Jul 07, 2006 3:41 pm Post subject: fair enough |
|
|
fair enough. I have never had problems either. I can't say that I have had much improvement either but to be fair i rarely leave it out of my kernel, only maybe for servers. and i'm not even sure it is disabled on my server maybe just a handheld pc on my shelf somewhere ...
one thing i did notice though was i think kernel-lock preemption helped with crappy sound cards using the AC97 codec, noteably from via. sound was a lot more crappy without preemption. highly distorted. i would say for real-time stuff, especially media, preeption seems to be a good idea.
is SMP resource-maniacal or is it pretty good to go on any system? I thought it introduced a significant amount of overhead.
[/list] _________________ Configuring a Firewall? Try my iptables configuration
LinuxCommando.com is my blog for linux-related scraps and tidbits. Stop by for a visit! |
|
Back to top |
|
|
JoseJX Retired Dev
Joined: 28 Apr 2002 Posts: 2774
|
|
Back to top |
|
|
erik258 Advocate
Joined: 12 Apr 2005 Posts: 2650 Location: Twin Cities, Minnesota, USA
|
Posted: Fri Jul 07, 2006 7:14 pm Post subject: |
|
|
Gentoo Forums Forum Index Gentoo on PPC
ah yes, that was pertinent ; ) i forgot about you wierdos in MAC World ; )
just kidding. the only mac I have is an old imac (233 mhz) and it definitely is neat, blows any x86 233 mhz computer out of the water as far as i can tell but yes, certainly disregard my stupidity ; ) _________________ Configuring a Firewall? Try my iptables configuration
LinuxCommando.com is my blog for linux-related scraps and tidbits. Stop by for a visit! |
|
Back to top |
|
|
qleak n00b
Joined: 17 Jun 2005 Posts: 67
|
Posted: Tue Jul 11, 2006 2:04 pm Post subject: |
|
|
You may want to keep a bootable kernel image around without prempt.
As I recall, I had some issues with prempt in much older kernels. It worked for some time and then without warning made my system quite unworkable.
I didn't have any bootable kernels without preempt, so I had to boot from a live CD to swap out the kernels. _________________ (\ /)
(O.o)
(> <)
This is Frank. He made me flood the school. |
|
Back to top |
|
|
|