-
Notifications
You must be signed in to change notification settings - Fork 35
Use base allocator in the tracking provider #170
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
Use base allocator in the tracking provider #170
Conversation
Just FYI (it doesn't need to be in this PR) we also need to use ba_allocator in critnib to avoid the issues with jemalloc. |
995c6bb
to
8c8e024
Compare
bcbb979
to
9d7e19d
Compare
Done: #178 |
4b0e902
to
7ccda59
Compare
fba26dc
to
480eaa7
Compare
480eaa7
to
226a268
Compare
@igchor Benchmark on the main branch (UMF_ENABLE_POOL_TRACKING==ON):
with base allocator (UMF_ENABLE_POOL_TRACKING==ON):
Is it enough? |
I don't think the os_memory_provider benchmark does any memory tracking (tracking is only enabled when there is a memory pool). I think what we should implement is a benchmark with a 'proxy pool' - that way we can reuse the existing code and we won't have any impact from an actual pool implementation. Also, UR does use 'proxy pool' for certain scenarios. |
226a268
to
9408546
Compare
@igchor
Results of benchmark of proxy pool WITH the base allocator in the tracking provider (see https://github.com/ldorau/unified-memory-framework/tree/base_alloc):
(see #198) |
src/provider/provider_tracking.h
Outdated
if (!handle->map) { | ||
free(handle); | ||
return NULL; | ||
umf_ba_pool_t *pool_tracker = umf_ba_create(sizeof(struct tracker_value_t)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: pool_tracker
sounds like it's something that tracks pools ;d Can we rename it to tracker_allocator
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Great. It would be good to also have multithreaded benchmark, but I think this is good enough for now. |
9408546
to
4fefff6
Compare
Renamed |
@bratpiorka review please :-) |
4fefff6
to
96897cb
Compare
Signed-off-by: Lukasz Dorau <[email protected]>
Signed-off-by: Lukasz Dorau <[email protected]>
96897cb
to
faa65ee
Compare
No description provided.