Files
kumomta/docs/reference/kumo/set_qmaint_threads.md
T
Wez Furlong ff7f9eb666 move readyq maint into its own thread pool
Previously, we'd use the qmaint pool to spawn both the scheduled
and ready queue maintenance tasks.

This commit splits them apart in order to avoid the potential for
cross-task contention on the same threads if a scheduled queue
and ready queue pair are communicating with each other.
2025-04-02 10:36:46 -07:00

760 B

tags
tags
threadpool

kumo.set_qmaint_threads(N)

{{since('2024.09.02-c5476b89')}}

Sets the number of threads to be used for the qmaint thread pool. This thread pool is used to perform queue maintenance operations.

The default number of threads is computed using some unspecified fraction of the available parallelism on the running system, and is shown in the journal on startup.

kumo.on('pre_init', function()
  kumo.set_qmaint_threads(12)
end)

!!! note The qmaint used to perform maintenance of a mixture of both scheduled and ready queue tasks, but now is used only for scheduled queue maintenance. The ready queue maintenance is carried out by the ready_qmaint thread pool. {{since('dev', inline=True)}}