Re: [LTP] [PATCH v2 1/2] [mm] mbind01: not working on 32bit systems

Garrett Cooper
2011-04-10T09:19:49Z

On Sat, Apr 9, 2011 at 9:31 PM, Caspar Zhang <czhang@redhat.com> wrote:
> On 04/09/2011 01:38 PM, Garrett Cooper wrote:
>>> > when executing mem/mbind01 testcase under 32bit systems, it returns
>>> > ENOSYS error, indicating that the test is not suitable for running on
>>> > 32bit systems. This patch checks wordsize before executing the actual
>>> > case.
>>     This error doesn't make sense; it's not documented in the manpage [1].
>>     Are you sure your system actually supports mbind(2)?
>
> Hmmm... Seems CONFIG_NUMA is not set in RHEL6 on x86 systems, so that
> all mempolicy related syscalls not work on this platform. I shouldn't
> simply check the WORDSIZE but need to check the kernel configuration
> option, yet it's kind of difficult from previous discussion[1]...

I wouldn't worry too much about it. If it fails with ENOSYS, I
would just fail with tst_brkm(TCONF, ...).
Thanks,
-Garrett