Re: [git pull] CPU isolation extensions
- From: Max Krasnyansky <maxk@xxxxxxxxxxxx>
- Date: Thu, 07 Feb 2008 09:22:34 -0800
Andrew Morton wrote:
On Wed, 06 Feb 2008 21:32:55 -0800 Max Krasnyansky <maxk@xxxxxxxxxxxx> wrote:Awesome :) I think it's get more and more useful as people will start trying
Linus, please pull CPU isolation extensions from
The feature as a whole seems useful, and I don't actually oppose the merge
based on what I see here.
to figure out what the heck there is supposed to do with the spare CPU cores.
I mean pretty soon most machines will have 4 cores and some will have 8.
One way to use those cores is the "dedicated engine" model.
As long as you're really sure that cpusets areI'll cover this in a separate email with more details.
inappropriate (and bear in mind that Paul has a track record of being wrong
on this :)).
But I see a few glitchesGood catches. Thanks for reviewing.
- There are two separate and identical implementations of
cpu_unusable(cpu). Please do it once, in a header, preferably with C
function, not macros.
Those are local versions that depend whether a feature is enabled or not.
If CONFIG_CPUISOL_WORKQUEUE is disabled we want to cpu_unusable()
in the workqueue.c to be a noop, and if it's enabled that macro resolve to
Same thing for the stopmachine.c. If CONFIG_CPUISOL_STOPMACHIN is disabled
cpu_unusable() is a noop.
In other words cpu_isolated() is the one common macro that subsystem may
want to stub out.
Do you see another way of doing this ?
- The Kconfig help is a bit scraggly:Got it. Will fix asap.
+ bool "Do not halt isolated CPUs with Stop Machine (HIGHLY EXPERIMENTAL)"
+ depends on CPUISOL && STOP_MACHINE && EXPERIMENTAL
+ If this option is enabled kernel will not halt isolated CPUs when Stop Machine
text is too wide
+ is triggered.
+ Stop Machine is currently only used by the module insertion and removal logic.
+ Please note that at this point this feature is highly experimental and maybe
+ dangerous. It is not known to really brake anything but can potentially
+ introduce an instability.
Man, the typos are killing me :). Will fix.
Neither this text, nor the changelog nor the code comments tell us what theThat's the thing, we don't really know :). In real life does not seem to be a problem at all.
potential instability with stopmachine *is*? Or maybe I missed it.
As I mentioned in prev emails. We've been running all kinds of machines with this enabled,
and inserting all kinds of modules left and right. Never seen any crashes or anything.
But the fact that stopmachine is supposed to halt all cpus during module insertion/removal
seems to imply that something bad may happen if some cpus are not halted. It may very well
turnout that it's no longer needed because our locking and refcounting handles this just fine.
I mean ideally we should not have to halt the entire box, it causes terrible latencies.
- Adding new sysfs files without updating Documentation/ABI/ makes Greg cry.Oh, did not know that. Will fix.
Yes. For consistency. We'd want cpu_isolated() to work everywhere.
- Why is cpu_isolated_map exported to modules? Just for api consistency, it appears?
pre-existing problems:Will do.
- isolated_cpu_setup() has an on-stack array of NR_CPUS integers. This
will consume 4k of stack on ia64 (at least). We'll just squeak through
for a ittle while, but this needs to be fixed. Just move it into
- isolated_cpu_setup() expects that the user can provide an up-to-1024I'm thinking that is reasonable for now.
character kernel boot parameter. Is this reasonable given cpu command
line limits, and given that NR_CPUS will surely grow beyond 1024 in the
I'll fix and resend the patches asap.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Re: [git pull] CPU isolation extensions
- From: Andrew Morton
- Re: [git pull] CPU isolation extensions
- Prev by Date: Re: [PATCH 01/18] MMC: OMAP: Include missing from previous merging
- Next by Date: Re: [PATCH] x86_64: fix page table size
- Previous by thread: Re: [git pull] CPU isolation extensions
- Next by thread: Re: [git pull] CPU isolation extensions