Re: CPU Hotplugging disabled, still cpuhp/%d threads running in my 32-bit system

From: Enrico Mioso
Date: Wed Jan 11 2017 - 08:12:08 EST


Thank you very much Thomas, really.
Enrico


Enrico Mioso
Mobile Phone Number: +393807096934 ( +Telegram :) )
My Tox ID is: 7C593F402A3C8632D87AB4B948D492294C39A6A614464ECF843CA3429FB023284180472C7475

I like / recommend the usage of open messaging standards.

On Wed, 11 Jan 2017, Thomas Gleixner wrote:

Date: Wed, 11 Jan 2017 10:16:10
From: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
To: Enrico Mioso <mrkiko.rs@xxxxxxxxx>
Cc: linux-kernel@xxxxxxxxxxxxxxx,
Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx>,
Rasmus Villemoes <linux@xxxxxxxxxxxxxxxxxx>,
Peter Zijlstra <peterz@xxxxxxxxxxxxx>,
Anna-Maria Gleixner <anna-maria@xxxxxxxxxxxxx>,
Ingo Molnar <mingo@xxxxxxxxxx>,
Sebastian Andrzej Siewior <bigeasy@xxxxxxxxxxxxx>
Subject: Re: CPU Hotplugging disabled,
still cpuhp/%d threads running in my 32-bit system

On Tue, 10 Jan 2017, Enrico Mioso wrote:

Hello guys.
I disabled CPU hotplugging in my .config: still I can see what follows in the
process list.

11 ? S 0:00 [cpuhp/0]
12 ? S 0:00 [cpuhp/1]

And from what I can see in kernel/cpu.c:574, this is related to CPU
hotplugging.
Is this normal? And, out of curiosity, why?

Yes. We need the threads for bringing up the CPUs and for modules and other
functionality to set up per cpu related things. The thread makes sure that
the code runs on the CPUs and handles the functionality related to
install/remove of hotplug callbacks.

Thanks,

tglx