You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After the PR #8132 is merged, JIT cache file limit it set to std::numeric_limits<std::size_t>::max() unless an environment variable LIBCUDF_KERNEL_CACHE_LIMIT_PER_PROCESS is specified. Because such limit value (2^64) is used to reserve memory for an std::unordered_map, the system immediately blows up in memory usage and throws std::bad_alloc, causing all the tests involving JIT to fail.
This should be mitigated somehow. For example, a small number of cache file limit should be used as default instead of std::numeric_limits<std::size_t>::max(). This is the state before the PR #8132 is merged.
The text was updated successfully, but these errors were encountered:
…0317)
In file `jit/cache.cpp`, a program cache always internally reserves a `std::unordered_map` using a size set by an environment variable `LIBCUDF_KERNEL_CACHE_LIMIT_PER_PROCESS`. If that environment variable does not exist, a default value (`std::numeric_limit<size_t>::max`) is used. Such default value is huge, leading to allocating a huge (impossible) size of memory chunk that crashes the system.
This PR changes that default value from `std::numeric_limit<size_t>::max` to `1024^2`. This is essentially a reverse of the PR #10312 but set the default value to `1024` instead of `100`.
Note that `1024^2` is just some random number, not based on any specific calculation.
Closes#10312 and closes#9362.
Authors:
- Nghia Truong (https://github.com/ttnghia)
Approvers:
- Mark Harris (https://github.com/harrism)
- Karthikeyan (https://github.com/karthikeyann)
URL: #10317
After the PR #8132 is merged, JIT cache file limit it set to
std::numeric_limits<std::size_t>::max()
unless an environment variableLIBCUDF_KERNEL_CACHE_LIMIT_PER_PROCESS
is specified. Because such limit value (2^64
) is used to reserve memory for anstd::unordered_map
, the system immediately blows up in memory usage and throwsstd::bad_alloc
, causing all the tests involving JIT to fail.This should be mitigated somehow. For example, a small number of cache file limit should be used as default instead of
std::numeric_limits<std::size_t>::max()
. This is the state before the PR #8132 is merged.The text was updated successfully, but these errors were encountered: