hyperlight-dev / hyperlight-dev/hyperlight

Allow resizing scratch region

Open
#1,767 0 comments 0 reactions 0 assignees View on GitHub
lifecycle/confirmed
Dominant language
Rust
Stars
4.7k
Forks
208
Avg merge
1d 7h
Merged PRs (30d)
47

Description

Currently, the size of the scratch region is set when a snapshot is first created from a binary, and it can never be changed. This is unfortunate, because many workloads use a lot of memory during an early initialisation phase, and then very little memory in repeated runtime phases that occur after another snapshot. It would be nice to offer some API that changed the size of the scratch region on a snapshot so that we could avoid this situation, since the size of the scratch region is directly linked to performance, especially on certain kernel/hypervisor combinations.

Contributor guide

Open the contributing guide

Research direction

The issue names no files, tests, or entry points. Start by locating snapshot creation and scratch-region sizing in the Rust code, then determine the API and lifecycle constraints for resizing. Done means a supported way to change a snapshot's scratch-region size without recreating it, with behavior validated for the described initialization and runtime phases.

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.