Re: [RFC] cpuset relative memory policies - second choice

From: David Rientjes
Date: Thu Nov 01 2007 - 15:04:00 EST


On Thu, 1 Nov 2007, Paul Jackson wrote:

> We were discussing libnuma here, not glibc. The system call wrappers
> are in glibc. System call wrappers should not be setting optional
> flags. They should just make the system call -- do whatever magic it
> takes to get the provided arguments into the right registers or other
> conventionally determined places, and invoke the necessary machine
> instruction to trap into the kernel.
>

So there is no problem with allowing modal flags to be passed to
set_mempolicy() because glibc will respect the mode actual and pass it
right along to the kernel. That gives the power to the programmer to
specify whether he or she, based on the updated documentation, wants the
nodemask to be interpreted in terms of the system or cpuset.

David
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/