Commit 500ea00
Make Hades YG 2MB
Summary:
In order to reduce pause times, make the YG allocation area in Hades
2MB.
There are a few additional considerations handled in this diff:
1. During YG promotion, keep the YG segment size as 4MB. This avoids
wasting space in the OG by having partially full segments. There is
also no pause time benefit to having 2MB YG in during promotion.
2. If we're making an allocation >2MB, temporarily increase the size
of the YG. We can then adjust it back at the end of a YG collection.
The alternative is to directly allocate that object in the OG, but I
chose not to do that in the interest of minimising direct to OG
allocations, particularly since this is such a rare case.
3. In future, we may want to adjust this size dynamically, based on
the measured YG times. Then we could dynamically trade off the
latency and throughput.
Reviewed By: dulinriley
Differential Revision: D27245952
fbshipit-source-id: 961daae111501b4c48ddb98a6888c2c532679f1b1 parent ddf51ba commit 500ea00
3 files changed
Lines changed: 30 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
32 | 39 | | |
33 | 40 | | |
34 | 41 | | |
| |||
2075 | 2082 | | |
2076 | 2083 | | |
2077 | 2084 | | |
| 2085 | + | |
2078 | 2086 | | |
2079 | 2087 | | |
2080 | 2088 | | |
2081 | | - | |
| 2089 | + | |
| 2090 | + | |
| 2091 | + | |
| 2092 | + | |
| 2093 | + | |
| 2094 | + | |
| 2095 | + | |
| 2096 | + | |
2082 | 2097 | | |
2083 | 2098 | | |
2084 | 2099 | | |
| |||
2399 | 2414 | | |
2400 | 2415 | | |
2401 | 2416 | | |
| 2417 | + | |
| 2418 | + | |
| 2419 | + | |
| 2420 | + | |
| 2421 | + | |
| 2422 | + | |
| 2423 | + | |
2402 | 2424 | | |
2403 | | - | |
2404 | | - | |
| 2425 | + | |
2405 | 2426 | | |
2406 | 2427 | | |
2407 | 2428 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
| 62 | + | |
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| |||
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
74 | | - | |
| 75 | + | |
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
| |||
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
86 | | - | |
| 87 | + | |
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
90 | | - | |
91 | | - | |
92 | 91 | | |
93 | 92 | | |
94 | 93 | | |
95 | 94 | | |
96 | 95 | | |
97 | 96 | | |
98 | | - | |
| 97 | + | |
99 | 98 | | |
100 | 99 | | |
101 | 100 | | |
| |||
0 commit comments