On 05/11/14 14:15, Yaron Wahl wrote: > Hello, > > Did you guys thought about using API redirection through LD_PRELOAD, to have > a binary using either the kernel network stack or the rump network stack on > top of DPDK or others, by intercepting socket,write,... calls ?
Yes. For redirecting calls from existing binaries you can LD_PRELOAD librumphijack.so, which will work great on a NetBSD host or more or less work on a Linux/glibc host. Chapter 3.12 and Appendix B in "Design and Implementation of the Anykernel and Rump Kernels" are the canonical docs for rumphijack. You can also use rumprun-posix for more complete syscall trapping. At least currently rumprun-posix requires compiling your binaries from source code, though. There was a discussion around the relative merits of each approach very recently in the "help improve rump kernels" thread on this list. Also, since you're probably interested in performance given you're looking at dpdk, this is relevant: https://github.com/rumpkernel/buildrump.sh/issues/63 ------------------------------------------------------------------------------ _______________________________________________ rumpkernel-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/rumpkernel-users
