public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] NUMA system and get_a_numa_node()
@ 2014-11-13  7:13 Han Pingtian
  2014-11-26 12:53 ` Cyril Hrubis
  0 siblings, 1 reply; 7+ messages in thread
From: Han Pingtian @ 2014-11-13  7:13 UTC (permalink / raw)
  To: ltp-list

Hey there,

We have a system which only has one NUMA node. When trying to run ksm02
on it, becase the code calling get_allowed_nodes() with a count 2 as
below:

 972 /* Warning: *DO NOT* use this function in child */
 973 unsigned int get_a_numa_node(void (*cleanup_fn) (void))
 974 {              
 975         unsigned int nd1, nd2;
 976         int ret; 
 977                        
 978         ret = get_allowed_nodes(0, 2, &nd1, &nd2);
 979         switch (ret) { 
 980         case 0:
 981                 break;
 982         case -3:
 983                 tst_brkm(TCONF, cleanup_fn, "requires a NUMA system.");

it always failed with "requires a NUMA system.".

I think a NUMA system may have only one node, right? If so, could we
change the count to 1?

Thanks in advance!


------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-11-28  7:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-13  7:13 [LTP] NUMA system and get_a_numa_node() Han Pingtian
2014-11-26 12:53 ` Cyril Hrubis
2014-11-27  2:42   ` Han Pingtian
2014-11-27  3:06     ` Wanlong Gao
2014-11-27  7:45       ` Han Pingtian
2014-11-27  8:11         ` Wanlong Gao
2014-11-28  6:44           ` Han Pingtian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox