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 [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
