Skip to content

Commit e628a56

Browse files
committed
README: give pkg its own quickstart profile
Both attach lines pointed at MEM_SHM, whose 1024 MB scale-up target is shared-arena scale - per-worker pkg wants numbers an order of magnitude smaller. The quickstart now shows a separate MEM_PKG profile.
1 parent 0eacaf7 commit e628a56

2 files changed

Lines changed: 16 additions & 4 deletions

File tree

‎README.md‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,17 @@ auto_scaling_profile = MEM_SHM
133133
scale up to 1024 on 80% for 3 cycles within 10
134134
scale down to 256 on 30% for 120 cycles
135135
136+
auto_scaling_profile = MEM_PKG
137+
scale up to 64 on 80% for 2 cycles within 5
138+
scale down to 8 on 20% for 60 cycles
139+
136140
shm_auto_scaling_profile = MEM_SHM
141+
pkg_auto_scaling_profile = MEM_PKG
137142
```
138143

139-
`pkg_auto_scaling_profile` takes the same grammar and does the same
140-
for every worker's private arena — Section 11.
144+
The pkg profile governs **every worker's private arena individually**,
145+
so its numbers are per-worker scale — an order of magnitude below the
146+
shared arena's (Section 11).
141147

142148
Watch it work:
143149

‎mem/README.hg_malloc_v3.md‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,17 @@ auto_scaling_profile = MEM_SHM
127127
scale up to 1024 on 80% for 3 cycles within 10
128128
scale down to 256 on 30% for 120 cycles
129129
130+
auto_scaling_profile = MEM_PKG
131+
scale up to 64 on 80% for 2 cycles within 5
132+
scale down to 8 on 20% for 60 cycles
133+
130134
shm_auto_scaling_profile = MEM_SHM
135+
pkg_auto_scaling_profile = MEM_PKG
131136
```
132137

133-
`pkg_auto_scaling_profile` takes the same grammar and does the same
134-
for every worker's private arena — Section 11.
138+
The pkg profile governs **every worker's private arena individually**,
139+
so its numbers are per-worker scale — an order of magnitude below the
140+
shared arena's (Section 11).
135141

136142
Watch it work:
137143

0 commit comments

Comments
 (0)