From: Wanlong Gao <gaowanlong@cn.fujitsu.com>
To: Zhouping Liu <zliu@redhat.com>
Cc: LTP List <ltp-list@lists.sourceforge.net>
Subject: Re: [LTP] [PATCH] numa/numa01.sh: fixed errors under noncontinuous numa nodes list
Date: Mon, 14 Jan 2013 10:08:16 +0800 [thread overview]
Message-ID: <50F36890.7050202@cn.fujitsu.com> (raw)
In-Reply-To: <1178258988.5385396.1358128519932.JavaMail.root@redhat.com>
On 01/14/2013 09:55 AM, Zhouping Liu wrote:
>
>
> ----- Original Message -----
>> From: "Wanlong Gao" <gaowanlong@cn.fujitsu.com>
>> To: "Zhouping Liu" <zliu@redhat.com>
>> Cc: "LTP List" <ltp-list@lists.sourceforge.net>
>> Sent: Monday, January 14, 2013 9:25:56 AM
>> Subject: Re: [LTP] [PATCH] numa/numa01.sh: fixed errors under noncontinuous numa nodes list
>>
>> On 01/09/2013 07:58 PM, Zhouping Liu wrote:
>>>
>>> - col=2 #column represents node0
>>> in numastat o/p
>>> - numnodes=$(ls /sys/devices/system/node | grep -Ec
>>> "node[0-9]*")
>>> - Preferred_node=$[$[$numnodes/2]-1]
>>> - col=$[$Preferred_node+2]
>>> + if [ $COUNTER -eq $total_nodes ]; then
>>> + Preferred_node=`echo $nodes_list | cut -d ' ' -f 1`
>>
>> On my non-numa system, it shows that
>> $ numactl --show | grep nodebind | cut -d ':' -f 2
>> 0
>> $ numactl --show | grep nodebind | cut -d ':' -f 2 | cut -d ' ' -f 1
>>
>> Then the $Preferred_node is nothing. Right?
>
> Hi Wanlong,
>
> The command's result executing between inside terminate and file script is different.
> here `echo` command eat the first blank space ' '
>
> please try the following in non-numa:
> $ nodes_list=`numactl --show | grep nodebind | cut -d ':' -f 2`
> $ echo $nodes_list | cut -d ' ' -f 1
> 0
Ok, I see, thank you.
Acked-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
>
>>
>> Thanks,
>> Wanlong Gao
>
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122412
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
prev parent reply other threads:[~2013-01-14 2:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-09 11:58 [LTP] [PATCH] numa/numa01.sh: fixed errors under noncontinuous numa nodes list Zhouping Liu
2013-01-09 12:03 ` Zhouping Liu
2013-01-16 7:16 ` Wanlong Gao
2013-01-14 1:25 ` Wanlong Gao
2013-01-14 1:55 ` Zhouping Liu
2013-01-14 2:08 ` 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=50F36890.7050202@cn.fujitsu.com \
--to=gaowanlong@cn.fujitsu.com \
--cc=ltp-list@lists.sourceforge.net \
--cc=zliu@redhat.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