rustix
rustix copied to clipboard
Support for NUMA syscalls
Any plans for adding support for NUMA syscalls?
extern long get_mempolicy(int *mode, unsigned long *nmask,
unsigned long maxnode, void *addr, unsigned flags);
extern long mbind(void *start, unsigned long len, int mode,
const unsigned long *nmask, unsigned long maxnode, unsigned flags);
extern long set_mempolicy(int mode, const unsigned long *nmask,
unsigned long maxnode);
extern long migrate_pages(int pid, unsigned long maxnode,
const unsigned long *frommask,
const unsigned long *tomask);
extern long move_pages(int pid, unsigned long count,
void **pages, const int *nodes, int *status, int flags);
I could write up a MR for this, unless it's something that's been deemed out of scope?
It's in scope, just not implemented yet. An MR would be welcome!
Ok, #938 is a start, but doesn't add all the syscalls, or even all the modes of get_mempolicy
. It also dependes on a PR for linux-raw-sys.
https://github.com/sunfishcode/linux-raw-sys/pull/96