From: Wanlong Gao <gaowanlong@cn.fujitsu.com>
To: LTP <ltp-list@lists.sourceforge.net>
Subject: Re: [LTP] [PATCH] numa01: fix the wrong method of getting numa nodes number
Date: Wed, 28 Nov 2012 11:31:10 +0800 [thread overview]
Message-ID: <50B5857E.6080901@cn.fujitsu.com> (raw)
In-Reply-To: <1353656410-4670-1-git-send-email-gaowanlong@cn.fujitsu.com>
On 11/23/2012 03:40 PM, Wanlong Gao wrote:
> Fix the method of getting the number of numa nodes.
>
> Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
FYI, Applied.
Wanlong Gao
> ---
> testcases/kernel/numa/numa01.sh | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/testcases/kernel/numa/numa01.sh b/testcases/kernel/numa/numa01.sh
> index 9790ef4..9b491fc 100644
> --- a/testcases/kernel/numa/numa01.sh
> +++ b/testcases/kernel/numa/numa01.sh
> @@ -807,7 +807,7 @@ test010()
> fi
>
> col=2 #column represents node0 in numastat o/p
> - numnodes=$(ls /sys/devices/system/node | wc -l)
> + numnodes=$(ls /sys/devices/system/node | grep -Ec "node?")
> Preferred_node=$[$[$numnodes/2]-1]
> col=$[$Preferred_node+2]
> numastat > $LTPTMP/numalog
>
------------------------------------------------------------------------------
Keep yourself connected to Go Parallel:
INSIGHTS What's next for parallel hardware, programming and related areas?
Interviews and blogs by thought leaders keep you ahead of the curve.
http://goparallel.sourceforge.net
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
prev parent reply other threads:[~2012-11-28 4:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-23 7:40 [LTP] [PATCH] numa01: fix the wrong method of getting numa nodes number Wanlong Gao
2012-11-28 3:31 ` Wanlong Gao [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=50B5857E.6080901@cn.fujitsu.com \
--to=gaowanlong@cn.fujitsu.com \
--cc=ltp-list@lists.sourceforge.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