Repository navigation
Commit ad3ad2c
committed
[libpas] Hold small-seg pages longer before decommit
https://bugs.webkit.org/show_bug.cgi?id=328277
rdar://problem/190568833
Reviewed by Yusuke Suzuki and Mark Lam.
This patch gives segregated directories for small segregated pages
an additional epoch-offset, allowing their physical memory to survive
longer after it becomes free.
This epoch-offset is 900ms on Mac (bringing the total epoch deadline
to 1.5s) and 450ms on other platforms (bringing the total to 750ms).
The offset was chosen empirically, and is expected to yield around an
0.5% SP3 improvement on recent macOS platforms, without a significant
memory cost. Increasing the epoch for all pages to the same number gives
a similiar degree of performance uplift, but at a significant memory
cost (>4% on some benchmarks), suggesting that there is not much upside
to increasing the epoch-offset for non-small-segregated pages at this time.
Above ~1s, further increasing the epoch-offset, even for
small-segregated pages, does not give significant performance increases,
but does begin to hurt memory usage as as cold pages are retained for
increasingly long periods of time.
* Source/bmalloc/libpas/src/libpas/pas_page_sharing_participant.c:
add 900ms delay on macOS
* Source/bmalloc/libpas/src/test/TestHarness.cpp:
(EpochIsCounter::EpochIsCounter): override epochs before running test
Canonical link: https://commits.webkit.org/324728@main1 parent 37e9021 commit ad3ad2c
2 files changed
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
42 | 49 | | |
43 | 50 | | |
44 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
222 | 223 | | |
223 | 224 | | |
224 | 225 | | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
225 | 231 | | |
226 | 232 | | |
227 | 233 | | |
| |||
0 commit comments