Skip to contentSkip to conversation

Unexpected warning on non-NUMA host

DISCUSSION Kazunori Asayama 2 participants 4 messages Jan 9, 2009 – Jan 14, 2009

lore
Share & tools
lore
#0 lore raw

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:

Quoted 1 line

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?

Regards,

Signature · 3 lines
(ASAYAMA Kazunori
  ([email protected]))
t
#1 lore raw

Asayama,

Quoted 15 lines · Kazunori Asayama

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:

Quoted 1 line

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.

Quoted 4 lines

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

Signature · 4 lines
Cliff Wickman
Silicon Graphics, Inc.
[email protected]
(651) 683-3824
#2 lore raw

Cliff,

Quoted 7 lines · Cliff Wickman

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?

Sounds good for me.

Thanks,

Signature · 3 lines
(Kazunori Asayama
  ([email protected]))
t
#3 lore raw
Quoted 9 lines · Kazunori Asayama

Cliff,

Quoted 6 lines · Cliff Wickman

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.

Quoted 3 lines
Quoted 1 line

Any objection?

Sounds good for me.

That change is in the numactl-2.0.3-rc1.tar.gz

There will be more changes soon, as Andi and Bernhard have posted some patches that I haven't gotten to yet.

-Cliff

Signature · 4 lines
Cliff Wickman
Silicon Graphics, Inc.
[email protected]
(651) 683-3824