Re: [LTP] [PATCH v9 1/2] cpuset02: Convert the test6 from cpuset_memory_testset.sh to C code

Wei Gao via ltp
2025-03-31T11:31:29Z

On Mon, Mar 31, 2025 at 12:37:51PM +0200, Petr Vorel wrote:
> Hi Wei, Li, Cyril,
>
> ...
> > +static void setup(void)
> > +{
> > + node = tst_get_nodemap(TST_NUMA_MEM, getpagesize() / 1024);
> > + if (node->cnt <= 1)
> > + tst_brk(TCONF, "test requires at least 2 NUMA memory nodes");
> Naive question: why test requires 2 memory nodes? Wouldn't be 1 enough?
Depend on what test's purpuse, if you need check kernel select correct node, i
suppose we need at least 2 nodes. Of course, test case also can support 1 node check.

>
> Kind regards,
> Petr
>