Commit 1c3238a
committed
make-disk-image: limit dirty page accumulation to prevent OOM
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.1 parent c4d34f2 commit 1c3238a
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
158 | 165 | | |
159 | 166 | | |
160 | 167 | | |
| |||
0 commit comments