Skip to content

[EM] Make device cache more conservative. #11547

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

Merged
merged 2 commits into from
Jul 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/data/batch_utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ void CheckParam(BatchParam const& init, BatchParam const& param) {
cache_host_ratio = 0.0;
} else {
// The number of bytes that must be in the host memory.
auto h_cache_nbytes = n_cache_bytes - d_cache_nbytes;
auto h_cache_nbytes = n_cache_bytes - d_cache_nbytes * 0.85;
cache_host_ratio = static_cast<double>(h_cache_nbytes) / static_cast<double>(n_cache_bytes);
if (lc > 0) {
// 0 < lc < 10, C2C is available, but with reduced link count.
Expand Down
2 changes: 1 addition & 1 deletion src/data/ellpack_page_source.cu
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ class EllpackHostCacheStreamImpl {
new_impl->CopyInfo(old_impl);

// Split the cache into host cache, compressed host cache, and the device cache. We
// use the decompression engin only for sparse data.
// use the decompression engine only for sparse data.
auto n_bytes = get_host_nbytes(old_impl);
CHECK_LE(n_bytes, old_impl->gidx_buffer.size_bytes());
std::size_t n_h_bytes = n_bytes, n_comp_bytes = 0;
Expand Down
Loading