Commit b292b51
petri: enable THP for shared memory and on Windows (#4008)
Petri gated transparent huge pages behind private anonymous memory and a
Linux host, since that was the only backing where THP had any effect.
The membacking layer now marks shared (file/memfd) guest RAM as
THP-eligible and implements Windows soft large pages, so those
restrictions are stale and needlessly suppress THP for VMs backed by
shared memory or running on Windows hosts.
Drop the private-memory and Linux-host conditions and pass the requested
THP setting straight through; membacking already suppresses it where it
genuinely does not apply, such as explicit hugetlb backings. Update the
MemoryConfig docs to match.
This should improve test performance on Windows hosts.
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 8d243e0c-9ec6-4169-acd6-37d6afc78c8a1 parent 087ceea commit b292b51
3 files changed
Lines changed: 12 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2345 | 2345 | | |
2346 | 2346 | | |
2347 | 2347 | | |
2348 | | - | |
| 2348 | + | |
2349 | 2349 | | |
2350 | 2350 | | |
2351 | | - | |
2352 | | - | |
2353 | | - | |
2354 | | - | |
| 2351 | + | |
| 2352 | + | |
| 2353 | + | |
| 2354 | + | |
| 2355 | + | |
| 2356 | + | |
2355 | 2357 | | |
2356 | 2358 | | |
2357 | 2359 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
488 | 488 | | |
489 | 489 | | |
490 | 490 | | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | | - | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
496 | 496 | | |
497 | 497 | | |
498 | 498 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
361 | | - | |
362 | 361 | | |
363 | 362 | | |
364 | 363 | | |
| |||
383 | 382 | | |
384 | 383 | | |
385 | 384 | | |
386 | | - | |
387 | 385 | | |
388 | 386 | | |
389 | 387 | | |
| |||
0 commit comments