public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: ebiederm@xmission.com (Eric W. Biederman)
To: Rusty Russell <rusty@rustcorp.com.au>
Cc: linux-kernel@vger.kernel.org, ralf@gnu.org, rhw@memalpha.cx,
	mingo@redhat.com, paulus@samba.org, anton@samba.org,
	schwidefsky@de.ibm.com, bh@sgi.com, davem@redhat.com, ak@suse.de,
	torvalds@transmeta.com
Subject: Re: Hotplug CPU Boot Changes: BEWARE
Date: 10 Jun 2002 07:43:00 -0600	[thread overview]
Message-ID: <m14rgbw8pn.fsf@frodo.biederman.org> (raw)
In-Reply-To: <E17HJEs-00061l-00@wagner.rustcorp.com.au>

Rusty Russell <rusty@rustcorp.com.au> writes:

> In message <m1elfjw39n.fsf@frodo.biederman.org> you write:
> > But for the latter something just a little more than minimal hacks
> > must be implemented.  But dynamic cpu enable/disable is definitely
> > worth it.
> 
> Perhaps I didn't make myself clear: hotplugging does not neccessarily
> mean physically removing or adding the CPU.  And as to whether they
> offer full support, or stub support, architectures can decide that for
> themselves, as they need.  It's not my call.

I guess as long as the interface to user space is consistent I don't
mind.
 
> I don't know how much of a win it is to disable HT on cpus, but I can
> tell you that adding & subtracting CPUs is a fairly heavy-weight
> operation in this design (I don't think we really want to lock around
> every cpu iteration).

Agreed.  However it should be lighter than a full system reboot,
which is what is needed now.  And if you can disable the extra
cpu you can benchmark on the same machine without rebooting
and see what kind of a win it is.

My basic point was that with a name like hotplug it was not immediately
clear this code could be useful for anything.  And that there are a lot
of debugging uses of being able stop or start a cpu.  Things like is
testing if HT/SMT worth it.

For the kernel I fully expect this to be a heavy weight operation.
But it is almost certainly lighter than swapoff /dev/hda1.  Which
makes it a lightweight operation for a system administrator.  

So it is my belief there is general usefulness of this code, on any
SMP target.  And with general applicability should come a common user
space interface.  

On x86  the code to do dynamic start/stop should already exist,
because we need it at kernel startup and shutdown.  The code paths just
need to be made safe to run at relatively arbitrary times.  The
generic part of which you are handling.

Eric

      reply	other threads:[~2002-06-10 13:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-07 10:40 Hotplug CPU Boot Changes: BEWARE Rusty Russell
2002-06-07 14:51 ` Eric W. Biederman
2002-06-02 16:22   ` Pavel Machek
2002-06-08  1:55   ` Keith Owens
2002-06-10  7:05   ` Rusty Russell
2002-06-10 13:43     ` Eric W. Biederman [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m14rgbw8pn.fsf@frodo.biederman.org \
    --to=ebiederm@xmission.com \
    --cc=ak@suse.de \
    --cc=anton@samba.org \
    --cc=bh@sgi.com \
    --cc=davem@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=paulus@samba.org \
    --cc=ralf@gnu.org \
    --cc=rhw@memalpha.cx \
    --cc=rusty@rustcorp.com.au \
    --cc=schwidefsky@de.ibm.com \
    --cc=torvalds@transmeta.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox