-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Memory Profiling Functionality #14510
Comments
That is nice @berkaysynnada I love it. To implement it we have to use a To break down this into manageable pieces we need to
|
Thank you @comphead for the great elaboration! I don't have a clear answer to your question yet, but since this is the final part of our work list, I believe someone can complete the first two items before deciding on how to collect and display. |
I am interested in this function. Tag memory that is allocated through the buffer manager, and add duckdb_memory() function by Mytherin · Pull Request #10496 · duckdb/duckdb Does I have just started to learn
Do we need to trace all memory allocations or just focus on the part managed by |
Hi @PokIsemaine I'm planning to experiment with this. Another dirty trick which might work is to try to track the max process memory per the each transformation using https://crates.io/crates/sysinfo This approach shows the process memory usage globally not just per specific node of physical plan, but using the |
No, they're different. I believe duckdb's memory pool is a textbook buffer pool, which manages memory spilling and reading back automatically for the operators.
Regarding tracking those small allocations by internal |
The PR in arrow rs to avoid mem overcount for shared buffers apache/arrow-rs#7303 |
Is your feature request related to a problem or challenge?
When executing long-running batch processes or streaming queries, it is difficult to diagnose and monitor memory usage. People need an easy way to inspect memory consumption to understand resource usage and troubleshoot potential OOM. issues.
Describe the solution you'd like
Implement a built-in memory profiling feature
(similar to DuckDB’s duckdb_memory() and duckdb_temporary_files() functions)
that allows to query:
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: