RE: Using Cpusets with HyperThreads

From: Luck, Tony <tony.luck_at_intel.com>
Date: 2005-09-24 03:26:27
Keith Owens wrote:
>On Fri, 23 Sep 2005 00:00:16 -0700, 
>Paul Jackson <pj@sgi.com> wrote:
>>	cpus 0-127:2    # the even numbered CPUs 0, 2, 4, ... 126
>>	mems 0-63       # all memory nodes 0, 1, 2, ... 63
>>
>>   would include the A sides of an HT enabled system, along with
>>   all the memory, on the first 64 nodes. The colon ':' prefixes the
>>   stride. The stride of '2' in this example means use every other
>>   logical CPU.
>
>I prefer the cron usage for striding, 0-127/2 or even */2.

Perhaps it would be better to avoid all assumptions that even
cpu numbers correspond to "side A" and odd to "side B" and just
provide a syntax that allows you to pick some subset of cores
or threads from a range of sockets and get people used to something
like:

  cpus S(0-15).t==0

to mean get the cpu numbers of all the thread zeros in any cores in
sockets 0-15.

-Tony
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Sat Sep 24 03:27:50 2005

This archive was generated by hypermail 2.1.8 : 2005-09-24 03:27:59 EST