Conversation
- Bind PageAllocator::check_and_get_resize_target so kv_cache_manager can poll - Pin KVCACHED_IPC_NAME from Python so C++ MemInfoTracker uses the same shm - Include pybind11/functional.h and pybind11/stl.h in torch_bindings - Update test_kvcache_manager.py to use C++ public methods
Times alloc(k) + free(handles) cycles at varying k. Used to compare main vs C++ migration vs C++ + restored elastic resize.
This file contains hidden or 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
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.
PR #319 alloc/free microbench
bench_alloc.py: tight loop ofmanager.alloc(k)+manager.free(h)after 100-iter warmup.GPU: NVIDIA GB10. NUM_LAYERS=16, NUM_BLOCKS=65536, BLOCK_SIZE=16, page_size=2 MB.
Results (μs per alloc+free pair)
Python alloc + Python poll
incl. must-fix
98d9bb3(C++ alloc, no resize poll)
(C++ alloc + restored resize poll)