Debian Codegraph @

schedutils/uclampset.1.adoc

raw
1 //po4a: entry man manual
2 ////
3 uclampset(1) manpage
4
5 Copyright (C) 2020-2021 Qais Yousef <[email protected]>
6 Copyright (C) 2020-2021 Arm Ltd
7
8 This is free documentation; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License,
10 version 2, as published by the Free Software Foundation.
11
12 The GNU General Public License's references to "object code"
13 and "executables" are to be interpreted as the output of any
14 document formatting or typesetting system, including
15 intermediate and printed output.
16
17 This manual is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 GNU General Public License for more details.
21
22 You should have received a copy of the GNU General Public License
23 along with this program. If not, see <https://gnu.org/licenses/>.
24 ////
25 ifdef::neverdefined[---]
26
27 = uclampset(1)
28 :doctype: manpage
29 :man manual: User Commands
30 :man source: util-linux {release-version}
31 :page-layout: base
32 :command: uclampset
33 :colon: :
34
35 == NAME
36
37 uclampset -
38 manipulate the utilization clamping attributes of the system or a process
39
40 == SYNOPSIS
41
42 *uclampset* [options] [*-m* _minimum_] [*-M* _maximum_] *-p* _PID_
43
44 *uclampset* [options] [*-m* _minimum_] [*-M* _maximum_] _command_ [_argument_...]
45
46 == DESCRIPTION
47
48 *uclampset* sets or retrieves the utilization clamping attributes of an existing _PID_, or runs _command_ with the given attributes.
49
50 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.
51
52 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.
53
54 If 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.
55
56 Similarly, 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.
57
58 Setting 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.
59
60 By 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.
61
62 The full utilization range is: [0:1024]. The special value -1 is used to reset to system's default.
63
64 Consult latest kernel documentation for more details:
65
66 https://kernel.org/doc/html/latest/scheduler/sched-util-clamp.html
67
68 == OPTIONS
69
70 *-m*::
71 Set _util_min_ value.
72
73 *-M*::
74 Set _util_max_ value.
75
76 *-a*, *--all-tasks*::
77 Set or retrieve the utilization clamping attributes of all the tasks (threads) for a given PID.
78
79 *-p*, *--pid*::
80 Operate on an existing PID and do not launch a new task.
81
82 *-s*, *--system*::
83 Set or retrieve the system-wide utilization clamping attributes.
84
85 *-R*, *--reset-on-fork*::
86 Set *SCHED_FLAG_RESET_ON_FORK* flag.
87
88 *-v*, *--verbose*::
89 Show status information.
90
91 include::man-common/help-version.adoc[]
92
93 == USAGE
94
95 //TRANSLATORS: Keep {colon} untranslated.
96 The default behavior is to run a new command{colon}::
97 *uclampset* _[-m uclamp_min]_ _[-M uclamp_max]_ _command_ [_arguments_]
98
99 //TRANSLATORS: Keep {colon} untranslated.
100 You can also retrieve the utilization clamping attributes of an existing task{colon}::
101 *uclampset -p* _PID_
102
103 //TRANSLATORS: Keep {colon} untranslated.
104 Or set them{colon}::
105 *uclampset -p* _PID_ _[-m uclamp_min]_ _[-M uclamp_max]_
106
107 //TRANSLATORS: Keep {colon} untranslated.
108 Or control the system-wide attributes{colon}::
109 *uclampset -s* _[-m uclamp_min]_ _[-M uclamp_max]_
110
111 == PERMISSIONS
112
113 A user must possess *CAP_SYS_NICE* to change the scheduling attributes of a process. Any user can retrieve the scheduling information.
114
115 == NOTES
116
117 The 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].
118
119 //TRANSLATORS: Keep {colon} untranslated.
120 For example{colon}::
121 *uclampset -s* `-m 512` `-M 700`
122
123 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.
124
125 Consult your kernel docs for the exact expected behavior on that kernel.
126
127 == AUTHORS
128
129 mailto:[email protected][Qais Yousef]
130
131 == SEE ALSO
132
133 *nice*(1),
134 *renice*(1),
135 *taskset*(1),
136 *sched*(7)
137
138 See *sched_setscheduler*(2) and *sched_setattr*(2) for a description of the Linux scheduling scheme.
139
140 include::man-common/bugreports.adoc[]
141
142 include::man-common/footer.adoc[]
143
144 ifdef::translation[]
145 include::man-common/translation.adoc[]
146 endif::[]