View previous topic :: View next topic |
Author |
Message |
pandaxiongmao Guru
Joined: 29 Sep 2003 Posts: 478 Location: USA
|
Posted: Thu Apr 29, 2004 8:25 am Post subject: PREEMPT or SPINLOCK |
|
|
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 |
|
|
moocha Watchman
Joined: 21 Oct 2003 Posts: 5722
|
Posted: Thu Apr 29, 2004 8:37 am Post subject: |
|
|
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 |
|
|
pandaxiongmao Guru
Joined: 29 Sep 2003 Posts: 478 Location: USA
|
Posted: Thu Apr 29, 2004 8:37 am Post subject: |
|
|
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 |
|
|
|