Skip to content

Conversation

lnkuiper
Copy link
Contributor

@lnkuiper lnkuiper commented Mar 21, 2025

This memory was not yet being taken into account by the buffer manager, which would cause us to go over the limit with larger TopN queries.

EDIT: I've also reduced the jemalloc decay delay to 1s as this reduces our memory footprint without affecting performance much at all.

EDIT2: I've made sure we also use the buffer allocator for sorted aggregate states, which makes sure we also throw an OOM exception for https://github.com/duckdblabs/duckdb-internal/issues/4131

@duckdb-draftbot duckdb-draftbot marked this pull request as draft March 21, 2025 09:12
@lnkuiper lnkuiper marked this pull request as ready for review March 21, 2025 09:20
@Flogex
Copy link
Contributor

Flogex commented Mar 21, 2025

Will this already be shipped with v1.2.2 or only with v1.3?

@Mytherin
Copy link
Collaborator

Mytherin commented Mar 22, 2025

This currently targets v1.3 - but I think we can re-target this to v1.2.2 since this looks low risk enough. @lnkuiper can you retarget to the v1.2 branch?

@lnkuiper lnkuiper changed the base branch from main to v1.2-histrionicus March 24, 2025 07:21
@duckdb-draftbot duckdb-draftbot marked this pull request as draft March 24, 2025 07:25
@lnkuiper lnkuiper marked this pull request as ready for review March 24, 2025 07:25
@duckdb-draftbot duckdb-draftbot marked this pull request as draft March 24, 2025 08:14
@lnkuiper lnkuiper marked this pull request as ready for review March 24, 2025 08:15
@lnkuiper
Copy link
Contributor Author

I think this is ready to go, the failed CI run can't find vcpkg on Windows.

@Mytherin Mytherin merged commit 3fa4b87 into duckdb:v1.2-histrionicus Mar 24, 2025
49 of 50 checks passed
@Mytherin
Copy link
Collaborator

Thanks!

krlmlr added a commit to duckdb/duckdb-r that referenced this pull request Apr 8, 2025
`PhysicalTopN`: Buffer-allocated `StringHeap` (duckdb/duckdb#16770)
Remove delta from extensions built on a nightly basis (vs 1.2-histrionicus) (duckdb/duckdb#16794)
@lnkuiper lnkuiper deleted the internal_-4413 branch April 14, 2025 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants