All of lore.kernel.org
 help / color / mirror / Atom feed
From: Cyril Hrubis <chrubis@suse.cz>
To: ltp-list@lists.sourceforge.net
Subject: Re: [LTP] NUMA system and get_a_numa_node()
Date: Wed, 26 Nov 2014 13:53:36 +0100	[thread overview]
Message-ID: <20141126125336.GA1062@rei> (raw)
In-Reply-To: <20141113071324.GA2809@localhost.localdomain>

Hi!
> 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?

Hmm, are you sure that the testcases are actually applicable to a system
with only one node?

Because what the testcases do in the setup is to write 1 to
/sys/kernel/mm/ksm/merge_across_nodes so I would expect that the test
needs at least two nodes...

-- 
Cyril Hrubis
chrubis@suse.cz

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

  reply	other threads:[~2014-11-26 12:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-13  7:13 [LTP] NUMA system and get_a_numa_node() Han Pingtian
2014-11-26 12:53 ` Cyril Hrubis [this message]
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

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=20141126125336.GA1062@rei \
    --to=chrubis@suse.cz \
    --cc=ltp-list@lists.sourceforge.net \
    /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.