| Commit-Queue | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
computed_old_generation_allocation_limit = std::min<uint64_t>(Can we have a SqrtLimit method here that we then reuse for old gen+global limit?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
// `total_size_excluding_external_at_last_gc_`, which includes youngDoes `total_size_excluding_external_at_last_gc_` really need to be a field? I suppose we could also just compute `heap_->SizeOfObjects() + heap_->EmbedderSizeOfObjects()` here directly?
// `total_size_excluding_external_at_last_gc_`, which includes youngDoes `total_size_excluding_external_at_last_gc_` really need to be a field? I suppose we could also just compute `heap_->SizeOfObjects() + heap_->EmbedderSizeOfObjects()` here directly?
`heap_->SizeOfObjects() + heap_->EmbedderSizeOfObjects()` is different because it doesn't take a snapshot right after a GC, and since we can call UpdateAllocationLimits() in a few situations that's not right after a GC, this would give a different limit.
computed_old_generation_allocation_limit = std::min<uint64_t>(Can we have a SqrtLimit method here that we then reuse for old gen+global limit?
Good idea, done!
I added a method to MemoryController, to reflect GrowingFactor.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
Thanks, LGTM
// `total_size_excluding_external_at_last_gc_`, which includes youngEtienne Pierre-DorayDoes `total_size_excluding_external_at_last_gc_` really need to be a field? I suppose we could also just compute `heap_->SizeOfObjects() + heap_->EmbedderSizeOfObjects()` here directly?
`heap_->SizeOfObjects() + heap_->EmbedderSizeOfObjects()` is different because it doesn't take a snapshot right after a GC, and since we can call UpdateAllocationLimits() in a few situations that's not right after a GC, this would give a different limit.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
sqrt_allocation_limits, true,Etienne Pierre-DorayTODO: disable
Done
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
26 is the latest approved patch-set.
The change was submitted with unreviewed changes in the following files:
```
The name of the file: src/flags/flag-definitions.h
Insertions: 1, Deletions: 1.
@@ -2699,7 +2699,7 @@
"Max external memory value (in GB) checked for a reasonable size, 0 "
"to disable the check.")
DEFINE_BOOL(
- sqrt_allocation_limits, true,
+ sqrt_allocation_limits, false,
"Old generation and global heap limit growth scale based on the sqrt of "
"estimated GC cost.")
DEFINE_INT(
```
[heap] Add sqrt heap limit flag.
This is a simple Sqrt heap limit implementation inspired from
https://arxiv.org/abs/2204.10455.
This is implemented behind sqrt_allocation_limits flag,
with a configurable growing factor limit.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |