All of lore.kernel.org
 help / color / mirror / Atom feed
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 09:25:56 +0800	[thread overview]
Message-ID: <50F35EA4.6070508@cn.fujitsu.com> (raw)
In-Reply-To: <d586a4f2cfdf91b3e480c8e275f53fae34a00705.1357732655.git.zliu@redhat.com>

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?

Thanks,
Wanlong Gao

> +            col=2
> +        else
> +            Preferred_node=`echo $nodes_list | cut -d ' ' -f $[$COUNTER+1]`
> +            col=$[$COUNTER+2]
> +        fi
> +
>          numastat > $LTPTMP/numalog
>          extract_numastat other_node $other_node $col || return 1
>          Prev_value=$RC
> -        #echo $Preferred_node
> -        #numactl --cpunodebind=$Preferred_node --localalloc support_numa $ALLOC_1MB
> -        #numactl --preferred=$Preferred_node support_numa $ALLOC_1MB
> -        numactl --preferred=$Preferred_node support_numa $PAUSE &
> +        numactl --preferred=$node support_numa $PAUSE &
>          pid=$!


------------------------------------------------------------------------------
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

  parent reply	other threads:[~2013-01-14  1:25 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 [this message]
2013-01-14  1:55   ` Zhouping Liu
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=50F35EA4.6070508@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 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.