* [LTP] [PATCH] [mm] cpuset01: stop testing if no numa
@ 2011-04-13 11:12 Caspar Zhang
2011-04-15 15:33 ` Caspar Zhang
0 siblings, 1 reply; 3+ messages in thread
From: Caspar Zhang @ 2011-04-13 11:12 UTC (permalink / raw)
To: LTP List
[-- Attachment #1: Type: text/plain, Size: 341 bytes --]
Since NUMA is only supported by a few types of machines on x86, if no
NUMA support, the numa_count will return 0, this is also acceptable and
should stop the test without give an error.
Signed-off-by: Caspar Zhang <czhang@redhat.com>
---
testcases/kernel/mem/cpuset/cpuset01.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-mm-cpuset01-stop-testing-if-no-numa.patch --]
[-- Type: text/x-patch; name="0001-mm-cpuset01-stop-testing-if-no-numa.patch", Size: 437 bytes --]
diff --git a/testcases/kernel/mem/cpuset/cpuset01.c b/testcases/kernel/mem/cpuset/cpuset01.c
index 10ccde7..4354db8 100644
--- a/testcases/kernel/mem/cpuset/cpuset01.c
+++ b/testcases/kernel/mem/cpuset/cpuset01.c
@@ -179,7 +179,7 @@ void setup(void)
{
tst_require_root(NULL);
- if (count_numa() == 1)
+ if (count_numa() <= 1)
tst_brkm(TCONF, NULL, "required a NUMA system.");
tst_sig(FORK, DEF_HANDLER, cleanup);
TEST_PAUSE;
[-- Attachment #3: Type: text/plain, Size: 434 bytes --]
------------------------------------------------------------------------------
Forrester Wave Report - Recovery time is now measured in hours and minutes
not days. Key insights are discussed in the 2010 Forrester Wave Report as
part of an in-depth evaluation of disaster recovery service providers.
Forrester found the best-in-class provider in terms of services and vision.
Read this report now! http://p.sf.net/sfu/ibm-webcastpromo
[-- Attachment #4: Type: text/plain, Size: 155 bytes --]
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [LTP] [PATCH] [mm] cpuset01: stop testing if no numa
2011-04-13 11:12 [LTP] [PATCH] [mm] cpuset01: stop testing if no numa Caspar Zhang
@ 2011-04-15 15:33 ` Caspar Zhang
2011-04-19 16:34 ` Cyril Hrubis
0 siblings, 1 reply; 3+ messages in thread
From: Caspar Zhang @ 2011-04-15 15:33 UTC (permalink / raw)
To: LTP List
On 04/13/2011 07:12 PM, Caspar Zhang wrote:
>
> Since NUMA is only supported by a few types of machines on x86, if no
> NUMA support, the numa_count will return 0, this is also acceptable and
> should stop the test without give an error.
>
> Signed-off-by: Caspar Zhang <czhang@redhat.com>
> ---
> testcases/kernel/mem/cpuset/cpuset01.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
Hi, any one review this one and get it merged too, or not?
Thanks,
Caspar
------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve
application availability and disaster protection. Learn more about boosting
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-04-19 16:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-13 11:12 [LTP] [PATCH] [mm] cpuset01: stop testing if no numa Caspar Zhang
2011-04-15 15:33 ` Caspar Zhang
2011-04-19 16:34 ` Cyril Hrubis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox