aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/pkg/pkg.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-04-03 16:48:43 +0900
committerOphestra <cat@gensokyo.uk>2026-04-03 16:49:34 +0900
commit591a60bac99b17ba0f345ee93057ea5a148837fd (patch)
tree866709899c4b879150a12483cff9bfe2d8f764cb /internal/pkg/pkg.go
parent5093a06026b0f4abe6b16ccf5381a19caf594166 (diff)
internal/pkg: per-cache SCHED_IDLE
This is cleaner than setting it globally, and is impossible to race. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/pkg/pkg.go')
-rw-r--r--internal/pkg/pkg.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/pkg/pkg.go b/internal/pkg/pkg.go
index a542f3d2..0c882bea 100644
--- a/internal/pkg/pkg.go
+++ b/internal/pkg/pkg.go
@@ -503,6 +503,10 @@ const (
// This behaviour significantly reduces performance and is not recommended
// outside of testing a custom [Artifact] implementation.
CValidateKnown = 1 << iota
+
+ // CSchedIdle arranges for the [ext.SCHED_IDLE] scheduling priority to be
+ // set for [KindExec] and [KindExecNet] containers.
+ CSchedIdle
)
// Cache is a support layer that implementations of [Artifact] can use to store