LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-08-2012, 07:13 PM   #1
icoming
Member
 
Registered: Feb 2004
Posts: 96

Rep: Reputation: 15
How to disable CPU hot-pluggable feature?


Hello,

I try to disable CPU hot-pluggable feature because it messes up APIC and interrupts can't be delivered to all CPUs, as suggested in http://www.alexonlinux.com/smp-affin...dling-in-linux.

However, when I run make menuconfig, I find I can't disable this feature directly. The line in make menuconfig is as follows:
-*- Support for hot-pluggable CPUs

I can't simply comment CONFIG_HOTPLUG_CPU in .config, either. Whenever I change .config and run make, the change disappears.

I guess the reason I can't disable hot-pluggable CPU in menuconfig is that some other features depend on it. The kernel I try to compile is v3.2.0. Does anyone have experience of disable this feature?

Thanks,
Da
 
Old 11-09-2012, 02:19 AM   #2
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Code:
  ┌──────────────────── Support for hot-pluggable CPUs ─────────────────────┐
  │ CONFIG_HOTPLUG_CPU:                                                     │  
  │                                                                         │  
  │ Say Y here to allow turning CPUs off and on. CPUs can be                │  
  │ controlled through /sys/devices/system/cpu.                             │  
  │ ( Note: power management support will enable this option                │  
  │   automatically on SMP systems. )                                       │  
  │ Say N if you want to disable CPU hotplug.                               │  
  │                                                                         │  
  │ Symbol: HOTPLUG_CPU [=n]                                                │  
  │ Type  : boolean                                                         │  
  │ Prompt: Support for hot-pluggable CPUs                                  │  
  │   Defined at arch/x86/Kconfig:1666                                      │  
  │   Depends on: SMP [=y] && HOTPLUG [=y]                                  │  
  │   Location:                                                             │  
  │     -> Processor type and features                                      │  
  │   Selected by: PM_SLEEP_SMP [=n] && SMP [=y] && (\                      │  
  │ ARCH_SUSPEND_POSSIBLE [=y] || ARCH_HIBERNATION_POSSIBLE [=y]) && \      │  
  │ PM_SLEEP [=n]                                                           │
This means you have to disable 'Suspend to RAM and standby' and ' Hibernation (aka 'suspend to disk')' in the 'Power management and ACPI options' section.
 
1 members found this post helpful.
Old 11-09-2012, 09:59 AM   #3
icoming
Member
 
Registered: Feb 2004
Posts: 96

Original Poster
Rep: Reputation: 15
Thanks. It seems these two features aren't enough. I couldn't find how to disable ARCH_SUSPEND_POSSIBLE and ARCH_HIBERNATION_POSSIBLE in menuconfig. But it works after I manually change arch/x86/Kconfig to disable them by default.

Da

Quote:
Originally Posted by H_TeXMeX_H View Post
Code:
  ┌──────────────────── Support for hot-pluggable CPUs ─────────────────────┐
  │ CONFIG_HOTPLUG_CPU:                                                     │  
  │                                                                         │  
  │ Say Y here to allow turning CPUs off and on. CPUs can be                │  
  │ controlled through /sys/devices/system/cpu.                             │  
  │ ( Note: power management support will enable this option                │  
  │   automatically on SMP systems. )                                       │  
  │ Say N if you want to disable CPU hotplug.                               │  
  │                                                                         │  
  │ Symbol: HOTPLUG_CPU [=n]                                                │  
  │ Type  : boolean                                                         │  
  │ Prompt: Support for hot-pluggable CPUs                                  │  
  │   Defined at arch/x86/Kconfig:1666                                      │  
  │   Depends on: SMP [=y] && HOTPLUG [=y]                                  │  
  │   Location:                                                             │  
  │     -> Processor type and features                                      │  
  │   Selected by: PM_SLEEP_SMP [=n] && SMP [=y] && (\                      │  
  │ ARCH_SUSPEND_POSSIBLE [=y] || ARCH_HIBERNATION_POSSIBLE [=y]) && \      │  
  │ PM_SLEEP [=n]                                                           │
This means you have to disable 'Suspend to RAM and standby' and ' Hibernation (aka 'suspend to disk')' in the 'Power management and ACPI options' section.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Are USB flashdrives hot pluggable in Linux? tzonkov Linux - Hardware 7 01-25-2016 01:23 PM
LXer: Pluggable Schedulers vs. Pluggable Security LXer Syndicated Linux News 0 10-03-2007 11:40 PM
LXer: Linux: PlugSched, Pluggable CPU Schedulers LXer Syndicated Linux News 0 07-18-2007 11:46 PM
Can I turn off a non-hot pluggable drive? ayteebee Linux - Hardware 2 12-08-2006 04:51 PM
'Support for hot-pluggable devices' option not available in 2.6 kernel shadowsnipes Linux - General 3 10-24-2005 10:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration