Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
To PREEMPT or not to PREEMPT
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
goku8499
n00b
n00b


Joined: 20 Feb 2004
Posts: 22

PostPosted: Thu Jun 29, 2006 4:51 pm    Post subject: To PREEMPT or not to PREEMPT Reply with quote

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
View user's profile Send private message
erik258
Advocate
Advocate


Joined: 12 Apr 2005
Posts: 2650
Location: Twin Cities, Minnesota, USA

PostPosted: Thu Jun 29, 2006 4:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
goku8499
n00b
n00b


Joined: 20 Feb 2004
Posts: 22

PostPosted: Thu Jun 29, 2006 5:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
erik258
Advocate
Advocate


Joined: 12 Apr 2005
Posts: 2650
Location: Twin Cities, Minnesota, USA

PostPosted: Thu Jun 29, 2006 6:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Thu Jun 29, 2006 11:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Fri Jun 30, 2006 2:22 am    Post subject: Reply with quote

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
View user's profile Send private message
ruben
Guru
Guru


Joined: 04 Jul 2003
Posts: 462

PostPosted: Fri Jun 30, 2006 9:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
erik258
Advocate
Advocate


Joined: 12 Apr 2005
Posts: 2650
Location: Twin Cities, Minnesota, USA

PostPosted: Fri Jul 07, 2006 3:41 pm    Post subject: fair enough Reply with quote

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
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Fri Jul 07, 2006 4:41 pm    Post subject: Reply with quote

erik258:
You sound like you're using an x86 machine, this is the PPC forum, and things are a little different on PPC. This is the PPC warning about PREEMPT: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml#gccsegfaults (just fyi). :)

As for SMP, don't bother on single processor systems, it's only suggested here as a workaround for PPC's preempt issues.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
erik258
Advocate
Advocate


Joined: 12 Apr 2005
Posts: 2650
Location: Twin Cities, Minnesota, USA

PostPosted: Fri Jul 07, 2006 7:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
qleak
n00b
n00b


Joined: 17 Jun 2005
Posts: 67

PostPosted: Tue Jul 11, 2006 2:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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