Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PREEMPT or SPINLOCK
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
pandaxiongmao
Guru
Guru


Joined: 29 Sep 2003
Posts: 478
Location: USA

PostPosted: Thu Apr 29, 2004 8:25 am    Post subject: PREEMPT or SPINLOCK Reply with quote

After getting involved on this thread.

I decided to create a new topic about my next problem.

I got to choose either:
Code:

CONFIG_DEBUG_SPINLOCK_SLEEP

or

CONFIG_PREEMPT


I "throwed" away the 1st one in favor of PREEMPT, my question is whether we really need the 1st option (SPINLOCK) or not?

Disabling PREEMPT surely brought down those nasty dmesg lines (look at the URL above), but after I switched the PREEMPT on, and I turned off the SPINLOCK instead, the problem were also gone. This really confused me.

Since I'm using desktop, I consider PREEMPT is far more useful for me, and I don't do any debugging, thus I can safely disable SPINLOCK. Am I correct?

I'm doing this "experiment" under 2.6.5-gentoo, I still haven't implemented this method on my other 2 kernels.

Sorry for the messy description, I hope you guys understand my point.
_________________
CPU: Intel Core 2 Duo
GPU: nVidia GeForce 9800 GT
MB: Asus P5N-E SLI
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Thu Apr 29, 2004 8:37 am    Post subject: Reply with quote

Unless you're a software developer writing device drivers or otherwise altering the kernel, you should never enable DEBUG_SPINLOCK_SLEEP. Normal users never need it.
_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
pandaxiongmao
Guru
Guru


Joined: 29 Sep 2003
Posts: 478
Location: USA

PostPosted: Thu Apr 29, 2004 8:37 am    Post subject: Reply with quote

Thanks, I can safely turn off SPINLOCK now.
_________________
CPU: Intel Core 2 Duo
GPU: nVidia GeForce 9800 GT
MB: Asus P5N-E SLI
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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