Tagged articles
NAPI
15 articles · Page 1 of 1
This guide introduces the LocalHandle leak detection tool for HarmonyOS ArkTS, which uses smart instrumentation to identify memory leaks at creation time by checking for active handle scopes, reducing debugging from days to minutes with 100% accuracy and direct code-line navigation in DevEco Studio.
ArkTSDebugging ToolsDevEco Studio
0 likes · 15 min read

Taihe is a HarmonyOS cross-language tool that replaces 200+ lines of manual NAPI binding code with a 4-line IDL definition, generating type-safe C++, ArkTS, and NAPI bindings through a compiler pipeline with stable ABI and language projections.
ArkTSC++HarmonyOS
0 likes · 18 min read

This article explains why traditional interrupt‑driven network I/O stalls under high traffic, introduces the NAPI (New API) mechanism that combines interrupt wake‑up with batch polling, details its core data structures and scheduling functions, and provides step‑by‑step configuration and tuning guidance to achieve efficient, low‑latency packet processing on Linux servers.
LinuxNAPINetworking
0 likes · 35 min read

The article dissects intranode latency in high‑frequency trading systems, tracing the packet journey from the NIC through the kernel, socket and user‑space to the strategy thread, and explains how interrupts, CPU affinity, RSS, Nagle, UDP and kernel‑bypass techniques affect microsecond‑level jitter and tail latency.
CPU affinityNAPITCP_NODELAY
0 likes · 13 min read

This article explains how to create and bind native UI components in HarmonyOS by leveraging ArkUI's C/C++ API, covering project setup, library linking, module interface acquisition, node creation, attribute setting, and integration with ArkTS through NodeContent and ContentSlot.
ArkUIC APIC++
0 likes · 10 min read

This article explains how Linux receives network packets, detailing the NIC’s DMA transfer, hardware and software interrupt handling, NAPI scheduling, kernel processing, and the subsequent traversal through the IP and transport layers up to the user‑space application.
LinuxNAPIPacket Reception
0 likes · 27 min read

This article provides a comprehensive guide on Rust build scripts, the role of sys crates, foreign function interfaces, and cross‑compilation techniques, illustrating how to create and use NAPI‑sys and libsodium‑sys crates, manage Cargo instructions, and leverage tools like Zig for seamless multi‑platform builds.
Build ScriptCross-compilationFFI
0 likes · 21 min read

This article explains the layered architecture of the Linux network subsystem, the TCP/IP model implementation, how hardware and soft interrupts are registered and processed, the role of ksoftirqd and NAPI, and the complete send/receive packet flow from NIC to protocol stack.
LinuxNAPIinterrupt handling
0 likes · 28 min read

This article explains the Linux network subsystem architecture, the TCP/IP layering, and the complete path a packet takes from NIC interrupt handling through soft‑irqs, NAPI, and kernel threads to the protocol stack, while also detailing driver registration and send/receive workflows.
Kernel DriversLinuxNAPI
0 likes · 26 min read

This article explains the layered architecture of the Linux network stack, maps the TCP/IP model to Linux implementation, and details how hardware and soft interrupts, ksoftirqd threads, and NAPI cooperate with driver initialization to process packet reception and transmission.
Driver DevelopmentLinuxNAPI
0 likes · 23 min read

This article provides an in‑depth exploration of Linux’s epoll mechanism, covering its blocking behavior, kernel‑level processing, NAPI optimization, comparisons with select/poll, and practical insights into I/O multiplexing, helping backend engineers understand performance characteristics and design efficient network services.
EpollI/O multiplexingLinux kernel
0 likes · 15 min read

This article explains how Linux implements the TCP/IP model to encapsulate, transmit, and receive network packets, covering OSI vs TCP/IP layers, the Linux network stack structure, NAPI interrupt mitigation, and the step‑by‑step processing of packets in both directions.
LinuxNAPInetwork-stack
0 likes · 12 min read

This article provides a comprehensive, illustrated explanation of how Linux receives network packets—from hardware DMA and interrupt handling through soft‑interrupt processing, NAPI polling, protocol stack registration, and finally delivery to user‑space via recvfrom—detailing each kernel component and relevant source code.
LinuxNAPIPacket Reception
0 likes · 48 min read

This article explains how Linux kernels receive network packets—from NIC hardware interrupts through NAPI polling, kernel TCP/IP processing, and finally to user‑space sockets—while also covering interrupt handling, buffer tuning, and performance‑optimizing techniques for SREs.
LinuxNAPINetworking
0 likes · 12 min read

Through kernel‑level analysis we discovered that Redis packet loss stemmed from rx_dropped buffer exhaustion caused by interrupt‑handling backlogs, and resolved it by assigning NIC interrupts to specific cores on one NUMA node while binding Redis processes to the other, eliminating loss under dual‑10 GbE load.
InterruptLinux kernelNAPI
0 likes · 33 min read
