Adjust default budget to relieve stress on virtual memory space

This commit is contained in:
Louis Dureuil 2024-06-04 11:10:31 +02:00
parent ba75d23bfe
commit e100292417
No known key found for this signature in database

View File

@ -540,7 +540,7 @@ impl IndexScheduler {
#[cfg(windows)] #[cfg(windows)]
const DEFAULT_BUDGET: usize = 6 * 1024 * 1024 * 1024 * 1024; // 6 TiB, 1 index const DEFAULT_BUDGET: usize = 6 * 1024 * 1024 * 1024 * 1024; // 6 TiB, 1 index
#[cfg(not(windows))] #[cfg(not(windows))]
const DEFAULT_BUDGET: usize = 80 * 1024 * 1024 * 1024 * 1024; // 80 TiB, 18 indexes const DEFAULT_BUDGET: usize = 60 * 1024 * 1024 * 1024 * 1024; // 60 TiB, 13 indexes
let budget = if Self::is_good_heed(tasks_path, DEFAULT_BUDGET) { let budget = if Self::is_good_heed(tasks_path, DEFAULT_BUDGET) {
DEFAULT_BUDGET DEFAULT_BUDGET