From: "Dave Gilbert (Home)" <gilbertd@treblig.org>
To: jschopp@austin.ibm.com
Cc: Nathan Lynch <ntl@pobox.com>, linux-kernel@vger.kernel.org
Subject: Re: Hotplug CPU and setaffinity?
Date: Mon, 25 Apr 2005 18:28:21 +0100 [thread overview]
Message-ID: <426D28B5.8050207@treblig.org> (raw)
In-Reply-To: <426D1402.5050509@austin.ibm.com>
Joel Schopp wrote:
> On ppc64 we have CPU guard, which would remove a processor if it is
> failing. Of course, the implications of not removing such a CPU are
> pretty terrible.
Indeed.
>>>> In particular I was thinking of the cases where a thread has a
>>>> functional reason for remaining on one particular CPU (e.g. if you
>>>> had calibrated for some feature of that CPU say its time stamp
>>>> counter skew/speed). Another case would be a set of threads which
>>>> had set their affinity to the same CPU and then made memory
>>>> consistency or locking assumptions that wouldn't be valid
>>>> if they got rescheduled onto different CPUs.
>
>
> This sounds like a theoretical problem. Can you think of any real
> examples? The only cases I can think of cause performance hits, but not
> functional problems.
Well I'm not aware of anything that currently would break with it; but I
was gently thinking of whether it would be possible to read cycle
counters (as a faster gettimeofday) even on systems which had
unsynchronised counters if you could lock the thread that did it to a
particular physical cpu.
But this behaviour currently makes that a bad idea; in this case it
would be nicer if the kernel either just killed my process or just
unscheduled it or sent it a signal.
Dave
prev parent reply other threads:[~2005-04-25 17:33 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-23 17:35 Hotplug CPU and setaffinity? Dr. David Alan Gilbert
2005-04-23 18:22 ` Nathan Lynch
2005-04-24 12:35 ` Dr. David Alan Gilbert
2005-04-25 16:00 ` Joel Schopp
2005-04-25 17:28 ` Dave Gilbert (Home) [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=426D28B5.8050207@treblig.org \
--to=gilbertd@treblig.org \
--cc=jschopp@austin.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=ntl@pobox.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