Respect Windows commit capacity
This commit is contained in:
1 parent
fb57b6cd81
commit
2de94bca5e
6 files changed
+132
-36
No files matched your search
@@ -4876,7 +4876,7 @@ int main(int argc, char** argv) {
|
||||
std::string whole_err;
|
||||
if (!resident_ok && o.resident_soft) {
|
||||
// #467: the whole complement does not fit - keep what does, the hottest by the profile, through the #403
|
||||
// budget path (sized by the RAM alone) instead of none: the misses outside it read the same file bytes
|
||||
// budget path (sized by available memory) instead of none: the misses outside it read the same file bytes
|
||||
// the mmap fallback reads, so the answers are unchanged. Nothing pinned: the old fallback below.
|
||||
whole_err = err;
|
||||
resident_ok = src.pin_cache_complement(xcache, err, o.resident_pin, stage_pairs, -1, o.resident_headroom,
|
||||
@@ -4919,8 +4919,9 @@ int main(int argc, char** argv) {
|
||||
// #403: a RAM budget that cannot be kept is not a reason to stop - the experts it would have held are
|
||||
// read from the files like the ones outside it (pin_cache_complement leaves nothing half-built)
|
||||
std::fprintf(stderr, "strata generate: WARNING: the RAM budget (--resident-budget-gib) cannot be kept (%s); "
|
||||
"every expert the GPU does not hold is read from the model files through the OS file "
|
||||
"cache (--mmap-experts), which is slower\n", err.c_str());
|
||||
"every expert the GPU does not hold is read from the model files %s "
|
||||
"(--mmap-experts), which is slower\n", err.c_str(),
|
||||
src.unbuffered() ? "with unbuffered I/O" : "through the OS file cache");
|
||||
} else {
|
||||
std::fprintf(stderr, "strata generate: CPU expert residency: %s\n", err.c_str());
|
||||
return 1;
|
||||
|
||||
Reference in new issue
Block a user