Skip to content

Commit 3b804e5

Browse files
committed
Adjust the factor of max_memory
1 parent aea0197 commit 3b804e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/query/storages/fuse/fuse/src/operations/mutation/compact/compact_transform.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ impl CompactTransform {
113113
thresholds: BlockCompactThresholds,
114114
) -> Result<ProcessorPtr> {
115115
let settings = ctx.get_settings();
116-
let max_memory_usage = (settings.get_max_memory_usage()? as f64 * 0.95) as u64;
116+
let max_memory_usage = (settings.get_max_memory_usage()? as f64 * 0.8) as u64;
117117
let max_threads = settings.get_max_threads()?;
118118
let max_memory = max_memory_usage / max_threads;
119119
let max_io_requests = settings.get_max_storage_io_requests()? as usize;

0 commit comments

Comments
 (0)