Skip to contentSkip to conversation

NUMA Questions

DISCUSSION Andi Kleen 2 participants 2 messages May 24, 2004 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Andi Kleen

author
#1 lore raw

Scott Robert Ladd <[email protected]> writes:

[hmm, didn't I answer this already?]

Quoted 2 lines

Can anyone shed light on this?

The system calls were still missing on x86-64 in 2.6.7rc1.

Apply this small patch.

-Andi

include/asm-x86_64/unistd.h +3 -3
@@ -535,11 +535,11 @@
 #define __NR_vserver		236
 __SYSCALL(__NR_vserver, sys_ni_syscall)
 #define __NR_mbind 		237
-__SYSCALL(__NR_mbind, sys_ni_syscall)
+__SYSCALL(__NR_mbind, sys_mbind)
 #define __NR_set_mempolicy 	238
-__SYSCALL(__NR_set_mempolicy, sys_ni_syscall)
+__SYSCALL(__NR_set_mempolicy, sys_set_mempolicy)
 #define __NR_get_mempolicy 	239
-__SYSCALL(__NR_get_mempolicy, sys_ni_syscall)
+__SYSCALL(__NR_get_mempolicy, sys_get_mempolicy)
 #define __NR_mq_open 		240
 __SYSCALL(__NR_mq_open, sys_mq_open)
 #define __NR_mq_unlink 		241
#2 lore raw
Quoted 1 line · Andi Kleen

[hmm, didn't I answer this already?]

Yes, you did, and I applied the patch earlier, prior to rebuilding the kernel and (of course) updating the kernel headers. Then I recompiled the numa utilities, with the result I detailed in the original post. I've just double-checked that /usr/include/asm/unistd.h includes your patch.

..Scott

Signature · 3 lines
Scott Robert Ladd
Coyote Gulch Productions (http://www.coyotegulch.com)
Software Invention for High-Performance Computing