From: Anton Blanchard <anton@samba.org>
To: Christoph Lameter <christoph@lameter.com>
Cc: Paul Jackson <pj@sgi.com>,
simon.derr@bull.net, linux-kernel@vger.kernel.org
Subject: Re: [rfc][patch] 1/2 Additional cpuset features
Date: Fri, 24 Sep 2004 11:17:51 +1000 [thread overview]
Message-ID: <20040924011751.GA20592@krispykreme> (raw)
In-Reply-To: <Pine.LNX.4.58.0409231651550.17168@server.home>
Hi,
> > But the jist of the matter is simple. Just as we (SGI) did with
> > cpumemsets and perfmon on 2.4 kernels, so should we do with cpusets and
> > perfmon on 2.6 kernels. And that is to perform this translation in
> > perfmon code. Is it only SGI's dplace that requires the cpuset-relative
> > numbering?
>
> pfmon, sched_setaffinity, dplace. And this is only what I saw today.
> Might develop into a longer list. The 2.4 solutions were rather
> complicated.
Are pfmon and dplace SGI specific? sched_affinity users already have to
deal with potentially discontiguous cpu maps. Ive been teaching IBM
applications about this fact as I find problems.
> > The kernel-user boundary should stick to a single, system-wide, numbering
> > of CPUs.
>
> That leads to lots of complicated scripts doing logical -> physical
> translation with the danger of access or attempting accesses to not
> allowed CPUs. It may be easier to contain tasks into a range of cpus if
> the CPUs in use are easily enumerable.
I would think you could write this in your userspace library.
> The patch would allow the use of the existing tools as if the machine
> only had N cpus (as you said a soft partitioning of the machine). If
> scripts are to be used with the current approach then they need to know
> about all the CPUs in the system and perform the mapping. Its going to be
> a nightmare to develop scripts that partition off a 512 cpu cluster
> appropriately and that track the physical cpu numbers instead of the cpu
> number within the cpuset.
What happens when an application (or user) looks in /proc/cpuinfo?
And how does /sys/.../cpus match? Also what happens when you hotplug out
a cpu and your memory map becomes discontiguous?
Anton
next prev parent reply other threads:[~2004-09-24 1:21 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-10 8:52 [rfc][patch] 1/2 Additional cpuset features Simon Derr
2004-09-11 8:08 ` Paul Jackson
2004-09-23 19:43 ` Christoph Lameter
2004-09-23 23:41 ` Paul Jackson
2004-09-24 0:06 ` Christoph Lameter
2004-09-24 1:13 ` Paul Jackson
2004-09-24 1:17 ` Anton Blanchard [this message]
2004-09-24 14:41 ` Robin Holt
2004-09-24 16:07 ` Paul Jackson
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=20040924011751.GA20592@krispykreme \
--to=anton@samba.org \
--cc=christoph@lameter.com \
--cc=linux-kernel@vger.kernel.org \
--cc=pj@sgi.com \
--cc=simon.derr@bull.net \
/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