Demikernel: A library OS for kernel-bypass devices, now with Rust TCP/IP stack
Demikernel
The Demikernel is a library operating system architecture designed for use with kernel-bypass I/O devices. The Demikernel architecture offers a uniform system call API across kernel-bypass technologies (e.g., RDMA, DPDK) and OS functionality (e.g., a user-level networking stack for DPDK). Demeter OS is our first Demikernel OS, currently in the prototype stage.
To read more about the motivation behind the Demikernel, check out this blog post.
To get details about the system, read our HotOS paper.
Source-code Organization
Application wanting to use the Demikernel/Demeter OS should include header files from include/dmtr
. Most of the Demeter libOS code is contained in src/c++/libos
. Example applications that work with the Demikernel API are in src/c++/apps/
and submodules/redis-*/
.
include/dmtr/
- Demikernel/Demeter header filesscripts/
- scripts for using the Demikernel/Demeter OSbuild/
- build scriptscmake/
- cmake build scriptsrun/
- scripts for running experimentssetup/
- scripts for setting up environment to use the Demikernel
src/c++/
- most of the Demikernel/Demeter libOS codeapps/
- C++ Demikernel example appsecho/
- A simple multi-client echo server
latency/
- performance measurement code for measuring latencies of various componentslibos/
- All Demikernel/Demeter libOS componentscommon/
- code common to all libOSes regardless of kernel-bypass device. Implements functionality across queues.lwip/
- simple DPDK libOS based on the lwIP stack.posix/
- libOS without kernel-bypass using the POSIX API and the Linux kernel for I/Ordma/
- RDMA libOS using two-sided operations to implements Demikernel queuesrdmacm-common/
spdk
- simple libOS that implements a single log file on a SPDK drive. (untested)
submodules
- Demikernel/Demeter external dependencies and example applicationsHeap-Layers/
- needed by HoardHoard/
- unmodified Hoard memory allocatorHoardRdma
- modified version of Hoard that registers all of the heap for RDMA accessdpdk/
- version of DPDK used for Demikernel/Demeterredis-lwip
- modified Redis to work with the Demikernel interfaces, set up to compile with lwIP libOSredis-posix
- modified Redis to work with the Demikernel interfaces, set up to compile with POSIX libOSredis-rdma
- modified Redis to work with the Demikernel interfaces, set up to compile with RDMA libOSredis-vanilla
- unmodified version of Redisspdk
- version of SPDK used for spdk libOStapir-lwip
- version of TAPIR modified to run with Demikernel syscall API, set up to compile with lwIP libOStapir-posix
- version of TAPIR modified to run with Demikernel syscall API, set up to compile with POSIX libOStapir-rdma
- version of TAPIR modified to run with Demikernel syscall API, set up to compile with RDMA libOS
Demikernel Syscall API
Refer to syscall documentation API.md
Building
See BUILDING.md for build instructions.
Code of Conduct
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
Contributing
See CONTRIBUTING.md for details regarding how to contribute to Demikernel.
Usage Statement
The Demikernel is prototype code. As such, we provide no guarantees that it will work and you are assuming any risks with using the code. We welcome comments and feedback. Please send any questions or comments to irene.zhang@microsoft.com. By sending feedback, you are consenting to your feedback being used in the further development of this project.
from Hacker News https://ift.tt/2MSyZgj