Command Palette

Search for a command to run...

Назад к скиллам
скилл № 47095

kernel-bypass-dpdk

Use this skill when the user says 'kernel bypass', 'DPDK', 'poll mode driver', 'ultra-low latency networking', 'userspace networking', 'HFT networking'…

БесплатноБез исполняемых скриптов
j4flmaoот j4flmao★ 47 звёзд на GitHub

Установить kernel-bypass-dpdk в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Kernel Bypass & Ultra-Low Latency (DPDK)

Purpose

Explain how DPDK achieves microsecond-scale networking by bypassing the kernel: poll-mode drivers instead of interrupts, userspace NIC access, hugepages, and CPU core isolation/pinning.

Agent Protocol

Trigger

User phrases: "kernel bypass", "DPDK poll mode driver", "userspace networking", "hugepages", "core pinning for HFT".

Input Context

  • NIC/driver and core topology.
  • Latency vs throughput targets.

Output Artifact

Dataplane design with polling, memory, and core-affinity guidance.

Response Format

Technique: {PMD / hugepages / isolcpus}
Why: {avoids interrupt+context switch}
Tradeoff: {CPU spin cost}

Core Mechanics

In High-Frequency Trading (HFT), a microsecond is an eternity. Traditional Linux networking is too slow because it relies on hardware interrupts and context switching between Kernel Space and User Space.

1. Kernel Bypass (DPDK)

Data Plane Development Kit (DPDK) allows an application to bypass the Linux kernel entirely.

  • The NIC writes packet data directly into a memory buffer in User Space via DMA (Direct Memory Access).
  • The OS networking stack, iptables, and socket buffers are completely skipped.

2. Polling vs Interrupts

Instead of waiting for an interrupt (IRQ) to signal a packet arrived (which costs expensive CPU context switches), the DPDK application dedicates a CPU core to spin in an infinite loop (Polling) checking for new packets. It burns 100% CPU to achieve near-zero latency.

Kernel Bypass Flow Map

%%{init: {"theme": "default", "flowchart": {"useMaxWidth": true}}}%%
flowchart TD
    subgraph StandardNetwork ["Standard Networking (Slow)"]
        A["NIC Interrupts CPU"]
        B["Kernel TCP/IP Stack"]
        C["Context Switch (Copy to User)"]
        D["Trading App"]
    end
    
    subgraph KernelBypass ["Kernel Bypass (DPDK - Fast)"]
        E["NIC (DMA Write)"]
        F["User Space Memory (HugePages)"]
        G["Trading App (Busy Polling)"]
    end
    
    A --> B
    B --> C
    C --> D
    
    E -->|"Direct Memory Access"| F
    G -.->|"Reads Directly"| F

References

Merged Material

Content folded in from overlapping skills and notes.

  • references/kernel-bypass.md — Kernel Bypass (DPDK, AF_XDP)

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • references/kernel-bypass.md

FAQ

Что делает скилл kernel-bypass-dpdk?

Use this skill when the user says 'kernel bypass', 'DPDK', 'poll mode driver', 'ultra-low latency networking', 'userspace networking', 'HFT networking'. Explains kernel-bypass packet processing (DPDK, poll-mode drivers, hugepages). Do NOT use for: in-kernel packet filtering (use niche/low-level/ebpf-xdp-networking) or lock-free data structures (use niche/hft/lock-free-ring-buffers).

Как установить скилл kernel-bypass-dpdk?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл kernel-bypass-dpdk запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить kernel-bypass-dpdk с