]> git.ipfire.org Git - thirdparty/util-linux.git/blame - schedutils/uclampset.1.adoc
man pages: unify output of --help and --version
[thirdparty/util-linux.git] / schedutils / uclampset.1.adoc
CommitLineData
295b3979 1//po4a: entry man manual
e2db4d94
MB
2////
3uclampset(1) manpage
4
5Copyright (C) 2020-2021 Qais Yousef <qais.yousef@arm.com>
6Copyright (C) 2020-2021 Arm Ltd
7
8This is free documentation; you can redistribute it and/or
9modify it under the terms of the GNU General Public License,
10version 2, as published by the Free Software Foundation.
11
12The GNU General Public License's references to "object code"
13and "executables" are to be interpreted as the output of any
14document formatting or typesetting system, including
15intermediate and printed output.
16
17This manual is distributed in the hope that it will be useful,
18but WITHOUT ANY WARRANTY; without even the implied warranty of
19MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20GNU General Public License for more details.
21
22You should have received a copy of the GNU General Public License along
23with this program; if not, write to the Free Software Foundation, Inc.,
2451 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
25////
26= uclampset(1)
27:doctype: manpage
f42ed819 28:man manual: User Commands
e2db4d94
MB
29:man source: util-linux {release-version}
30:page-layout: base
31:command: uclampset
56af5af4 32:colon: :
e2db4d94
MB
33
34== NAME
35
36uclampset -
37manipulate the utilization clamping attributes of the system or a process
38
39== SYNOPSIS
40
4d297435 41*uclampset* [options] [*-m* _uclamp_min_] [*-M* _uclamp_max] _command argument_
e2db4d94 42
4d297435 43*uclampset* [options] [*-m* _uclamp_min_] [*-M* _uclamp_max_] *-p* _PID_
e2db4d94
MB
44
45== DESCRIPTION
46
47*uclampset* sets or retrieves the utilization clamping attributes of an existing _PID_, or runs _command_ with the given attributes.
48
49Utilization 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.
50
51The 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.
52
5a52459e 53If you're running on asymmetric heterogeneous system like Arm's big.LITTLE. Utilization clamping can help bias task placement. If the task is boosted such that _util_min_ value is higher than the little cores' capacity, then the scheduler will do its best to place it on a big core.
e2db4d94 54
5a52459e 55Similarly, if _util_max_ 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.
e2db4d94 56
5a52459e 57Setting a task's _uclamp_min_ to a none zero value will effectively boost the task as when it runs it'll always start from this utilization value.
e2db4d94 58
5a52459e 59By setting a task's _uclamp_max_ below 1024, this will effectively cap the task as when it runs it'll never be able to go above this utilization value.
e2db4d94
MB
60
61The full utilization range is: [0:1024]. The special value -1 is used to reset to system's default.
62
63== OPTIONS
64
65*-m*::
5a52459e 66Set _util_min_ value.
e2db4d94
MB
67
68*-M*::
5a52459e 69Set _util_max_ value.
e2db4d94
MB
70
71*-a*, *--all-tasks*::
5a52459e 72Set or retrieve the utilization clamping attributes of all the tasks (threads) for a given PID.
e2db4d94
MB
73
74*-p*, *--pid*::
5a52459e 75Operate on an existing PID and do not launch a new task.
e2db4d94
MB
76
77*-s*, *--system*::
5a52459e 78Set or retrieve the system-wide utilization clamping attributes.
e2db4d94
MB
79
80*-R*, *--reset-on-fork*::
5a52459e 81Set *SCHED_FLAG_RESET_ON_FORK* flag.
e2db4d94
MB
82
83*-v*, *--verbose*::
5a52459e 84Show status information.
e2db4d94 85
2b2d3172 86include::man-common/help-version.adoc[]
e2db4d94
MB
87
88== USAGE
89
5a52459e
MB
90//TRANSLATORS: Keep {colon} untranslated.
91The default behavior is to run a new command{colon}::
92*uclampset* _[-m uclamp_min]_ _[-M uclamp_max]_ _command_ [_arguments_]
e2db4d94 93
5a52459e
MB
94//TRANSLATORS: Keep {colon} untranslated.
95You can also retrieve the utilization clamping attributes of an existing task{colon}::
96*uclampset -p* _PID_
e2db4d94 97
5a52459e
MB
98//TRANSLATORS: Keep {colon} untranslated.
99Or set them{colon}::
100*uclampset -p* _PID_ _[-m uclamp_min]_ _[-M uclamp_max]_
e2db4d94 101
5a52459e
MB
102//TRANSLATORS: Keep {colon} untranslated.
103Or control the system-wide attributes{colon}::
104*uclampset -s* _[-m uclamp_min]_ _[-M uclamp_max]_
e2db4d94
MB
105
106== PERMISSIONS
107
108A user must possess *CAP_SYS_NICE* to change the scheduling attributes of a process. Any user can retrieve the scheduling information.
109
110== NOTES
111
112The system wide utilization clamp attributes are there to control the _allowed_ range the tasks can use. By default both _uclamp_min_ and _uclamp_max_ are set to 1024. This means users can set the utilization clamp values for their task across the full range [0:1024].
113
5a52459e
MB
114//TRANSLATORS: Keep {colon} untranslated.
115For example{colon}::
116*uclampset -s* `-m 512` `-M 700`
e2db4d94
MB
117
118will 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.
119
120Consult your kernel docs for the exact expected behavior on that kernel.
121
122== AUTHORS
123
4d297435 124mailto:qais.yousef@arm.com[Qais Yousef]
e2db4d94 125
e2db4d94
MB
126== SEE ALSO
127
128*nice*(1),
129*renice*(1),
130*taskset*(1),
131*sched*(7)
132
133See *sched_setscheduler*(2) and *sched_setattr*(2) for a description of the Linux scheduling scheme.
134
625e9c61 135include::man-common/bugreports.adoc[]
e2db4d94 136
625e9c61 137include::man-common/footer.adoc[]
e2db4d94
MB
138
139ifdef::translation[]
625e9c61 140include::man-common/translation.adoc[]
e2db4d94 141endif::[]