Re: [rfc][patch] Memory Binding API v0.3 2.5.41
From: William Lee Irwin III <hidden>
Date: 2002-10-10 11:26:21
Also in:
lkml
At some point in the past, Matthew Dobson wrote:
quoted
quoted
+asmlinkage long sys_mem_setbinding(pid_t pid, unsigned long memblks, + unsigned int behavior)
On Thu, 2002-10-10 at 11:06, Arjan van de Ven wrote:
quoted
Do you really think exposing low level internals as memory layout / zone split up to userspace is a good idea ? (and worth it given that the VM already has a cpu locality preference?)
On Thu, Oct 10, 2002 at 12:22:51PM +0100, Alan Cox wrote:
At least in the embedded world that level is a good idea. I'm not sure about the syscall interface. An "unsigned long" mask of blocks sounds like a good way to ensure a broken syscall in the future
Seconded wrt. memblk bitmask interface. IMHO this level of topology exposure is not inappropriate. These kinds of details are already exported (unidirectionally) by /proc/, if not dmesg(1) and in my mind there is neither an aesthetic nor practical barrier to referring to these machine features in userspace API's in an advisory way (and absolutely not any kind of reliance). It's simply another kind of request, and one which several high-performance applications would like to make. I would also be interested in hearing more of how embedded applications would make use of this, as my direct experience in embedded systems is somewhat lacking. Also, I've already privately replied with some of my stylistic concerns, including things like the separability of the for_each_in_zonelist() cleanup bundled into the patch and a typedef or so. Bill -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/