Constantsยง
- COMPACTOR_
MEMORY_ ๐PROPORTION - COMPUTE_
BATCH_ ๐MEMORY_ PROPORTION_ FOR_ SERVING - COMPUTE_
BATCH_ ๐MEMORY_ PROPORTION_ FOR_ STREAMING - The proportion of compute memory used for batch processing.
- MIN_
COMPUTE_ MEMORY_ MB - The minimal memory requirement of computing tasks in megabytes.
- MIN_
SYSTEM_ RESERVED_ MEMORY_ MB - The memory reserved for system usage (stack and code segment of processes, allocation overhead, network buffer, etc.) in megabytes.
- RESERVED_
MEMORY_ ๐LEVELS - RESERVED_
MEMORY_ ๐PROPORTIONS - STORAGE_
BLOCK_ ๐CACHE_ MEMORY_ PROPORTION - STORAGE_
MEMORY_ ๐PROPORTION - STORAGE_
META_ ๐CACHE_ MEMORY_ PROPORTION - STORAGE_
SHARED_ ๐BUFFER_ MAX_ MEMORY_ MB - STORAGE_
SHARED_ ๐BUFFER_ MEMORY_ PROPORTION
Functionsยง
- batch_
mem_ limit - gradient_
reserve_ memory_ bytes - Calculate the reserved memory based on the total memory size. The reserved memory size is calculated based on the following gradient:
- reserve_
memory_ bytes - Each compute node reserves some memory for stack and code segment of processes, allocation
overhead, network buffer, etc. based on gradient reserve memory proportion. The reserve memory
size must be larger than
MIN_SYSTEM_RESERVED_MEMORY_MB
- storage_
memory_ config - Decide the memory limit for each storage cache. If not specified in
StorageConfig
, memory limits are calculated based on the proportions to totalnon_reserved_memory_bytes
.