It’s Time for a Modern Synthesis Kernel – Embedded in Academia
Alexia Massalin’s 1992 PhD thesis has long been one of my favorites. It promotes the view that operating systems can be much more efficient than then-current operating systems via runtime code generation, lock-free synchronization, and fine-grained scheduling. In this piece we’ll only look at runtime code generation, which can be cleanly separated from the other aspects of this work. The promise of kernel-mode runtime code generation is that we can have very fast, feature-rich operating systems by, for example, not including code implementing generic read() and write() system calls, but rather synthesizing code for these operations each time a file is opened. The idea is that at file open time, the OS has a lot of information that it can use to generate highly specialized code, eliding code paths that are provably not going to execute. Runtime code generation was a well-known idea in 1992, but it wasn’t used nearly as widely as it is today. In 2019, of course, just-in-time compilers ar
It’s Time for a Modern Synthesis Kernel – Embedded in Academia It’s Time for a Modern Synthesis Kernel Alexia Massalin’s 1992 PhD thesis has long been one of my favorites. It promotes the view that operating systems can be much more efficient than then-current operating systems via runtime code generation, lock-free synchronization, and fine-grained scheduling. In this piece we’ll only look at runtime code generation, which can be cleanly separated from the other aspects of this work. Runtime Code Generation in Ring 0 The promise of kernel-mode runtime code genera
saved by
related reading
- How to Optimize a CUDA Matmul Kernel for cuBLAS-like Performance: a Worklogsiboehm.com
- abseil / Performance Hintsabseil.io
- The "Basics" | Putting the "You" in CPUcpu.land
- A Gentle Introduction to LLVM IR · mcyoungmcyoung.xyz
- The little book about OS developmentlittleosbook.github.io
- Compiling Models to Megakernels - by Luminal and Joe Fiotiblog.luminal.com
- Retire the Abstractionshazyresearch.stanford.edu
- Many can write faster asm than the compiler, yet don't. Why? — LessWronglesswrong.com
- Writing an OS in Rustos.phil-opp.com
- research!rsc: Hardware Memory Models (Memory Models, Part 1)research.swtch.com
- A Tiny Compiler for Data-Parallel Kernelshealeycodes.com
- ⭐️ Fast LLM Inference From Scratchandrewkchan.dev