Re: Unexpected warning on non-NUMA host

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Asayama,

On Fri, Jan 09, 2009 at 09:23:09PM +0900, Kazunori Asayama wrote:
> Hi all,
> 
> When I ran a program which was linked with libnuma (version 2.0.2) but
> without libnuma function calls on non-NUMA platform, I got an unexpected
> warning message:
> 
> > libnuma: Warning: /sys not mounted or no numa system. Assuming one
> node: No such file or directory
> 
> I'd like to create single program which works on both of NUMA and
> non-NUMA platforms, by switching behavior according to the result of
> numa_available(). So I expect the message above isn't displayed if no
> NUMA library function except numa_available() is called, even if the
> program is linked with libnuma.
> 
> AFAIK, the version 1 didn't show such message until a NUMA function
> except numa_available() was called.
> 
> So is the current behavior unexpected?

libnuma's initialization attempts determine the size of everything
(configured nodes, nodemask size, max cpus, configured cpus, cpu
and node constraints of the current thread)
 
In doing so, it emits the warning you see if it cannot open
/sys/devices/system/node.
It sets  maxconfigurednode = 0
Perhaps it shouldn't complain, but just go on quietly to avoid
the noise on a non-NUMA platform.

Any objection?

-Cliff
-- 
Cliff Wickman
Silicon Graphics, Inc.
cpw@xxxxxxx
(651) 683-3824
--
To unsubscribe from this list: send the line "unsubscribe linux-numa" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]     [Devices]

  Powered by Linux