Increase sqlite3_hard_heap_limit64 to 8 GiB behind an autogate#6570
Increase sqlite3_hard_heap_limit64 to 8 GiB behind an autogate#6570joshthoward merged 1 commit intomainfrom
Conversation
There was a problem hiding this comment.
I'm Bonk, and I've done a quick review of your PR.
This PR increases the SQLite sqlite3_hard_heap_limit64 from 512 MiB to 8 GiB behind the INCREASE_SQLITE_HARD_HEAP_LIMIT autogate.
Issues (ranked by severity):
- (Low) Autogate naming mismatch: enum vs string name word ordering is inconsistent, breaking the convention every other autogate follows.
- (Low) Minor grammar nit in the comment.
|
Review posted successfully on PR #6570. I found two low-severity issues:
The core change itself -- gating the heap limit increase behind an autogate with the |
|
The generated output of |
1197ea0 to
d8bafd9
Compare
a-robinson
left a comment
There was a problem hiding this comment.
Does the higher limit have any negative effect on how much memory workerd uses locally? I’d imagine not since it’s just a limit and nothing gets preallocated?
Nothing about this should change the amount of memory allocated by SQLite other than the fact that queries which previously needed more than 512 MiB of memory would fail with SQLITE_NOMEM. SQLite will have a connection free memory in its page cache once the soft limit is exceeded. Raising this could allow for memory consumption to remain higher, but we aren't modifying that for now (we don't want cached DB pages to consume sandbox memory). |
No description provided.