Skip to content

make-disk-image: use nocache for smaller memory footprint#1234

Draft
Lassulus wants to merge 1 commit intomasterfrom
nocache
Draft

make-disk-image: use nocache for smaller memory footprint#1234
Lassulus wants to merge 1 commit intomasterfrom
nocache

Conversation

@Lassulus
Copy link
Copy Markdown
Collaborator

No description provided.

Set dirty_bytes and dirty_background_bytes to low thresholds (10MB/5MB)
before copying the nix store into the VM image. This forces the kernel
to write back dirty pages almost immediately instead of letting them
accumulate. Clean page cache is evicted automatically under memory
pressure, so this prevents OOM even when copying files larger than
available VM RAM.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant