Say which runtime threads the default-class floor alone covers
What: the doc comment of exit_guard::raise_quality_of_service named the pool's, the scheduler's and a command buffer's completion threads as the threads the floor serves. Since the scheduler, the completion thread, each VkQueue's waiter and the handler pool run at user-interactive (spawn_user_interactive) and the pipeline pool and a compile's own thread at user-initiated (raise_to_user_initiated), the floor alone now covers threads such as the pipeline reaper and the shader cache's worker. The comment says so, and names each higher class with its threads. It also drops an evidence-run code from the comment (the measurement it cited stays). Why: the comment was stale after the user-interactive change; reims-vgpu-orchestrator flagged it. No behaviour change; comment only. The runtime-sources pin (which hashes every runtime source, comments included) moves with it. Versions: unchanged. crates/metal2vulkan-validation/runtime-sources.sha256 holds 2f7e93a9335e29d38177e561a877ec40a69994fbe733a2dd0bdff75c96a8ce3e, the hash of this tree's runtime inputs (runtime-pin.py, which reproduces build.rs's).
This commit is contained in:
1 parent
fd22785008
commit
d1059d2419
2 files changed
+13
-12
No files matched your search
@@ -747,18 +747,19 @@ thread_local! {
|
||||
|
||||
/// Raise this thread's quality of service to the default class where it is utility or
|
||||
/// background, and leave every other class as it is. On macOS a new thread takes the class of
|
||||
/// the thread that started it, and each of the runtime's threads (the pool's, the scheduler's,
|
||||
/// a command buffer's completion) serves the whole program for the device's life: one started
|
||||
/// from a background thread would run every later making, scheduling and completion at
|
||||
/// background, whoever waits on it. On an Apple M4 a pipeline making on a background thread took
|
||||
/// 6.2 times as long through MoltenVK as at the default class (EV TTG-qos-m4). Nothing elsewhere,
|
||||
/// where there is no such class.
|
||||
/// the thread that started it, and a thread of the runtime's may serve the whole program for the
|
||||
/// device's life (the pipeline reaper, the shader cache's worker): one started from a background
|
||||
/// thread would run all its later work at background, whoever waits on it. On an Apple M4 a
|
||||
/// pipeline making on a background thread took 6.2 times as long through MoltenVK as at the
|
||||
/// default class. Nothing elsewhere, where there is no such class.
|
||||
///
|
||||
/// The floor covers only the threads the runtime starts. The pool's threads run at the
|
||||
/// user-initiated class ([`raise_to_user_initiated`]), and a pipeline the runtime makes on a
|
||||
/// program's thread below that class is made on a thread of the runtime's at it while the
|
||||
/// program's thread waits (`device/compiles.rs`). The threads that take command buffers to their
|
||||
/// handlers run at the user-interactive class ([`spawn_user_interactive`]).
|
||||
/// The floor covers only the threads the runtime starts, and some of them then go higher. The
|
||||
/// pipeline pool's threads and a compile's own thread run at the user-initiated class
|
||||
/// ([`raise_to_user_initiated`]), and a pipeline the runtime makes on a program's thread below
|
||||
/// that class is made on a thread of the runtime's at it while the program's thread waits
|
||||
/// (`device/compiles.rs`). The threads that take command buffers to their handlers (the
|
||||
/// scheduler's, the completion thread, each `VkQueue`'s waiter and the handler pool's) run at the
|
||||
/// user-interactive class ([`spawn_user_interactive`]).
|
||||
#[cfg(target_os = "macos")]
|
||||
pub(crate) fn raise_quality_of_service() {
|
||||
use libc::qos_class_t as Q;
|
||||
|
||||
@@ -1 +1 @@
|
||||
c7898bb8eedbb31255d940e45e717d70523354b64ac0615a137bdc4938a82294
|
||||
2f7e93a9335e29d38177e561a877ec40a69994fbe733a2dd0bdff75c96a8ce3e
|
||||
Reference in new issue
Block a user