Repository navigation
Commit 37e9021
committed
[libpas] Decrease untagged medium-seg min-objs from 11 to 7
https://bugs.webkit.org/show_bug.cgi?id=328674
rdar://190851334
Reviewed by Yusuke Suzuki.
Practically this means raising the maximum medium-segregated object size
from 11776B to 18432B.
Before:
```
Page Configs: page payload align min-objs max obj handicap
granule view-cache +MTE
Medium Segregated 131072B 131072B 512B 11 11776B 1.05
16384B cap 12 0
```
after:
```
Page Configs: page payload align min-objs max obj handicap
granule view-cache +MTE
Medium Segregated 131072B 131072B 512B 7 18432B 1.05
16384B cap 12 0
```
This is motivated by the 16k size class, which includes a number of
object-types like MarkedBlocks. Prior to this change, these were
allocated from bitfit heaps.
This is less than ideal especially for aligned 16k objects which often
go down annoying failure routes, e.g. because each view only keeps track
of doesn’t remember whether whether there’s a large enough slot,
without regards to whether or not it’s sufficiently aligned. Segregated
heaps avoid this issue entirely.
I previously raised PAS_MIN_OBJECTS_PER_PAGE from 6 to 12 (and later 11)
largely for the benefit of small heaps; now that we can more easily
control the heap-cutoffs separately, we can bring the medium-segregated
cap back upwards again.
Empirically this seems to have minor top-line benefits for performance
and memory.
No new tests since no behavior change.
* Source/bmalloc/libpas/src/libpas/bmalloc_heap_config.h: MOPP 7->11
Canonical link: https://commits.webkit.org/324727@main1 parent b92d6a6 commit 37e9021
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
| 44 | + | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
0 commit comments