Skip to content

[POC] add umfDisjointPoolTrimMemory #1318

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bratpiorka
Copy link
Contributor

umfDisjointPoolTrimMemory needed for L0 POC

/// @param pool handle to the memory pool.
/// @param minSlabsToKeep minimum number of slabs to keep.
/// @return UMF_RESULT_SUCCESS on success or appropriate error code on failure.
umf_result_t umfDisjointPoolTrimMemory(void *pool, size_t minSlabsToKeep);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we do it thru ctl?

/// @param pool handle to the memory pool.
/// @param minSlabsToKeep minimum number of slabs to keep.
/// @return UMF_RESULT_SUCCESS on success or appropriate error code on failure.
umf_result_t umfDisjointPoolTrimMemory(void *pool, size_t minSlabsToKeep);
Copy link
Contributor

@vinser52 vinser52 May 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How this API is going to be used? And why is it disjoint pool specific?

Copy link
Contributor

@vinser52 vinser52 May 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we are trying to stabilize the API before the 1.0 release, we should review such changes at the UMF tech meeting first.
I mean draft PR is OK, but let’s discuss before merge

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vinser52 I definitely wanted to discuss this first. Here, I just wanted to unblock @ldorau in his work and provide the required functionality

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.

4 participants