microsoft / microsoft/demikernel

[Catpowder] Windows: Allocate DemiBuffers directly from XDP user memory region

Open
#1,438 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Rust
Stars
1.2k
Forks
151
PR merge metrics
No merged PRs in 30d

Description

Context

Currently on send and receive in Catpowder for Windows, DemiBuffer content is copied to/from the allocated XDP umem region. This creates an additional unnecessary copy on the data path.

Proposed Solution

Leverage the XDP umem "headroom" configuration to allocate a pool of DemiBuffers on initialization of the LibOS. On sgaalooc/sgafree, allocate and free buffers directly from the umem pool. On send/receive path, avoid the additional copy by putting/pulling the DemiBuffer packet content directly into/from the Tx/Rx queues.

Alternative Solutions

The solution could be left as is to reduce coupling between components at the cost of the additional copy. Alternatively, DemiBuffer metadata could point to the umem pool, and the metadata/data association could be reformed through some pointer-based lookup on receive.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing Catpowder for Windows initialization, sgaalooc/sgafree, and the send and receive paths described in the issue. Study how the XDP umem headroom, DemiBuffer pool, and Tx/Rx queues are connected. Done means DemiBuffers are allocated from the umem pool and packet content avoids the additional copy on both paths.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
networking, operating-systems, performance
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.