Tagged articles
ring buffer
28 articles · Page 1 of 1
This article explains how to replace traditional message queues with LMAX Disruptor in a Spring Boot application, covering its core concepts, step‑by‑step implementation, and a demo that demonstrates lock‑free, high‑throughput processing capable of handling six million orders per second.
DisruptorJavaMessage Queue
0 likes · 10 min read

This article analyzes nine lock-free data structures in Android 17, including MPSC/SPSC queues, triple buffers, ring buffers, and a lock-free MessageQueue, detailing their mechanisms, memory layouts, and use cases in audio, graphics, Binder IPC, and Perfetto tracing.
AndroidAudioFlingerMPSC
0 likes · 7 min read

The article examines the design of the new BPF function bpf_sock_splice_pair for intra‑host TCP communication, explains why a single‑copy implementation is suboptimal, introduces a ring‑buffer based two‑copy approach with optional busy‑polling, and presents benchmark results showing up to 7× throughput gains over the baseline.
BPFTCPbusy polling
0 likes · 19 min read

This article explains why Disruptor—a lock‑free, high‑throughput Java queue from LMAX—was chosen over traditional brokers, details its core concepts such as RingBuffer, Sequence, and WaitStrategy, and provides a step‑by‑step SpringBoot demo that can handle up to six million orders per second without pressure.
DisruptorJavaMessage Queue
0 likes · 13 min read

This article explains why circular buffers are essential for efficient data‑stream handling in embedded systems, introduces the open‑source LwRB library, details its memory‑safe and thread‑safe design using C11 atomics, provides core data structures and example code, and compares ring buffers with normal buffers and message queues.
DMAcircular bufferembedded C
0 likes · 14 min read

This article explains the need for circular buffers in embedded development, introduces the lightweight LwRB library, details its memory‑safe and thread‑safe design using C11 atomics, walks through core data structures and two‑stage read/write algorithms, provides complete code examples, and compares ring buffers with normal buffers and message queues.
ring bufferthread safety
0 likes · 15 min read

This article introduces the high‑performance Disruptor library, explains its core concepts such as Ring Buffer, Sequence, and Wait Strategy, and provides a step‑by‑step Java demo—including Maven setup, event model, producer, consumer, and test—showcasing how to build a lock‑free in‑memory message queue.
Concurrent ProgrammingDisruptorJava
0 likes · 11 min read

This article explains AF_XDP, the user-space socket interface for XDP that enables zero-copy packet processing via shared memory (UMEM) and four single-producer/single-consumer ring queues (RX, TX, FILL, COMPLETION), detailing the packet receive/send flow and the BPF_MAP_TYPE_XSKMAP for redirecting packets to user space.
AF_XDPBPF_MAP_TYPE_XSKMAPLinux kernel networking
0 likes · 8 min read

This article explains the Linux network interface card packet reception flow, how to identify and interpret RX errors, dropped packets and overruns, and provides practical commands and tuning methods such as adjusting ring buffers, IRQ affinity, RSS/RPS, and netdev_max_backlog to resolve packet loss.
LinuxPerformance Tuninginterrupts
0 likes · 12 min read

This article introduces the high‑performance Disruptor library, explains its core concepts such as Ring Buffer, Sequencer and Wait Strategies, and provides a step‑by‑step Java demo showing how to build a producer‑consumer queue without external brokers.
ConcurrencyDisruptorJava
0 likes · 11 min read

This article introduces the high‑performance in‑memory queue Disruptor, covering its architecture—including ring buffer, sequence, sequencer, and wait strategies—its key features such as multicast events and lock‑free concurrency, and provides practical tuning advice and a complete Java example.
DisruptorIn-Memory QueuePerformance Tuning
0 likes · 12 min read

This article introduces the Disruptor in‑memory message queue, explains its core components such as Ring Buffer, Sequence, Sequencer and Wait Strategies, describes its distinctive features like multicast events and lock‑free concurrency, and provides tuning guidelines and a complete Java example.
DisruptorIn-Memory QueueJava Concurrency
0 likes · 11 min read

This article explains the Linux network interface card packet‑reception process, how to interpret RX error counters, the difference between dropped and overrun packets, and provides practical commands for diagnosing and tuning ring buffers, interrupts, RSS, RPS, and netdev_max_backlog to reduce packet loss.
Linuxinterruptsnetwork
0 likes · 13 min read

The article explains the motivation, design, and API of the new multi‑producer single‑consumer eBPF Ring Buffer, compares it with perf buffers and other alternatives, and provides complete BPF and userspace code examples demonstrating reservation, commit, and polling of events while preserving ordering across CPUs.
BPF_MAP_TYPE_RINGBUFeBPFkernel programming
0 likes · 8 min read

This article explains how to monitor Go goroutine state transitions without modifying source code by attaching eBPF uprobes to the runtime.casgstatus function, defining a custom data struct, using a ring buffer to deliver events, and processing them in a Go user‑space program.
GoKernel TracingeBPF
0 likes · 16 min read

The article explains the Disruptor—an intra‑process, lock‑free, array‑based queue that achieves millions of operations per second—by covering its core concepts, demo code, source‑code mechanics, performance optimizations such as pre‑allocation and false‑sharing avoidance, and real‑world Vivo iTheme applications with best‑practice tips.
DisruptorJavaProducer-Consumer
0 likes · 29 min read

This article explains the Linux kernel ftrace architecture, covering ring buffer principles and code, tracer implementations (function, function_graph, irq_off), trace events, dynamic and static instrumentation, and kprobe mechanisms, illustrating how tracing is integrated, managed, and optimized for various execution contexts.
LinuxTrace Eventskprobe
0 likes · 15 min read

This article introduces the open‑source Disruptor framework, explains its core concepts such as Ring Buffer, Sequencer, and Wait Strategies, and provides a step‑by‑step Java demo—including Maven setup, event factory, handlers, and a test case—to illustrate building a high‑throughput, low‑latency in‑memory message queue.
DisruptorJavaMessage Queue
0 likes · 11 min read

This article introduces the LMAX Disruptor library, explains its core concepts such as Ring Buffer, Sequencer and Wait Strategy, and provides a step‑by‑step Java demo with full source code to build a fast, lock‑free in‑memory message queue.
Concurrent ProgrammingDisruptorJava
0 likes · 13 min read

This guide explains how a network interface card (NIC) receives packets, the role of DMA, interrupt handling, poll functions, and ring buffers, then details multi‑CPU ring buffer handling, key ethtool commands for statistics, buffer size, queue configuration, and hash‑based flow distribution.
LinuxNICethtool
0 likes · 10 min read

This article explains the Linux NIC packet processing flow, multi‑CPU ring buffer handling, and provides practical ethtool commands for monitoring and tuning ring buffer size, queue count, weight, and hash fields to reduce packet loss and improve network throughput.
LinuxNICethtool
0 likes · 11 min read

This article introduces the open‑source Disruptor library, explains its core concepts such as Ring Buffer, Sequencer, and Wait Strategy, and provides a step‑by‑step Java implementation—including Maven dependency, event model, factory, handler, manager, producer, and test code—demonstrating how to build a fast in‑memory message queue.
ConcurrencyDisruptorJava
0 likes · 10 min read

This article introduces the high‑performance Disruptor library, explains its background, core concepts such as RingBuffer, Sequence, Sequencer, and WaitStrategy, and provides a complete Spring Boot‑based Java demo with code snippets illustrating producers, consumers, and configuration.
DisruptorJavaProducer-Consumer
0 likes · 12 min read


ITPUBSep 14, 2021 · Fundamentals
This article explains how the Linux kernel's printk function stores messages in a ring buffer, how those messages are exposed to user space via dmesg, /proc/kmsg, and klogctl, and why developers should monitor kernel logs to diagnose system issues.
LinuxLoggingdmesg
0 likes · 10 min read

This article explains the Linux network I/O architecture, detailing how TCP sends and receives data, the role of socket buffers, SKB structures, QDisc and ring buffers, and compares various zero‑copy techniques such as read/write, mmap/write, sendfile, splice, tee, DPDK and DMA‑gather approaches.
DPDKLinuxZero-copy
0 likes · 19 min read

This article explains a high‑performance ring buffer implementation for a multi‑threaded producer‑consumer model in Java, covering design choices, atomic index handling, benchmark results, and further optimizations such as cache‑line padding and multi‑buffer sharding.
Java ConcurrencyProducer-Consumeratomicinteger
0 likes · 10 min read

This article explains how the Disruptor framework achieves ultra‑low latency and high throughput in Java by using a ring‑buffer based producer/consumer model, detailing its architecture, sequencing algorithm, wait strategies, and practical code examples for both publishing and processing events.
ConcurrencyDisruptorJava
0 likes · 16 min read

This article introduces Common Table Expressions (CTE) in SQL, explains how they improve query readability and enable writable temporary tables, demonstrates multi‑table modifications, advanced CRUD scenarios, implements a ring‑buffer using CTE, and discusses performance benefits and potential pitfalls.
CTESQLdata modeling
0 likes · 12 min read
