Commit 644aa80
goweft
fix: OOM integration test — force dirty pages for overcommit kernels\n\nbytearray(n) zero-initializes, but kernels with aggressive overcommit\n(GitHub Actions runners) use copy-on-write zero pages without committing\nreal RAM, so the OOM killer never fires and the test returns exit 0.\n\nFix: allocate b'x' * 10MB in a while-True loop. The non-zero bytes\nliteral forces every page dirty, requiring real physical memory commits.\nThe loop runs until the cgroup memory cap triggers OOM kill (exit 137).\n\nPasses locally (weftbox) and should now pass on GitHub Actions runners\nwhere the original bytearray approach returned exit 0.
1 parent 0c37bc4 commit 644aa80
1 file changed
Lines changed: 12 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
62 | 71 | | |
63 | 72 | | |
64 | | - | |
| 73 | + | |
65 | 74 | | |
66 | 75 | | |
67 | 76 | | |
| |||
88 | 97 | | |
89 | 98 | | |
90 | 99 | | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | 100 | | |
95 | 101 | | |
96 | 102 | | |
| |||
0 commit comments