compio-rs / compio-rs/compio

Feature request: OOM handling

Open
#996 2 comments 0 reactions 0 assignees View on GitHub
difficulty: medium enhancement
Dominant language
Rust
Stars
1.9k
Forks
133
Avg merge
1d 4h
Merged PRs (30d)
20

Description

I am currently writing a filesystem application that runs on end-user devices and I would like to take advantage of io_uring. This often means that memory usage is very unpredictable and OOM conditions may happen often. In this case, I do not want to leave my filesystem in an inconsistent state because some computation (e.g. IO submissions, task spawning, and so on) panics.

Is it possible to have the compio library return errors when an out-of-memory condition happens?

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the compio io_uring paths and the APIs involved in IO submissions and task spawning. Determine where out-of-memory conditions can currently panic and whether those entry points can return errors without leaving filesystem operations inconsistent. Done means the supported behavior and scope are defined, with tests covering OOM handling.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
operating-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.