Journal
Thoughts, theories, and deep dives into software engineering and cybersecurity.
NUMA-Aware Scheduling and Allocation: Practical Techniques for Latency-Sensitive Servers
Practical techniques for NUMA-aware scheduling and memory allocation that reduce tail latency in latency-sensitive serve...
Microarchitectural Timing Side Channels: Identifying, Measuring, and Mitigating Leakage
Practical guide to spotting and addressing timing side channels caused by microarchitectural state. Covers where leaks a...
Speculative Execution Effects on Software Performance: When to Trust Branch Prediction
Speculative execution and branch prediction dramatically affect real-world performance. This article explains when to re...
Designing Low-Latency Inter-Thread Communication Without Locks
Techniques for lock-free inter-thread communication reduce latency and jitter in real-time systems, high-frequency tradi...
Optimizing Data Layout: Struct of Arrays vs Array of Structs in High-Performance Code
Choosing between struct of arrays and array of structs changes memory access, vectorization, and cache behavior. This ar...
Prefetching Strategies for Irregular Access Patterns: Compiler and Manual Approaches
Prefetching for irregular memory patterns targets linked data, graphs, and sparse matrices where hardware misses dominat...
Efficient Use of Hardware Performance Counters for Actionable Profiling
Hardware performance counters provide low-overhead, high-fidelity insights into CPU and memory behavior. This article sh...
Vectorization Pitfalls: Writing SIMD-Friendly Code Beyond Compiler Auto-Vectorization
Practical guide to writing SIMD-friendly code beyond trusting auto-vectorization: common pitfalls, manual strategies, an...
Reducing False Sharing in Multicore Programs: Detection and Remediation Patterns
Practical techniques to find and remove false sharing in multicore code. Covers where false sharing shows up, detection...