* [LTP] [PATCH] numa01: fix the wrong method of getting numa nodes number
@ 2012-11-23 7:40 Wanlong Gao
2012-11-28 3:31 ` Wanlong Gao
0 siblings, 1 reply; 2+ messages in thread
From: Wanlong Gao @ 2012-11-23 7:40 UTC (permalink / raw)
To: LTP
Fix the method of getting the number of numa nodes.
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
---
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
--
1.8.0
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [LTP] [PATCH] numa01: fix the wrong method of getting numa nodes number
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
0 siblings, 0 replies; 2+ messages in thread
From: Wanlong Gao @ 2012-11-28 3:31 UTC (permalink / raw)
To: LTP
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-11-28 4:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox