Re: [PATCH] core-count: A new program to count the number of cpu cores ( (original) (raw)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
From: | Pádraig Brady |
---|---|
Subject: | Re: [PATCH] core-count: A new program to count the number of cpu cores (was: [PATCH] md5: accepts a new --threads option) |
Date: | Sun, 25 Oct 2009 21:21:48 +0000 |
User-agent: | Thunderbird 2.0.0.6 (X11/20071008) |
Giuseppe Scrivano wrote:
Jim Meyering <address@hidden> writes:
>>> If nobody is already working on it, I can start doing it. >>> >>> What about the name? "ncores" or "ncpus" are fine? >> Here are some longer candidates: >> >> count-cores >> count-cpus >> cpu-count >> core-count > Actually, "cpu" seems too ambiguous, so let's rule those out. > That leaves: > > ncores > count-cores > core-count > > Any others? > Preferences?
I went for `core-count'. This is the first version of the new program, it is a simple wrapper around the gnulib nproc module, thanks to Bruno to have done the real work.
Any comment?
I was pondering this and looking around as to whether an existing command could get an option to support this as I was a bit worried that a whole command was overkill.
Perhaps this new command could get more logic in future, though I can't think of anything obvious at present. In any case I don't like "core" in the name as there can be multiple processing units per core. I vote for "nproc".
diff --git a/tests/core-count/cpuinfo b/tests/core-count/cpuinfo + +test (grep′coreid′/proc/cpuinfo∣wc−l)−eq(grep '^core id' /proc/cpuinfo | wc -l) -eq (grep′coreid′/proc/cpuinfo∣wc−l)−eqcores || fail=1
grep '^proc'
cheers, Pádraig.
- Re: [PATCH] md5: accepts a new --threads option, (continued)
* Re: [PATCH] md5: accepts a new --threads option, Pádraig Brady, 2009/10/17
* Re: [PATCH] md5: accepts a new --threads option, Jim Meyering, 2009/10/18
* Re: [PATCH] md5: accepts a new --threads option, Giuseppe Scrivano, 2009/10/18
* Re: [PATCH] md5: accepts a new --threads option, Jim Meyering, 2009/10/18
* Re: [PATCH] md5: accepts a new --threads option, Giuseppe Scrivano, 2009/10/18
* Re: [PATCH] md5: accepts a new --threads option, Jim Meyering, 2009/10/18
* Re: [PATCH] md5: accepts a new --threads option, Giuseppe Scrivano, 2009/10/25
* Re: [PATCH] md5: accepts a new --threads option, Jim Meyering, 2009/10/25
* Re: [PATCH] md5: accepts a new --threads option, Jim Meyering, 2009/10/25
* [PATCH] core-count: A new program to count the number of cpu cores (was: [PATCH] md5: accepts a new --threads option), Giuseppe Scrivano, 2009/10/25
* Re: [PATCH] core-count: A new program to count the number of cpu cores (was: [PATCH] md5: accepts a new --threads option),Pádraig Brady <=
* Re: [PATCH] core-count: A new program to count the number of cpu cores, Bruno Haible, 2009/10/25
* Re: [PATCH] core-count: A new program to count the number of cpu cores, Giuseppe Scrivano, 2009/10/25
* Re: [PATCH] core-count: A new program to count the number of cpucores, Gilles Espinasse, 2009/10/26
* Re: [PATCH] core-count: A new program to count the number of cpucores, Pádraig Brady, 2009/10/26
* Re: [PATCH] core-count: A new program to count the number of cpucores, Paolo Bonzini, 2009/10/26
* Re: [PATCH] core-count: A new program to count the number of cpucores, Giuseppe Scrivano, 2009/10/26
* Re: [PATCH] core-count: A new program to count the number of cpucores, Bruno Haible, 2009/10/26
* Re: [PATCH] core-count: A new program to count the number of cpucores, Pádraig Brady, 2009/10/27
* Re: [PATCH] core-count: A new program to count the number of cpu cores, Bruno Haible, 2009/10/26
* Re: [PATCH] core-count: A new program to count the number of cpu cores, Giuseppe Scrivano, 2009/10/27
- Prev by Date:Re: thread stack size
- Next by Date:Re: [PATCH] core-count: A new program to count the number of cpu cores
- Previous by thread:[PATCH] core-count: A new program to count the number of cpu cores (was: [PATCH] md5: accepts a new --threads option)
- Next by thread:Re: [PATCH] core-count: A new program to count the number of cpu cores
- Index(es):