diff --git a/utils/common/countingallocator.h b/utils/common/countingallocator.h index b8cbc1713..85188e627 100644 --- a/utils/common/countingallocator.h +++ b/utils/common/countingallocator.h @@ -32,13 +32,13 @@ namespace allocators // It is supposed to recv a ptr to an atomic from a singleton entity, e.g. ResourceManager. // NB The atomic provides an upper hard limit for the memory usage and not the usage counter. // The allocator's model counts allocated size locally and to sync allocated size difference -// every CheckPointStepSize(100MB by default) both allocating and deallocating. +// every CheckPointStepSize both allocating and deallocating. // When a sync op hits MemoryLimitLowerBound trying to allocate more memory, it throws. // SQL operators or TBPS runtime must catch the exception and act acordingly. const constexpr int64_t MemoryLimitLowerBound = 500 * 1024 * 1024; // Higher values demonstrate slower response to memory limit violations. -const constexpr int64_t CheckPointStepSize = 1024; +const constexpr int64_t CheckPointStepSize = 100 * 1024; // Custom Allocator that tracks allocated memory using an atomic counter template