-
Notifications
You must be signed in to change notification settings - Fork 29
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 threshold to proxy lib to call system allocator #883
Merged
lukaszstolarczuk
merged 8 commits into
oneapi-src:main
from
ldorau:Add_threshold_to_proxy_lib_to_call_system_allocator
Nov 19, 2024
Merged
Add threshold to proxy lib to call system allocator #883
lukaszstolarczuk
merged 8 commits into
oneapi-src:main
from
ldorau:Add_threshold_to_proxy_lib_to_call_system_allocator
Nov 19, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ldorau
force-pushed
the
Add_threshold_to_proxy_lib_to_call_system_allocator
branch
10 times, most recently
from
November 12, 2024 08:47
8bfade2
to
2a5fb9e
Compare
ldorau
changed the title
[WIP] Add threshold to proxy lib to call system allocator
Add threshold to proxy lib to call system allocator
Nov 12, 2024
ldorau
force-pushed
the
Add_threshold_to_proxy_lib_to_call_system_allocator
branch
from
November 12, 2024 08:57
2a5fb9e
to
4cdba02
Compare
ldorau
force-pushed
the
Add_threshold_to_proxy_lib_to_call_system_allocator
branch
2 times, most recently
from
November 12, 2024 11:34
0d3f0c7
to
7c781ef
Compare
bratpiorka
reviewed
Nov 12, 2024
bratpiorka
requested changes
Nov 12, 2024
ldorau
force-pushed
the
Add_threshold_to_proxy_lib_to_call_system_allocator
branch
from
November 12, 2024 13:32
7c781ef
to
db760b2
Compare
lplewa
previously requested changes
Nov 13, 2024
ldorau
force-pushed
the
Add_threshold_to_proxy_lib_to_call_system_allocator
branch
from
November 14, 2024 09:02
db760b2
to
4ac6b3e
Compare
ldorau
force-pushed
the
Add_threshold_to_proxy_lib_to_call_system_allocator
branch
from
November 14, 2024 15:14
4ac6b3e
to
846f30b
Compare
ldorau
force-pushed
the
Add_threshold_to_proxy_lib_to_call_system_allocator
branch
3 times, most recently
from
November 15, 2024 08:21
3c04a4f
to
6b833d1
Compare
bratpiorka
approved these changes
Nov 15, 2024
KFilipek
reviewed
Nov 15, 2024
KFilipek
reviewed
Nov 15, 2024
ldorau
force-pushed
the
Add_threshold_to_proxy_lib_to_call_system_allocator
branch
from
November 18, 2024 13:26
6b833d1
to
0a81104
Compare
ldorau
force-pushed
the
Add_threshold_to_proxy_lib_to_call_system_allocator
branch
from
November 18, 2024 17:25
0a81104
to
efc409a
Compare
ldorau
force-pushed
the
Add_threshold_to_proxy_lib_to_call_system_allocator
branch
from
November 19, 2024 07:28
797dfa6
to
29a18c0
Compare
Signed-off-by: Lukasz Dorau <[email protected]>
Do not assert(ptr) in umfMemoryTrackerGetAllocInfo(), return UMF_RESULT_ERROR_INVALID_ARGUMENT instead. Replace LOG_WARN() with LOG_DEBUG().
Add utils_env_var_get_str() to utils_common. Use utils_env_var_get_str() inside utils_env_var_has_str() and utils_is_running_in_proxy_lib(). Signed-off-by: Lukasz Dorau <[email protected]>
Signed-off-by: Lukasz Dorau <[email protected]>
Add a size threshold to proxy lib to call system allocator when the size is less than the given threshold (Linux only yet). Signed-off-by: Lukasz Dorau <[email protected]>
This WA for the issue: oneapi-src#894 It protects us from a recursion in malloc_usable_size() when the JEMALLOC proxy_lib_pool is used. TODO: remove this WA when the issue is fixed. Signed-off-by: Lukasz Dorau <[email protected]>
The proxyLib_size_threshold_* tests test the size threshold of the proxy library (Linux only yet). The size threshold is set to 64 bytes in this test, so all allocations of: 1) size < 64 go through the default system allocator and (umfPoolByPtr(ptr_size < 64) == nullptr) 2) size >= 64 go through the proxy lib allocator and (umfPoolByPtr(ptr_size >= 64) != nullptr). Ref: oneapi-src#894 Signed-off-by: Lukasz Dorau <[email protected]>
Signed-off-by: Lukasz Dorau <[email protected]>
ldorau
force-pushed
the
Add_threshold_to_proxy_lib_to_call_system_allocator
branch
from
November 19, 2024 10:34
29a18c0
to
16ca017
Compare
All CI builds passed |
bratpiorka
approved these changes
Nov 19, 2024
lukaszstolarczuk
approved these changes
Nov 19, 2024
ldorau
deleted the
Add_threshold_to_proxy_lib_to_call_system_allocator
branch
November 19, 2024 13:31
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Add threshold to proxy lib to call system allocator
when a size is less than the given threshold (Linux only yet).
Ref: #894
Requires:
Checklist