From: Zhouping Liu <zliu@redhat.com>
To: gaowanlong@cn.fujitsu.com
Cc: LTP List <ltp-list@lists.sourceforge.net>
Subject: Re: [LTP] [PATCH] numa/numa01.sh: fixed errors under noncontinuous numa nodes list
Date: Sun, 13 Jan 2013 20:55:19 -0500 (EST) [thread overview]
Message-ID: <1178258988.5385396.1358128519932.JavaMail.root@redhat.com> (raw)
In-Reply-To: <50F35EA4.6070508@cn.fujitsu.com>
----- 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
>
> Thanks,
> Wanlong Gao
--
Thanks,
Zhouping
------------------------------------------------------------------------------
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
next prev parent reply other threads:[~2013-01-14 1:55 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 [this message]
2013-01-14 2:08 ` Wanlong Gao
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=1178258988.5385396.1358128519932.JavaMail.root@redhat.com \
--to=zliu@redhat.com \
--cc=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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.