oxidecomputer / oxidecomputer/hubris

`net` stack size seems awful big

Open
#1,924 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

developer-experience netstack
Dominant language
Rust
Stars
3.6k
Forks
239
Avg merge
1d 12h
Merged PRs (30d)
23

Description

@lzrd just had to bump the stack size on the gimletlet/app-mgmt demo's net task to 3328 bytes. That's quite a bit larger than I would naively expect. This issue is a reminder to look into what data net is keeping on the stack, and see if we can move it into statics where it's more easily accounted for.

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 with the net task in the gimletlet/app-mgmt demo and inspect which data it keeps on the stack. Done means identifying the stack usage and, where appropriate, moving data into statics so the task needs less stack and its memory use is easier to account for.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
embedded-iot
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.