rustix icon indicating copy to clipboard operation
rustix copied to clipboard

Support for NUMA syscalls

Open krh opened this issue 1 year ago • 3 comments

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?

krh avatar Nov 19 '23 14:11 krh

It's in scope, just not implemented yet. An MR would be welcome!

sunfishcode avatar Nov 19 '23 14:11 sunfishcode

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.

krh avatar Nov 20 '23 16:11 krh

https://github.com/sunfishcode/linux-raw-sys/pull/96

krh avatar Nov 20 '23 16:11 krh