Journal
Thoughts, theories, and deep dives into software engineering and cybersecurity.
Preemptive vs Cooperative Scheduling: When to Choose Each in Embedded OSes
Compare preemptive and cooperative scheduling for embedded operating systems, explaining where each fits, their tradeoff...
Writing a Safe Userspace Device Driver: Isolation, DMA, and Error Handling
Practical guidance for building userspace device drivers that balance performance and safety. Covers isolation technique...
Lock-Free Data Structures for Multicore Systems: Pragmatic Implementation Tips
Practical guidance for implementing lock-free data structures on multicore systems. Covers why lock-free matters in late...
Designing Reliable Checkpoint/Restore Support for Long-Running Processes
Checkpoint/restore enables pausing and resuming long-running processes to minimize downtime, speed recovery, and support...
Implementing Efficient Memory Allocators: Binning, Slab, and Fragmentation Tradeoffs
Practical techniques for building high-performance memory allocators using binning and slab strategies, explaining trade...
Secure Process Launching: Sandboxing, Capability Reduction, and Environment Hygiene
Practical strategies for launching processes securely: sandboxing, dropping capabilities, and maintaining clean environm...
Optimizing Context Switches: Cost Sources and Measurement Strategies
Context switches are a subtle but pervasive performance cost in modern systems. This article breaks down where those cos...
Building a Consistent Shared-Memory IPC Mechanism Between Languages
Designing shared-memory IPC across language boundaries reduces latency and copies, enabling high-throughput services. Th...
Kernel Tracing for Performance Bugs: Using eBPF and Tracepoints Effectively
Kernel tracing with eBPF and tracepoints surfaces elusive performance bugs in production systems. This article explains...