Debian Codegraph @

schedutils/uclampset.1

raw
1 '\" t
2 .\" Title: uclampset
3 .\" Author: [see the "AUTHOR(S)" section]
4 .\" Generator: Asciidoctor 2.0.20
5 .\" Date: 2026-04-28
6 .\" Manual: User Commands
7 .\" Source: util-linux 2.42.1
8 .\" Language: English
9 .\"
10 .TH "UCLAMPSET" "1" "2026-04-28" "util\-linux 2.42.1" "User Commands"
11 .ie \n(.g .ds Aq \(aq
12 .el .ds Aq '
13 .ss \n[.ss] 0
14 .nh
15 .ad l
16 .de URL
17 \fI\\$2\fP <\\$1>\\$3
18 ..
19 .als MTO URL
20 .if \n[.g] \{\
21 . mso www.tmac
22 . am URL
23 . ad l
24 . .
25 . am MTO
26 . ad l
27 . .
28 . LINKSTYLE blue R < >
29 .\}
30 .SH "NAME"
31 uclampset \- manipulate the utilization clamping attributes of the system or a process
32 .SH "SYNOPSIS"
33 .sp
34 \fBuclampset\fP [options] [\fB\-m\fP \fIminimum\fP] [\fB\-M\fP \fImaximum\fP] \fB\-p\fP \fIPID\fP
35 .sp
36 \fBuclampset\fP [options] [\fB\-m\fP \fIminimum\fP] [\fB\-M\fP \fImaximum\fP] \fIcommand\fP [\fIargument\fP...]
37 .SH "DESCRIPTION"
38 .sp
39 \fBuclampset\fP sets or retrieves the utilization clamping attributes of an existing \fIPID\fP, or runs \fIcommand\fP with the given attributes.
40 .sp
41 Utilization clamping is a new feature added in v5.3. It gives a hint to the scheduler about the allowed range of utilization the task should be operating at.
42 .sp
43 The utilization of the task affects frequency selection and task placement. Only schedutil cpufreq governor understands handling util clamp hints at the time of writing. Consult your kernel docs for further info about other cpufreq governors support.
44 .sp
45 If you\(cqre running on asymmetric heterogeneous system like Arm\(cqs big.LITTLE. Utilization clamping can help bias task placement. If the task is boosted such that \fIutil_min\fP value is higher than the little cores\*(Aq capacity, then the scheduler will do its best to place it on a big core.
46 .sp
47 Similarly, if \fIutil_max\fP is smaller than or equal the capacity of the little cores, then the scheduler can still choose to place it there even if the actual utilization of the task is at max.
48 .sp
49 Setting a task\(cqs \fIuclamp_min\fP to a none zero value will effectively boost the task as when it runs it\(cqll always start from this utilization value.
50 .sp
51 By setting a task\(cqs \fIuclamp_max\fP below 1024, this will effectively cap the task as when it runs it\(cqll never be able to go above this utilization value.
52 .sp
53 The full utilization range is: [0:1024]. The special value \-1 is used to reset to system\(cqs default.
54 .sp
55 Consult latest kernel documentation for more details:
56 .sp
57 .if n .RS 4
58 .nf
59 .fam C
60 https://kernel.org/doc/html/latest/scheduler/sched\-util\-clamp.html
61 .fam
62 .fi
63 .if n .RE
64 .SH "OPTIONS"
65 .sp
66 \fB\-m\fP
67 .RS 4
68 Set \fIutil_min\fP value.
69 .RE
70 .sp
71 \fB\-M\fP
72 .RS 4
73 Set \fIutil_max\fP value.
74 .RE
75 .sp
76 \fB\-a\fP, \fB\-\-all\-tasks\fP
77 .RS 4
78 Set or retrieve the utilization clamping attributes of all the tasks (threads) for a given PID.
79 .RE
80 .sp
81 \fB\-p\fP, \fB\-\-pid\fP
82 .RS 4
83 Operate on an existing PID and do not launch a new task.
84 .RE
85 .sp
86 \fB\-s\fP, \fB\-\-system\fP
87 .RS 4
88 Set or retrieve the system\-wide utilization clamping attributes.
89 .RE
90 .sp
91 \fB\-R\fP, \fB\-\-reset\-on\-fork\fP
92 .RS 4
93 Set \fBSCHED_FLAG_RESET_ON_FORK\fP flag.
94 .RE
95 .sp
96 \fB\-v\fP, \fB\-\-verbose\fP
97 .RS 4
98 Show status information.
99 .RE
100 .sp
101 \fB\-h\fP, \fB\-\-help\fP
102 .RS 4
103 Display help text and exit.
104 .RE
105 .sp
106 \fB\-V\fP, \fB\-\-version\fP
107 .RS 4
108 Display version and exit.
109 .RE
110 .SH "USAGE"
111 .sp
112 The default behavior is to run a new command:
113 .RS 4
114 \fBuclampset\fP \fI[\-m uclamp_min]\fP \fI[\-M uclamp_max]\fP \fIcommand\fP [\fIarguments\fP]
115 .RE
116 .sp
117 You can also retrieve the utilization clamping attributes of an existing task:
118 .RS 4
119 \fBuclampset \-p\fP \fIPID\fP
120 .RE
121 .sp
122 Or set them:
123 .RS 4
124 \fBuclampset \-p\fP \fIPID\fP \fI[\-m uclamp_min]\fP \fI[\-M uclamp_max]\fP
125 .RE
126 .sp
127 Or control the system\-wide attributes:
128 .RS 4
129 \fBuclampset \-s\fP \fI[\-m uclamp_min]\fP \fI[\-M uclamp_max]\fP
130 .RE
131 .SH "PERMISSIONS"
132 .sp
133 A user must possess \fBCAP_SYS_NICE\fP to change the scheduling attributes of a process. Any user can retrieve the scheduling information.
134 .SH "NOTES"
135 .sp
136 The system wide utilization clamp attributes are there to control the \fIallowed\fP range the tasks can use. By default both \fIuclamp_min\fP and \fIuclamp_max\fP are set to 1024. This means users can set the utilization clamp values for their task across the full range [0:1024].
137 .sp
138 For example:
139 .RS 4
140 \fBuclampset \-s\fP \f(CR\-m 512\fP \f(CR\-M 700\fP
141 .RE
142 .sp
143 will prevent any task from being boosted higher than 512. And all tasks in the systems are capped to a utilization of 700. Effectively rendering the maximum performance of the system to 700.
144 .sp
145 Consult your kernel docs for the exact expected behavior on that kernel.
146 .SH "AUTHORS"
147 .sp
148 .MTO "qyousef\(atlayalina.io" "Qais Yousef" ""
149 .SH "SEE ALSO"
150 .sp
151 \fBnice\fP(1),
152 \fBrenice\fP(1),
153 \fBtaskset\fP(1),
154 \fBsched\fP(7)
155 .sp
156 See \fBsched_setscheduler\fP(2) and \fBsched_setattr\fP(2) for a description of the Linux scheduling scheme.
157 .SH "REPORTING BUGS"
158 .sp
159 For bug reports, use the \c
160 .URL "https://github.com/util\-linux/util\-linux/issues" "issue tracker" "."
161 .SH "AVAILABILITY"
162 .sp
163 The \fBuclampset\fP command is part of the util\-linux package which can be downloaded from \c
164 .URL "https://www.kernel.org/pub/linux/utils/util\-linux/" "Linux Kernel Archive" "."