Compaction vs. Utilization: Core Design Philosophies Compared

The Erlang scheduler's 'Compaction of Load' mode, the default, prioritizes fully loading a minimum number of scheduler threads to prevent them from running out of work. In contrast, 'Utilization Balancing' aims for an even workload distribution across *all* available schedulers, regardless of individual scheduler idle frequency.

The top 3

  1. Latency vs. Throughput: Who Wins When?: Compaction mode prioritizes lower latency for individual tasks by fully loading fewer scheduler threads, while Utilization mode aims for maximum overall system throughput by balancing work evenly across all available cores.
  2. Best Workload Match: Interactive vs. Batch Processing: Compaction mode is ideal for interactive, soft real-time applications where low response times are critical, whereas Utilization mode excels in CPU-bound tasks or batch processing that benefit from maximizing overall core usage.
  3. Resource Efficiency: Idle Cores vs. Full Saturation: Compaction can lead to better energy efficiency in low-load scenarios by allowing more CPU cores to remain idle or enter lower power states, while Utilization keeps more cores active, maximizing computational power at the expense of higher overall energy consumption.

Open the full topic