Skip to content
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

memory tracking with memory pool #7303

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

waynexia
Copy link
Member

Which issue does this PR close?

Follow-up of #6590.

Closes #7151.

Rationale for this change

Add MemoryPool under arrow-buffer/pool feature gate. This pool can implement precise memory tracking for Array/Bytes/MutableBuffer etc. Even in a shared buffer. Design credit to @tustvold

What changes are included in this PR?

New feature gate arrow-buffer/pool.

New traits MemoryPool and MemoryReservation.

New structs TrackingMemoryPool which implements MemoryPool for tracking memory usage.

Corresponding new API claim for Buffer/MutableBuffer/Bytes.

Are there any user-facing changes?

Above new feature and APIs.

Signed-off-by: Ruihang Xia <[email protected]>
@github-actions github-actions bot added the arrow Changes to the arrow crate label Mar 18, 2025
@waynexia
Copy link
Member Author

cc @jhorstmann @alamb from previous discussion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arrow Changes to the arrow crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Memory consumption grows for interleave kernel when input is StringViewArray
1 participant