For certain types of applications, offloading a particular set of time-critical tasks to an autonomous core hosted by the Linux kernel may deliver the best possible performance when compared to forcing the entire Linux kernel to meet the most stringent scheduling latency requirements that only those tasks may have. Evenless (EVL for short) is a practical work on finding the best possible integration of such a dedicated software core into the mainline Linux kernel.
EVL re-imagines the venerable dual kernel design by introducing the dual kernel support logic at the heart of Linux, which defines the set of rules to host a guest core. EVL also comes with a real-time core showcasing this integration, which is conceived as a learning tool for discovering the dual kernel technology as much as it aims at excellent performance and usability.
The key technical issue is about introducing a new execution stage in the mainline kernel logic which would represent high priority, out-of-band activities separated from the common work running in-band. This requires a few kernel subsystems to know intimately about the new execution context, which in turn has the following upsides:
the integration is simpler and cleaner, because we don’t need sideways. The point is not about hiding the dual kernel interface from the main logic, but on the contrary to make it a customary interface of the main kernel.
compared to the I-pipe which is the interface currently used by several dual kernel systems such as Xenomai, maintaining the new Dovetail dual kernel interface out-of-tree proved to be a much easier task already, without fundamental conflicts with upstream changes, only marginal adjustments so far.
EVL as a project is about enabling engineers to implement their own flavour of software core running symbiotically with Linux, whatever the specific purpose of this core may be. This ongoing work is composed of:
the Dovetail interface, which introduces a high-priority execution stage for the main kernel, enabling an independent software core to run on it.
the EVL core, a compact autonomous core showcasing Dovetail. It aims at delivering reliable low-latency services to applications which have to meet real-time requirements. It is developed like any ordinary feature of the mainline kernel, making the best of the rich infrastructure we have there for improving the integration.
an in-depth documentation which covers both Dovetail and the EVL core, with many cross-references between them, so that people can implement their software core of choice almost by example.
At the end of the day, the success criteria for EVL should be about exhibiting:
low runtime cost, with excellent real-time performances including on low-end and mid-range hardware, leaving plenty of cycles for running GPOS work concurrently.
high scalability, from single core to dozens of them happily running the time-critical workload in parallel with reliably low latency footprint.
You need to clone two GIT repositories:
the second repository contains the source code of the EVL library, which is the user-space API to the EVL core:
The build recipe is available there.
SPDX license identifiers are used throughout the code to state the licensing terms of each file clearly. This boils down to:
GPL-2.0 for the EVL core in kernel space.
MIT for all code from
libevl, which implements the EVL system call wrappers, a few
utilities and test programs.