| 1 |
# SOME DESCRIPTIVE TITLE |
| 2 |
# Copyright (C) YEAR Free Software Foundation, Inc. |
| 3 |
# This file is distributed under the same license as the PACKAGE package. |
| 4 |
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. |
| 5 |
# |
| 6 |
#, fuzzy |
| 7 |
msgid "" |
| 8 |
msgstr "" |
| 9 |
"Project-Id-Version: PACKAGE VERSION\n" |
| 10 |
"POT-Creation-Date: 2026-06-05 06:42+0200\n" |
| 11 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
| 12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
| 13 |
"Language-Team: LANGUAGE <[email protected]>\n" |
| 14 |
"Language: \n" |
| 15 |
"MIME-Version: 1.0\n" |
| 16 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 17 |
"Content-Transfer-Encoding: 8bit\n" |
| 18 |
|
| 19 |
#. type: TH |
| 20 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 21 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 22 |
#, no-wrap |
| 23 |
msgid "sched" |
| 24 |
msgstr "" |
| 25 |
|
| 26 |
#. type: TH |
| 27 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 28 |
#: opensuse-tumbleweed |
| 29 |
#, no-wrap |
| 30 |
msgid "2026-02-08" |
| 31 |
msgstr "" |
| 32 |
|
| 33 |
#. type: TH |
| 34 |
#: archlinux debian-unstable |
| 35 |
#, no-wrap |
| 36 |
msgid "Linux man-pages 6.18" |
| 37 |
msgstr "" |
| 38 |
|
| 39 |
#. type: SH |
| 40 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 41 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 42 |
#, no-wrap |
| 43 |
msgid "NAME" |
| 44 |
msgstr "" |
| 45 |
|
| 46 |
#. type: Plain text |
| 47 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 48 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 49 |
msgid "sched - overview of CPU scheduling" |
| 50 |
msgstr "" |
| 51 |
|
| 52 |
#. type: SH |
| 53 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 54 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 55 |
#, no-wrap |
| 56 |
msgid "DESCRIPTION" |
| 57 |
msgstr "" |
| 58 |
|
| 59 |
#. type: Plain text |
| 60 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 61 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 62 |
msgid "" |
| 63 |
"Since Linux 2.6.23, the default scheduler is CFS, the \"Completely Fair " |
| 64 |
"Scheduler\". The CFS scheduler replaced the earlier \"O(1)\" scheduler." |
| 65 |
msgstr "" |
| 66 |
|
| 67 |
#. type: SS |
| 68 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 69 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 70 |
#, no-wrap |
| 71 |
msgid "API summary" |
| 72 |
msgstr "" |
| 73 |
|
| 74 |
#. type: Plain text |
| 75 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 76 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 77 |
msgid "" |
| 78 |
"Linux provides the following system calls for controlling the CPU scheduling " |
| 79 |
"behavior, policy, and priority of processes (or, more precisely, threads)." |
| 80 |
msgstr "" |
| 81 |
|
| 82 |
#. type: TP |
| 83 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 84 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 85 |
#, no-wrap |
| 86 |
msgid "B<nice>(2)" |
| 87 |
msgstr "" |
| 88 |
|
| 89 |
#. type: Plain text |
| 90 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 91 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 92 |
msgid "" |
| 93 |
"Set a new nice value for the calling thread, and return the new nice value." |
| 94 |
msgstr "" |
| 95 |
|
| 96 |
#. type: TP |
| 97 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 98 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 99 |
#, no-wrap |
| 100 |
msgid "B<getpriority>(2)" |
| 101 |
msgstr "" |
| 102 |
|
| 103 |
#. type: Plain text |
| 104 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 105 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 106 |
msgid "" |
| 107 |
"Return the nice value of a thread, a process group, or the set of threads " |
| 108 |
"owned by a specified user." |
| 109 |
msgstr "" |
| 110 |
|
| 111 |
#. type: TP |
| 112 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 113 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 114 |
#, no-wrap |
| 115 |
msgid "B<setpriority>(2)" |
| 116 |
msgstr "" |
| 117 |
|
| 118 |
#. type: Plain text |
| 119 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 120 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 121 |
msgid "" |
| 122 |
"Set the nice value of a thread, a process group, or the set of threads owned " |
| 123 |
"by a specified user." |
| 124 |
msgstr "" |
| 125 |
|
| 126 |
#. type: TP |
| 127 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 128 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 129 |
#, no-wrap |
| 130 |
msgid "B<sched_setscheduler>(2)" |
| 131 |
msgstr "" |
| 132 |
|
| 133 |
#. type: Plain text |
| 134 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 135 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 136 |
msgid "Set the scheduling policy and parameters of a specified thread." |
| 137 |
msgstr "" |
| 138 |
|
| 139 |
#. type: TP |
| 140 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 141 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 142 |
#, no-wrap |
| 143 |
msgid "B<sched_getscheduler>(2)" |
| 144 |
msgstr "" |
| 145 |
|
| 146 |
#. type: Plain text |
| 147 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 148 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 149 |
msgid "Return the scheduling policy of a specified thread." |
| 150 |
msgstr "" |
| 151 |
|
| 152 |
#. type: TP |
| 153 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 154 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 155 |
#, no-wrap |
| 156 |
msgid "B<sched_setparam>(2)" |
| 157 |
msgstr "" |
| 158 |
|
| 159 |
#. type: Plain text |
| 160 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 161 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 162 |
msgid "Set the scheduling parameters of a specified thread." |
| 163 |
msgstr "" |
| 164 |
|
| 165 |
#. type: TP |
| 166 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 167 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 168 |
#, no-wrap |
| 169 |
msgid "B<sched_getparam>(2)" |
| 170 |
msgstr "" |
| 171 |
|
| 172 |
#. type: Plain text |
| 173 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 174 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 175 |
msgid "Fetch the scheduling parameters of a specified thread." |
| 176 |
msgstr "" |
| 177 |
|
| 178 |
#. type: TP |
| 179 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 180 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 181 |
#, no-wrap |
| 182 |
msgid "B<sched_get_priority_max>(2)" |
| 183 |
msgstr "" |
| 184 |
|
| 185 |
#. type: Plain text |
| 186 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 187 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 188 |
msgid "Return the maximum priority available in a specified scheduling policy." |
| 189 |
msgstr "" |
| 190 |
|
| 191 |
#. type: TP |
| 192 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 193 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 194 |
#, no-wrap |
| 195 |
msgid "B<sched_get_priority_min>(2)" |
| 196 |
msgstr "" |
| 197 |
|
| 198 |
#. type: Plain text |
| 199 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 200 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 201 |
msgid "Return the minimum priority available in a specified scheduling policy." |
| 202 |
msgstr "" |
| 203 |
|
| 204 |
#. type: TP |
| 205 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 206 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 207 |
#, no-wrap |
| 208 |
msgid "B<sched_rr_get_interval>(2)" |
| 209 |
msgstr "" |
| 210 |
|
| 211 |
#. type: Plain text |
| 212 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 213 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 214 |
msgid "" |
| 215 |
"Fetch the quantum used for threads that are scheduled under the \"round-" |
| 216 |
"robin\" scheduling policy." |
| 217 |
msgstr "" |
| 218 |
|
| 219 |
#. type: TP |
| 220 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 221 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 222 |
#, no-wrap |
| 223 |
msgid "B<sched_yield>(2)" |
| 224 |
msgstr "" |
| 225 |
|
| 226 |
#. type: Plain text |
| 227 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 228 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 229 |
msgid "" |
| 230 |
"Cause the caller to relinquish the CPU, so that some other thread be " |
| 231 |
"executed." |
| 232 |
msgstr "" |
| 233 |
|
| 234 |
#. type: TP |
| 235 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 236 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 237 |
#, no-wrap |
| 238 |
msgid "B<sched_setaffinity>(2)" |
| 239 |
msgstr "" |
| 240 |
|
| 241 |
#. type: Plain text |
| 242 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 243 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 244 |
msgid "(Linux-specific) Set the CPU affinity of a specified thread." |
| 245 |
msgstr "" |
| 246 |
|
| 247 |
#. type: TP |
| 248 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 249 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 250 |
#, no-wrap |
| 251 |
msgid "B<sched_getaffinity>(2)" |
| 252 |
msgstr "" |
| 253 |
|
| 254 |
#. type: Plain text |
| 255 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 256 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 257 |
msgid "(Linux-specific) Get the CPU affinity of a specified thread." |
| 258 |
msgstr "" |
| 259 |
|
| 260 |
#. type: TP |
| 261 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 262 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 263 |
#, no-wrap |
| 264 |
msgid "B<sched_setattr>(2)" |
| 265 |
msgstr "" |
| 266 |
|
| 267 |
#. type: Plain text |
| 268 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 269 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 270 |
msgid "" |
| 271 |
"Set the scheduling policy and parameters of a specified thread. This (Linux-" |
| 272 |
"specific) system call provides a superset of the functionality of " |
| 273 |
"B<sched_setscheduler>(2) and B<sched_setparam>(2)." |
| 274 |
msgstr "" |
| 275 |
|
| 276 |
#. type: TP |
| 277 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 278 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 279 |
#, no-wrap |
| 280 |
msgid "B<sched_getattr>(2)" |
| 281 |
msgstr "" |
| 282 |
|
| 283 |
#. type: Plain text |
| 284 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 285 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 286 |
msgid "" |
| 287 |
"Fetch the scheduling policy and parameters of a specified thread. This " |
| 288 |
"(Linux-specific) system call provides a superset of the functionality of " |
| 289 |
"B<sched_getscheduler>(2) and B<sched_getparam>(2)." |
| 290 |
msgstr "" |
| 291 |
|
| 292 |
#. type: SS |
| 293 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 294 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 295 |
#, no-wrap |
| 296 |
msgid "Scheduling policies" |
| 297 |
msgstr "" |
| 298 |
|
| 299 |
#. type: Plain text |
| 300 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 301 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 302 |
msgid "" |
| 303 |
"The scheduler is the kernel component that decides which runnable thread " |
| 304 |
"will be executed by the CPU next. Each thread has an associated scheduling " |
| 305 |
"policy and a I<static> scheduling priority, I<sched_priority>. The " |
| 306 |
"scheduler makes its decisions based on knowledge of the scheduling policy " |
| 307 |
"and static priority of all threads on the system." |
| 308 |
msgstr "" |
| 309 |
|
| 310 |
#. type: Plain text |
| 311 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 312 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 313 |
msgid "" |
| 314 |
"For threads scheduled under one of the normal scheduling policies " |
| 315 |
"(B<SCHED_OTHER>, B<SCHED_IDLE>, B<SCHED_BATCH>), I<sched_priority> is not " |
| 316 |
"used in scheduling decisions (it must be specified as 0)." |
| 317 |
msgstr "" |
| 318 |
|
| 319 |
#. type: Plain text |
| 320 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 321 |
#: opensuse-tumbleweed |
| 322 |
msgid "" |
| 323 |
"Processes scheduled under one of the real-time policies (B<SCHED_FIFO>, " |
| 324 |
"B<SCHED_RR>) have a I<sched_priority> value in the range 1 (low) to 99 " |
| 325 |
"(high). (As the numbers imply, real-time threads always have higher " |
| 326 |
"priority than normal threads.) Note well: POSIX.1 requires an " |
| 327 |
"implementation to support only a minimum 32 distinct priority levels for the " |
| 328 |
"real-time policies, and some systems supply just this minimum. Portable " |
| 329 |
"programs should use B<sched_get_priority_min>(2) and " |
| 330 |
"B<sched_get_priority_max>(2) to find the range of priorities supported for " |
| 331 |
"a particular policy." |
| 332 |
msgstr "" |
| 333 |
|
| 334 |
#. type: Plain text |
| 335 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 336 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 337 |
msgid "" |
| 338 |
"Conceptually, the scheduler maintains a list of runnable threads for each " |
| 339 |
"possible I<sched_priority> value. In order to determine which thread runs " |
| 340 |
"next, the scheduler looks for the nonempty list with the highest static " |
| 341 |
"priority and selects the thread at the head of this list." |
| 342 |
msgstr "" |
| 343 |
|
| 344 |
#. type: Plain text |
| 345 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 346 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 347 |
msgid "" |
| 348 |
"A thread's scheduling policy determines where it will be inserted into the " |
| 349 |
"list of threads with equal static priority and how it will move inside this " |
| 350 |
"list." |
| 351 |
msgstr "" |
| 352 |
|
| 353 |
#. type: Plain text |
| 354 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 355 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 356 |
msgid "" |
| 357 |
"All scheduling is preemptive: if a thread with a higher static priority " |
| 358 |
"becomes ready to run, the currently running thread will be preempted and " |
| 359 |
"returned to the wait list for its static priority level. The scheduling " |
| 360 |
"policy determines the ordering only within the list of runnable threads with " |
| 361 |
"equal static priority." |
| 362 |
msgstr "" |
| 363 |
|
| 364 |
#. type: SS |
| 365 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 366 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 367 |
#, no-wrap |
| 368 |
msgid "SCHED_FIFO: First in-first out scheduling" |
| 369 |
msgstr "" |
| 370 |
|
| 371 |
#. type: Plain text |
| 372 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 373 |
#: opensuse-tumbleweed |
| 374 |
msgid "" |
| 375 |
"B<SCHED_FIFO> can be used only with static priorities higher than 0, which " |
| 376 |
"means that when a B<SCHED_FIFO> thread becomes runnable, it will always " |
| 377 |
"immediately preempt any currently running B<SCHED_OTHER>, B<SCHED_BATCH>, or " |
| 378 |
"B<SCHED_IDLE> thread. B<SCHED_FIFO is a simple scheduling> algorithm " |
| 379 |
"without time slicing. For threads scheduled under the B<SCHED_FIFO> policy, " |
| 380 |
"the following rules apply:" |
| 381 |
msgstr "" |
| 382 |
|
| 383 |
#. type: IP |
| 384 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 385 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 386 |
#, no-wrap |
| 387 |
msgid "\\[bu]" |
| 388 |
msgstr "" |
| 389 |
|
| 390 |
#. type: Plain text |
| 391 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 392 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 393 |
msgid "" |
| 394 |
"A running B<SCHED_FIFO> thread that has been preempted by another thread of " |
| 395 |
"higher priority will stay at the head of the list for its priority and will " |
| 396 |
"resume execution as soon as all threads of higher priority are blocked again." |
| 397 |
msgstr "" |
| 398 |
|
| 399 |
#. type: Plain text |
| 400 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 401 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 402 |
msgid "" |
| 403 |
"When a blocked B<SCHED_FIFO> thread becomes runnable, it will be inserted at " |
| 404 |
"the end of the list for its priority." |
| 405 |
msgstr "" |
| 406 |
|
| 407 |
#. type: Plain text |
| 408 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 409 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 410 |
msgid "" |
| 411 |
"If a call to B<sched_setscheduler>(2), B<sched_setparam>(2), " |
| 412 |
"B<sched_setattr>(2), B<pthread_setschedparam>(3), or " |
| 413 |
"B<pthread_setschedprio>(3) changes the priority of the running or runnable " |
| 414 |
"B<SCHED_FIFO> thread identified by I<pid> the effect on the thread's " |
| 415 |
"position in the list depends on the direction of the change to the thread's " |
| 416 |
"priority:" |
| 417 |
msgstr "" |
| 418 |
|
| 419 |
#. type: IP |
| 420 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 421 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 422 |
#, no-wrap |
| 423 |
msgid "(a)" |
| 424 |
msgstr "" |
| 425 |
|
| 426 |
#. type: Plain text |
| 427 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 428 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 429 |
msgid "" |
| 430 |
"If the thread's priority is raised, it is placed at the end of the list for " |
| 431 |
"its new priority. As a consequence, it may preempt a currently running " |
| 432 |
"thread with the same priority." |
| 433 |
msgstr "" |
| 434 |
|
| 435 |
#. type: IP |
| 436 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 437 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 438 |
#, no-wrap |
| 439 |
msgid "(b)" |
| 440 |
msgstr "" |
| 441 |
|
| 442 |
#. type: Plain text |
| 443 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 444 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 445 |
msgid "" |
| 446 |
"If the thread's priority is unchanged, its position in the run list is " |
| 447 |
"unchanged." |
| 448 |
msgstr "" |
| 449 |
|
| 450 |
#. type: IP |
| 451 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 452 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 453 |
#, no-wrap |
| 454 |
msgid "(c)" |
| 455 |
msgstr "" |
| 456 |
|
| 457 |
#. type: Plain text |
| 458 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 459 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 460 |
msgid "" |
| 461 |
"If the thread's priority is lowered, it is placed at the front of the list " |
| 462 |
"for its new priority." |
| 463 |
msgstr "" |
| 464 |
|
| 465 |
#. In Linux 2.2.x and Linux 2.4.x, the thread is placed at the front of the queue |
| 466 |
#. In Linux 2.0.x, the Right Thing happened: the thread went to the back -- MTK |
| 467 |
#. type: Plain text |
| 468 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 469 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 470 |
msgid "" |
| 471 |
"According to POSIX.1-2008, changes to a thread's priority (or policy) using " |
| 472 |
"any mechanism other than B<pthread_setschedprio>(3) should result in the " |
| 473 |
"thread being placed at the end of the list for its priority." |
| 474 |
msgstr "" |
| 475 |
|
| 476 |
#. type: Plain text |
| 477 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 478 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 479 |
msgid "A thread calling B<sched_yield>(2) will be put at the end of the list." |
| 480 |
msgstr "" |
| 481 |
|
| 482 |
#. type: Plain text |
| 483 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 484 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 485 |
msgid "" |
| 486 |
"No other events will move a thread scheduled under the B<SCHED_FIFO> policy " |
| 487 |
"in the wait list of runnable threads with equal static priority." |
| 488 |
msgstr "" |
| 489 |
|
| 490 |
#. type: Plain text |
| 491 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 492 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 493 |
msgid "" |
| 494 |
"A B<SCHED_FIFO> thread runs until either it is blocked by an I/O request, it " |
| 495 |
"is preempted by a higher priority thread, or it calls B<sched_yield>(2)." |
| 496 |
msgstr "" |
| 497 |
|
| 498 |
#. type: SS |
| 499 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 500 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 501 |
#, no-wrap |
| 502 |
msgid "SCHED_RR: Round-robin scheduling" |
| 503 |
msgstr "" |
| 504 |
|
| 505 |
#. On Linux 2.4, the length of the RR interval is influenced |
| 506 |
#. by the process nice value -- MTK |
| 507 |
#. type: Plain text |
| 508 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 509 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 510 |
msgid "" |
| 511 |
"B<SCHED_RR> is a simple enhancement of B<SCHED_FIFO>. Everything described " |
| 512 |
"above for B<SCHED_FIFO> also applies to B<SCHED_RR>, except that each thread " |
| 513 |
"is allowed to run only for a maximum time quantum. If a B<SCHED_RR> thread " |
| 514 |
"has been running for a time period equal to or longer than the time quantum, " |
| 515 |
"it will be put at the end of the list for its priority. A B<SCHED_RR> " |
| 516 |
"thread that has been preempted by a higher priority thread and subsequently " |
| 517 |
"resumes execution as a running thread will complete the unexpired portion of " |
| 518 |
"its round-robin time quantum. The length of the time quantum can be " |
| 519 |
"retrieved using B<sched_rr_get_interval>(2)." |
| 520 |
msgstr "" |
| 521 |
|
| 522 |
#. type: SS |
| 523 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 524 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 525 |
#, no-wrap |
| 526 |
msgid "SCHED_DEADLINE: Sporadic task model deadline scheduling" |
| 527 |
msgstr "" |
| 528 |
|
| 529 |
#. type: Plain text |
| 530 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 531 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 532 |
msgid "" |
| 533 |
"Since Linux 3.14, Linux provides a deadline scheduling policy " |
| 534 |
"(B<SCHED_DEADLINE>). This policy is currently implemented using GEDF " |
| 535 |
"(Global Earliest Deadline First) in conjunction with CBS (Constant " |
| 536 |
"Bandwidth Server). To set and fetch this policy and associated attributes, " |
| 537 |
"one must use the Linux-specific B<sched_setattr>(2) and " |
| 538 |
"B<sched_getattr>(2) system calls." |
| 539 |
msgstr "" |
| 540 |
|
| 541 |
#. type: Plain text |
| 542 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 543 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 544 |
msgid "" |
| 545 |
"A sporadic task is one that has a sequence of jobs, where each job is " |
| 546 |
"activated at most once per period. Each job also has a I<relative " |
| 547 |
"deadline>, before which it should finish execution, and a I<computation " |
| 548 |
"time>, which is the CPU time necessary for executing the job. The moment " |
| 549 |
"when a task wakes up because a new job has to be executed is called the " |
| 550 |
"I<arrival time> (also referred to as the request time or release time). The " |
| 551 |
"I<start time> is the time at which a task starts its execution. The " |
| 552 |
"I<absolute deadline> is thus obtained by adding the relative deadline to the " |
| 553 |
"arrival time." |
| 554 |
msgstr "" |
| 555 |
|
| 556 |
#. type: Plain text |
| 557 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 558 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 559 |
msgid "The following diagram clarifies these terms:" |
| 560 |
msgstr "" |
| 561 |
|
| 562 |
#. type: Plain text |
| 563 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 564 |
#: opensuse-tumbleweed |
| 565 |
#, no-wrap |
| 566 |
msgid "" |
| 567 |
"arrival/wakeup absolute deadline\n" |
| 568 |
" | start time |\n" |
| 569 |
" | | |\n" |
| 570 |
" v v v\n" |
| 571 |
"-----x--------xooooooooooooooooo--------x--------x---\n" |
| 572 |
" |E<lt>- comp.\\& time -E<gt>|\n" |
| 573 |
" |E<lt>------- relative deadline ------E<gt>|\n" |
| 574 |
" |E<lt>-------------- period -------------------E<gt>|\n" |
| 575 |
msgstr "" |
| 576 |
|
| 577 |
#. type: Plain text |
| 578 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 579 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 580 |
msgid "" |
| 581 |
"When setting a B<SCHED_DEADLINE> policy for a thread using " |
| 582 |
"B<sched_setattr>(2), one can specify three parameters: I<Runtime>, " |
| 583 |
"I<Deadline>, and I<Period>. These parameters do not necessarily correspond " |
| 584 |
"to the aforementioned terms: usual practice is to set Runtime to something " |
| 585 |
"bigger than the average computation time (or worst-case execution time for " |
| 586 |
"hard real-time tasks), Deadline to the relative deadline, and Period to the " |
| 587 |
"period of the task. Thus, for B<SCHED_DEADLINE> scheduling, we have:" |
| 588 |
msgstr "" |
| 589 |
|
| 590 |
#. type: Plain text |
| 591 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 592 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 593 |
#, no-wrap |
| 594 |
msgid "" |
| 595 |
"arrival/wakeup absolute deadline\n" |
| 596 |
" | start time |\n" |
| 597 |
" | | |\n" |
| 598 |
" v v v\n" |
| 599 |
"-----x--------xooooooooooooooooo--------x--------x---\n" |
| 600 |
" |E<lt>-- Runtime -------E<gt>|\n" |
| 601 |
" |E<lt>----------- Deadline -----------E<gt>|\n" |
| 602 |
" |E<lt>-------------- Period -------------------E<gt>|\n" |
| 603 |
msgstr "" |
| 604 |
|
| 605 |
#. FIXME It looks as though specifying sched_period as 0 means |
| 606 |
#. "make sched_period the same as sched_deadline". |
| 607 |
#. This needs to be documented. |
| 608 |
#. type: Plain text |
| 609 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 610 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 611 |
msgid "" |
| 612 |
"The three deadline-scheduling parameters correspond to the I<sched_runtime>, " |
| 613 |
"I<sched_deadline>, and I<sched_period> fields of the I<sched_attr> " |
| 614 |
"structure; see B<sched_setattr>(2). These fields express values in " |
| 615 |
"nanoseconds. If I<sched_period> is specified as 0, then it is made the same " |
| 616 |
"as I<sched_deadline>." |
| 617 |
msgstr "" |
| 618 |
|
| 619 |
#. type: Plain text |
| 620 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 621 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 622 |
msgid "The kernel requires that:" |
| 623 |
msgstr "" |
| 624 |
|
| 625 |
#. type: Plain text |
| 626 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 627 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 628 |
#, no-wrap |
| 629 |
msgid "sched_runtime E<lt>= sched_deadline E<lt>= sched_period\n" |
| 630 |
msgstr "" |
| 631 |
|
| 632 |
#. See __checkparam_dl in kernel/sched/core.c |
| 633 |
#. type: Plain text |
| 634 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 635 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 636 |
msgid "" |
| 637 |
"In addition, under the current implementation, all of the parameter values " |
| 638 |
"must be at least 1024 (i.e., just over one microsecond, which is the " |
| 639 |
"resolution of the implementation), and less than 2\\[ha]63. If any of these " |
| 640 |
"checks fails, B<sched_setattr>(2) fails with the error B<EINVAL>." |
| 641 |
msgstr "" |
| 642 |
|
| 643 |
#. type: Plain text |
| 644 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 645 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 646 |
msgid "" |
| 647 |
"The CBS guarantees non-interference between tasks, by throttling threads " |
| 648 |
"that attempt to over-run their specified Runtime." |
| 649 |
msgstr "" |
| 650 |
|
| 651 |
#. type: Plain text |
| 652 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 653 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 654 |
msgid "" |
| 655 |
"To ensure deadline scheduling guarantees, the kernel must prevent situations " |
| 656 |
"where the set of B<SCHED_DEADLINE> threads is not feasible (schedulable) " |
| 657 |
"within the given constraints. The kernel thus performs an admittance test " |
| 658 |
"when setting or changing B<SCHED_DEADLINE> policy and attributes. This " |
| 659 |
"admission test calculates whether the change is feasible; if it is not, " |
| 660 |
"B<sched_setattr>(2) fails with the error B<EBUSY>." |
| 661 |
msgstr "" |
| 662 |
|
| 663 |
#. type: Plain text |
| 664 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 665 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 666 |
msgid "" |
| 667 |
"For example, it is required (but not necessarily sufficient) for the total " |
| 668 |
"utilization to be less than or equal to the total number of CPUs available, " |
| 669 |
"where, since each thread can maximally run for Runtime per Period, that " |
| 670 |
"thread's utilization is its Runtime divided by its Period." |
| 671 |
msgstr "" |
| 672 |
|
| 673 |
#. type: Plain text |
| 674 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 675 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 676 |
msgid "" |
| 677 |
"In order to fulfill the guarantees that are made when a thread is admitted " |
| 678 |
"to the B<SCHED_DEADLINE> policy, B<SCHED_DEADLINE> threads are the highest " |
| 679 |
"priority (user controllable) threads in the system; if any B<SCHED_DEADLINE> " |
| 680 |
"thread is runnable, it will preempt any thread scheduled under one of the " |
| 681 |
"other policies." |
| 682 |
msgstr "" |
| 683 |
|
| 684 |
#. type: Plain text |
| 685 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 686 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 687 |
msgid "" |
| 688 |
"A call to B<fork>(2) by a thread scheduled under the B<SCHED_DEADLINE> " |
| 689 |
"policy fails with the error B<EAGAIN>, unless the thread has its reset-on-" |
| 690 |
"fork flag set (see below)." |
| 691 |
msgstr "" |
| 692 |
|
| 693 |
# |
| 694 |
#. FIXME Calling sched_getparam() on a SCHED_DEADLINE thread |
| 695 |
#. fails with EINVAL, but sched_getscheduler() succeeds. |
| 696 |
#. Is that intended? (Why?) |
| 697 |
#. type: Plain text |
| 698 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 699 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 700 |
msgid "" |
| 701 |
"A B<SCHED_DEADLINE> thread that calls B<sched_yield>(2) will yield the " |
| 702 |
"current job and wait for a new period to begin." |
| 703 |
msgstr "" |
| 704 |
|
| 705 |
#. type: SS |
| 706 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 707 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 708 |
#, no-wrap |
| 709 |
msgid "SCHED_OTHER: Default Linux time-sharing scheduling" |
| 710 |
msgstr "" |
| 711 |
|
| 712 |
#. type: Plain text |
| 713 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 714 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 715 |
msgid "" |
| 716 |
"B<SCHED_OTHER> can be used at only static priority 0 (i.e., threads under " |
| 717 |
"real-time policies always have priority over B<SCHED_OTHER> processes). " |
| 718 |
"B<SCHED_OTHER> is the standard Linux time-sharing scheduler that is intended " |
| 719 |
"for all threads that do not require the special real-time mechanisms." |
| 720 |
msgstr "" |
| 721 |
|
| 722 |
#. type: Plain text |
| 723 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 724 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 725 |
msgid "" |
| 726 |
"The thread to run is chosen from the static priority 0 list based on a " |
| 727 |
"I<dynamic> priority that is determined only inside this list. The dynamic " |
| 728 |
"priority is based on the nice value (see below) and is increased for each " |
| 729 |
"time quantum the thread is ready to run, but denied to run by the " |
| 730 |
"scheduler. This ensures fair progress among all B<SCHED_OTHER> threads." |
| 731 |
msgstr "" |
| 732 |
|
| 733 |
#. type: Plain text |
| 734 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 735 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 736 |
msgid "" |
| 737 |
"In the Linux kernel source code, the B<SCHED_OTHER> policy is actually named " |
| 738 |
"B<SCHED_NORMAL>." |
| 739 |
msgstr "" |
| 740 |
|
| 741 |
#. type: SS |
| 742 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 743 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 744 |
#, no-wrap |
| 745 |
msgid "The nice value" |
| 746 |
msgstr "" |
| 747 |
|
| 748 |
#. type: Plain text |
| 749 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 750 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 751 |
msgid "" |
| 752 |
"The nice value is an attribute that can be used to influence the CPU " |
| 753 |
"scheduler to favor or disfavor a process in scheduling decisions. It " |
| 754 |
"affects the scheduling of B<SCHED_OTHER> and B<SCHED_BATCH> (see below) " |
| 755 |
"processes. The nice value can be modified using B<nice>(2), " |
| 756 |
"B<setpriority>(2), or B<sched_setattr>(2)." |
| 757 |
msgstr "" |
| 758 |
|
| 759 |
#. type: Plain text |
| 760 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 761 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 762 |
msgid "" |
| 763 |
"According to POSIX.1, the nice value is a per-process attribute; that is, " |
| 764 |
"the threads in a process should share a nice value. However, on Linux, the " |
| 765 |
"nice value is a per-thread attribute: different threads in the same process " |
| 766 |
"may have different nice values." |
| 767 |
msgstr "" |
| 768 |
|
| 769 |
#. Linux before 1.3.36 had \-infinity..15. |
| 770 |
#. Since Linux 1.3.43, Linux has the range \-20..19. |
| 771 |
#. type: Plain text |
| 772 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 773 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 774 |
msgid "" |
| 775 |
"The range of the nice value varies across UNIX systems. On modern Linux, " |
| 776 |
"the range is -20 (high priority) to +19 (low priority). On some other " |
| 777 |
"systems, the range is -20..20. Very early Linux kernels (before Linux 2.0) " |
| 778 |
"had the range -infinity..15." |
| 779 |
msgstr "" |
| 780 |
|
| 781 |
#. type: Plain text |
| 782 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 783 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 784 |
msgid "" |
| 785 |
"The degree to which the nice value affects the relative scheduling of " |
| 786 |
"B<SCHED_OTHER> processes likewise varies across UNIX systems and across " |
| 787 |
"Linux kernel versions." |
| 788 |
msgstr "" |
| 789 |
|
| 790 |
#. type: Plain text |
| 791 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 792 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 793 |
msgid "" |
| 794 |
"With the advent of the CFS scheduler in Linux 2.6.23, Linux adopted an " |
| 795 |
"algorithm that causes relative differences in nice values to have a much " |
| 796 |
"stronger effect. In the current implementation, each unit of difference in " |
| 797 |
"the nice values of two processes results in a factor of 1.25 in the degree " |
| 798 |
"to which the scheduler favors the higher priority process. This causes very " |
| 799 |
"low nice values (+19) to truly provide little CPU to a process whenever " |
| 800 |
"there is any other higher priority load on the system, and makes high nice " |
| 801 |
"values (-20) deliver most of the CPU to applications that require it (e.g., " |
| 802 |
"some audio applications)." |
| 803 |
msgstr "" |
| 804 |
|
| 805 |
#. type: Plain text |
| 806 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 807 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 808 |
msgid "" |
| 809 |
"On Linux, the B<RLIMIT_NICE> resource limit can be used to define a limit to " |
| 810 |
"which an unprivileged process's nice value can be raised; see " |
| 811 |
"B<setrlimit>(2) for details." |
| 812 |
msgstr "" |
| 813 |
|
| 814 |
#. type: Plain text |
| 815 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 816 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 817 |
msgid "" |
| 818 |
"For further details on the nice value, see the subsections on the autogroup " |
| 819 |
"feature and group scheduling, below." |
| 820 |
msgstr "" |
| 821 |
|
| 822 |
#. type: SS |
| 823 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 824 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 825 |
#, no-wrap |
| 826 |
msgid "SCHED_BATCH: Scheduling batch processes" |
| 827 |
msgstr "" |
| 828 |
|
| 829 |
#. type: Plain text |
| 830 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 831 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 832 |
msgid "" |
| 833 |
"(Since Linux 2.6.16.) B<SCHED_BATCH> can be used only at static priority " |
| 834 |
"0. This policy is similar to B<SCHED_OTHER> in that it schedules the thread " |
| 835 |
"according to its dynamic priority (based on the nice value). The difference " |
| 836 |
"is that this policy will cause the scheduler to always assume that the " |
| 837 |
"thread is CPU-intensive. Consequently, the scheduler will apply a small " |
| 838 |
"scheduling penalty with respect to wakeup behavior, so that this thread is " |
| 839 |
"mildly disfavored in scheduling decisions." |
| 840 |
msgstr "" |
| 841 |
|
| 842 |
#. The following paragraph is drawn largely from the text that |
| 843 |
#. accompanied Ingo Molnar's patch for the implementation of |
| 844 |
#. SCHED_BATCH. |
| 845 |
#. commit b0a9499c3dd50d333e2aedb7e894873c58da3785 |
| 846 |
#. type: Plain text |
| 847 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 848 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 849 |
msgid "" |
| 850 |
"This policy is useful for workloads that are noninteractive, but do not want " |
| 851 |
"to lower their nice value, and for workloads that want a deterministic " |
| 852 |
"scheduling policy without interactivity causing extra preemptions (between " |
| 853 |
"the workload's tasks)." |
| 854 |
msgstr "" |
| 855 |
|
| 856 |
#. type: SS |
| 857 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 858 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 859 |
#, no-wrap |
| 860 |
msgid "SCHED_IDLE: Scheduling very low priority jobs" |
| 861 |
msgstr "" |
| 862 |
|
| 863 |
#. type: Plain text |
| 864 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 865 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 866 |
msgid "" |
| 867 |
"(Since Linux 2.6.23.) B<SCHED_IDLE> can be used only at static priority 0; " |
| 868 |
"the process nice value has no influence for this policy." |
| 869 |
msgstr "" |
| 870 |
|
| 871 |
#. type: Plain text |
| 872 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 873 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 874 |
msgid "" |
| 875 |
"This policy is intended for running jobs at extremely low priority (lower " |
| 876 |
"even than a +19 nice value with the B<SCHED_OTHER> or B<SCHED_BATCH> " |
| 877 |
"policies)." |
| 878 |
msgstr "" |
| 879 |
|
| 880 |
#. type: SS |
| 881 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 882 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 883 |
#, no-wrap |
| 884 |
msgid "Resetting scheduling policy for child processes" |
| 885 |
msgstr "" |
| 886 |
|
| 887 |
#. type: Plain text |
| 888 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 889 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 890 |
msgid "" |
| 891 |
"Each thread has a reset-on-fork scheduling flag. When this flag is set, " |
| 892 |
"children created by B<fork>(2) do not inherit privileged scheduling " |
| 893 |
"policies. The reset-on-fork flag can be set by either:" |
| 894 |
msgstr "" |
| 895 |
|
| 896 |
#. type: Plain text |
| 897 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 898 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 899 |
msgid "" |
| 900 |
"ORing the B<SCHED_RESET_ON_FORK> flag into the I<policy> argument when " |
| 901 |
"calling B<sched_setscheduler>(2) (since Linux 2.6.32); or" |
| 902 |
msgstr "" |
| 903 |
|
| 904 |
#. type: Plain text |
| 905 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 906 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 907 |
msgid "" |
| 908 |
"specifying the B<SCHED_FLAG_RESET_ON_FORK> flag in I<attr.sched_flags> when " |
| 909 |
"calling B<sched_setattr>(2)." |
| 910 |
msgstr "" |
| 911 |
|
| 912 |
#. type: Plain text |
| 913 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 914 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 915 |
msgid "" |
| 916 |
"Note that the constants used with these two APIs have different names. The " |
| 917 |
"state of the reset-on-fork flag can analogously be retrieved using " |
| 918 |
"B<sched_getscheduler>(2) and B<sched_getattr>(2)." |
| 919 |
msgstr "" |
| 920 |
|
| 921 |
#. type: Plain text |
| 922 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 923 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 924 |
msgid "" |
| 925 |
"The reset-on-fork feature is intended for media-playback applications, and " |
| 926 |
"can be used to prevent applications evading the B<RLIMIT_RTTIME> resource " |
| 927 |
"limit (see B<getrlimit>(2)) by creating multiple child processes." |
| 928 |
msgstr "" |
| 929 |
|
| 930 |
#. type: Plain text |
| 931 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 932 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 933 |
msgid "" |
| 934 |
"More precisely, if the reset-on-fork flag is set, the following rules apply " |
| 935 |
"for subsequently created children:" |
| 936 |
msgstr "" |
| 937 |
|
| 938 |
#. type: Plain text |
| 939 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 940 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 941 |
msgid "" |
| 942 |
"If the calling thread has a scheduling policy of B<SCHED_FIFO> or " |
| 943 |
"B<SCHED_RR>, the policy is reset to B<SCHED_OTHER> in child processes." |
| 944 |
msgstr "" |
| 945 |
|
| 946 |
#. type: Plain text |
| 947 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 948 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 949 |
msgid "" |
| 950 |
"If the calling process has a negative nice value, the nice value is reset to " |
| 951 |
"zero in child processes." |
| 952 |
msgstr "" |
| 953 |
|
| 954 |
#. type: Plain text |
| 955 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 956 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 957 |
msgid "" |
| 958 |
"After the reset-on-fork flag has been enabled, it can be reset only if the " |
| 959 |
"thread has the B<CAP_SYS_NICE> capability. This flag is disabled in child " |
| 960 |
"processes created by B<fork>(2)." |
| 961 |
msgstr "" |
| 962 |
|
| 963 |
#. type: SS |
| 964 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 965 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 966 |
#, no-wrap |
| 967 |
msgid "Privileges and resource limits" |
| 968 |
msgstr "" |
| 969 |
|
| 970 |
#. type: Plain text |
| 971 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 972 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 973 |
msgid "" |
| 974 |
"Before Linux 2.6.12, only privileged (B<CAP_SYS_NICE>) threads can set a " |
| 975 |
"nonzero static priority (i.e., set a real-time scheduling policy). The only " |
| 976 |
"change that an unprivileged thread can make is to set the B<SCHED_OTHER> " |
| 977 |
"policy, and this can be done only if the effective user ID of the caller " |
| 978 |
"matches the real or effective user ID of the target thread (i.e., the thread " |
| 979 |
"specified by I<pid>) whose policy is being changed." |
| 980 |
msgstr "" |
| 981 |
|
| 982 |
#. type: Plain text |
| 983 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 984 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 985 |
msgid "" |
| 986 |
"A thread must be privileged (B<CAP_SYS_NICE>) in order to set or modify a " |
| 987 |
"B<SCHED_DEADLINE> policy." |
| 988 |
msgstr "" |
| 989 |
|
| 990 |
#. type: Plain text |
| 991 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 992 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 993 |
msgid "" |
| 994 |
"Since Linux 2.6.12, the B<RLIMIT_RTPRIO> resource limit defines a ceiling on " |
| 995 |
"an unprivileged thread's static priority for the B<SCHED_RR> and " |
| 996 |
"B<SCHED_FIFO> policies. The rules for changing scheduling policy and " |
| 997 |
"priority are as follows:" |
| 998 |
msgstr "" |
| 999 |
|
| 1000 |
#. type: Plain text |
| 1001 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1002 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1003 |
msgid "" |
| 1004 |
"If an unprivileged thread has a nonzero B<RLIMIT_RTPRIO> soft limit, then it " |
| 1005 |
"can change its scheduling policy and priority, subject to the restriction " |
| 1006 |
"that the priority cannot be set to a value higher than the maximum of its " |
| 1007 |
"current priority and its B<RLIMIT_RTPRIO> soft limit." |
| 1008 |
msgstr "" |
| 1009 |
|
| 1010 |
#. type: Plain text |
| 1011 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1012 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1013 |
msgid "" |
| 1014 |
"If the B<RLIMIT_RTPRIO> soft limit is 0, then the only permitted changes are " |
| 1015 |
"to lower the priority, or to switch to a non-real-time policy." |
| 1016 |
msgstr "" |
| 1017 |
|
| 1018 |
#. type: Plain text |
| 1019 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1020 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1021 |
msgid "" |
| 1022 |
"Subject to the same rules, another unprivileged thread can also make these " |
| 1023 |
"changes, as long as the effective user ID of the thread making the change " |
| 1024 |
"matches the real or effective user ID of the target thread." |
| 1025 |
msgstr "" |
| 1026 |
|
| 1027 |
#. commit c02aa73b1d18e43cfd79c2f193b225e84ca497c8 |
| 1028 |
#. type: Plain text |
| 1029 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1030 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1031 |
msgid "" |
| 1032 |
"Special rules apply for the B<SCHED_IDLE> policy. Before Linux 2.6.39, an " |
| 1033 |
"unprivileged thread operating under this policy cannot change its policy, " |
| 1034 |
"regardless of the value of its B<RLIMIT_RTPRIO> resource limit. Since Linux " |
| 1035 |
"2.6.39, an unprivileged thread can switch to either the B<SCHED_BATCH> or " |
| 1036 |
"the B<SCHED_OTHER> policy so long as its nice value falls within the range " |
| 1037 |
"permitted by its B<RLIMIT_NICE> resource limit (see B<getrlimit>(2))." |
| 1038 |
msgstr "" |
| 1039 |
|
| 1040 |
#. type: Plain text |
| 1041 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1042 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1043 |
msgid "" |
| 1044 |
"Privileged (B<CAP_SYS_NICE>) threads ignore the B<RLIMIT_RTPRIO> limit; as " |
| 1045 |
"with older kernels, they can make arbitrary changes to scheduling policy and " |
| 1046 |
"priority. See B<getrlimit>(2) for further information on B<RLIMIT_RTPRIO>." |
| 1047 |
msgstr "" |
| 1048 |
|
| 1049 |
#. type: SS |
| 1050 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1051 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1052 |
#, no-wrap |
| 1053 |
msgid "Limiting the CPU usage of real-time and deadline processes" |
| 1054 |
msgstr "" |
| 1055 |
|
| 1056 |
#. type: Plain text |
| 1057 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1058 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1059 |
msgid "" |
| 1060 |
"A nonblocking infinite loop in a thread scheduled under the B<SCHED_FIFO>, " |
| 1061 |
"B<SCHED_RR>, or B<SCHED_DEADLINE> policy can potentially block all other " |
| 1062 |
"threads from accessing the CPU forever. Before Linux 2.6.25, the only way " |
| 1063 |
"of preventing a runaway real-time process from freezing the system was to " |
| 1064 |
"run (at the console) a shell scheduled under a higher static priority than " |
| 1065 |
"the tested application. This allows an emergency kill of tested real-time " |
| 1066 |
"applications that do not block or terminate as expected." |
| 1067 |
msgstr "" |
| 1068 |
|
| 1069 |
#. type: Plain text |
| 1070 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1071 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1072 |
msgid "" |
| 1073 |
"Since Linux 2.6.25, there are other techniques for dealing with runaway real-" |
| 1074 |
"time and deadline processes. One of these is to use the B<RLIMIT_RTTIME> " |
| 1075 |
"resource limit to set a ceiling on the CPU time that a real-time process may " |
| 1076 |
"consume. See B<getrlimit>(2) for details." |
| 1077 |
msgstr "" |
| 1078 |
|
| 1079 |
#. type: Plain text |
| 1080 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1081 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1082 |
msgid "" |
| 1083 |
"Since Linux 2.6.25, Linux also provides two I</proc> files that can be used " |
| 1084 |
"to reserve a certain amount of CPU time to be used by non-real-time " |
| 1085 |
"processes. Reserving CPU time in this fashion allows some CPU time to be " |
| 1086 |
"allocated to (say) a root shell that can be used to kill a runaway process. " |
| 1087 |
"Both of these files specify time values in microseconds:" |
| 1088 |
msgstr "" |
| 1089 |
|
| 1090 |
#. type: TP |
| 1091 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1092 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1093 |
#, no-wrap |
| 1094 |
msgid "I</proc/sys/kernel/sched_rt_period_us>" |
| 1095 |
msgstr "" |
| 1096 |
|
| 1097 |
#. type: Plain text |
| 1098 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1099 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1100 |
msgid "" |
| 1101 |
"This file specifies a scheduling period that is equivalent to 100% CPU " |
| 1102 |
"bandwidth. The value in this file can range from 1 to B<INT_MAX>, giving an " |
| 1103 |
"operating range of 1 microsecond to around 35 minutes. The default value in " |
| 1104 |
"this file is 1,000,000 (1 second)." |
| 1105 |
msgstr "" |
| 1106 |
|
| 1107 |
#. type: TP |
| 1108 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1109 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1110 |
#, no-wrap |
| 1111 |
msgid "I</proc/sys/kernel/sched_rt_runtime_us>" |
| 1112 |
msgstr "" |
| 1113 |
|
| 1114 |
#. type: Plain text |
| 1115 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1116 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1117 |
msgid "" |
| 1118 |
"The value in this file specifies how much of the \"period\" time can be used " |
| 1119 |
"by all real-time and deadline scheduled processes on the system. The value " |
| 1120 |
"in this file can range from -1 to B<INT_MAX>-1. Specifying -1 makes the run " |
| 1121 |
"time the same as the period; that is, no CPU time is set aside for non-real-" |
| 1122 |
"time processes (which was the behavior before Linux 2.6.25). The default " |
| 1123 |
"value in this file is 950,000 (0.95 seconds), meaning that 5% of the CPU " |
| 1124 |
"time is reserved for processes that don't run under a real-time or deadline " |
| 1125 |
"scheduling policy." |
| 1126 |
msgstr "" |
| 1127 |
|
| 1128 |
#. type: SS |
| 1129 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1130 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1131 |
#, no-wrap |
| 1132 |
msgid "Response time" |
| 1133 |
msgstr "" |
| 1134 |
|
| 1135 |
#. as described in |
| 1136 |
#. .BR request_irq (9). |
| 1137 |
#. type: Plain text |
| 1138 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1139 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1140 |
msgid "" |
| 1141 |
"A blocked high priority thread waiting for I/O has a certain response time " |
| 1142 |
"before it is scheduled again. The device driver writer can greatly reduce " |
| 1143 |
"this response time by using a \"slow interrupt\" interrupt handler." |
| 1144 |
msgstr "" |
| 1145 |
|
| 1146 |
#. type: SS |
| 1147 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1148 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1149 |
#, no-wrap |
| 1150 |
msgid "Miscellaneous" |
| 1151 |
msgstr "" |
| 1152 |
|
| 1153 |
#. type: Plain text |
| 1154 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1155 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1156 |
msgid "" |
| 1157 |
"Child processes inherit the scheduling policy and parameters across a " |
| 1158 |
"B<fork>(2). The scheduling policy and parameters are preserved across " |
| 1159 |
"B<execve>(2)." |
| 1160 |
msgstr "" |
| 1161 |
|
| 1162 |
#. type: Plain text |
| 1163 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1164 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1165 |
msgid "" |
| 1166 |
"Memory locking is usually needed for real-time processes to avoid paging " |
| 1167 |
"delays; this can be done with B<mlock>(2) or B<mlockall>(2)." |
| 1168 |
msgstr "" |
| 1169 |
|
| 1170 |
#. type: SS |
| 1171 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1172 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1173 |
#, no-wrap |
| 1174 |
msgid "The autogroup feature" |
| 1175 |
msgstr "" |
| 1176 |
|
| 1177 |
#. commit 5091faa449ee0b7d73bc296a93bca9540fc51d0a |
| 1178 |
#. type: Plain text |
| 1179 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1180 |
#: opensuse-tumbleweed |
| 1181 |
msgid "" |
| 1182 |
"Since Linux 2.6.38, the kernel provides a feature known as autogrouping to " |
| 1183 |
"improve interactive desktop performance in the face of multiprocess CPU-" |
| 1184 |
"intensive workloads such as building the Linux kernel with large numbers of " |
| 1185 |
"parallel build processes (i.e., the B<make>(1) B<-j> flag)." |
| 1186 |
msgstr "" |
| 1187 |
|
| 1188 |
#. type: Plain text |
| 1189 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1190 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1191 |
msgid "" |
| 1192 |
"This feature operates in conjunction with the CFS scheduler and requires a " |
| 1193 |
"kernel that is configured with B<CONFIG_SCHED_AUTOGROUP>. On a running " |
| 1194 |
"system, this feature is enabled or disabled via the file I</proc/sys/kernel/" |
| 1195 |
"sched_autogroup_enabled>; a value of 0 disables the feature, while a value " |
| 1196 |
"of 1 enables it. The default value in this file is 1, unless the kernel was " |
| 1197 |
"booted with the I<noautogroup> parameter." |
| 1198 |
msgstr "" |
| 1199 |
|
| 1200 |
#. type: Plain text |
| 1201 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1202 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1203 |
msgid "" |
| 1204 |
"A new autogroup is created when a new session is created via B<setsid>(2); " |
| 1205 |
"this happens, for example, when a new terminal window is started. A new " |
| 1206 |
"process created by B<fork>(2) inherits its parent's autogroup membership. " |
| 1207 |
"Thus, all of the processes in a session are members of the same autogroup. " |
| 1208 |
"An autogroup is automatically destroyed when the last process in the group " |
| 1209 |
"terminates." |
| 1210 |
msgstr "" |
| 1211 |
|
| 1212 |
#. type: Plain text |
| 1213 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1214 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1215 |
msgid "" |
| 1216 |
"When autogrouping is enabled, all of the members of an autogroup are placed " |
| 1217 |
"in the same kernel scheduler \"task group\". When disabled, the group " |
| 1218 |
"creation happens as above, and autogroup membership is still visible in I</" |
| 1219 |
"proc>, but the autogroups are not used. The CFS scheduler employs an " |
| 1220 |
"algorithm that equalizes the distribution of CPU cycles across task groups. " |
| 1221 |
"The benefits of this for interactive desktop performance can be described " |
| 1222 |
"via the following example." |
| 1223 |
msgstr "" |
| 1224 |
|
| 1225 |
#. Mike Galbraith, 25 Nov 2016: |
| 1226 |
#. I'd say something more wishy-washy here, like cycles are |
| 1227 |
#. distributed fairly across groups and leave it at that, as your |
| 1228 |
#. detailed example is incorrect due to SMP fairness (which I don't |
| 1229 |
#. like much because [very unlikely] worst case scenario |
| 1230 |
#. renders a box sized group incapable of utilizing more that |
| 1231 |
#. a single CPU total). For example, if a group of NR_CPUS |
| 1232 |
#. size competes with a singleton, load balancing will try to give |
| 1233 |
#. the singleton a full CPU of its very own. If groups intersect for |
| 1234 |
#. whatever reason on say my quad lappy, distribution is 80/20 in |
| 1235 |
#. favor of the singleton. |
| 1236 |
#. type: Plain text |
| 1237 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1238 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1239 |
msgid "" |
| 1240 |
"Suppose that there are two autogroups competing for the same CPU (i.e., " |
| 1241 |
"presume either a single CPU system or the use of B<taskset>(1) to confine " |
| 1242 |
"all the processes to the same CPU on an SMP system). The first group " |
| 1243 |
"contains ten CPU-bound processes from a kernel build started with I<make\\ " |
| 1244 |
"-j10>. The other contains a single CPU-bound process: a video player. The " |
| 1245 |
"effect of autogrouping is that the two groups will each receive half of the " |
| 1246 |
"CPU cycles. That is, the video player will receive 50% of the CPU cycles, " |
| 1247 |
"rather than just 9% of the cycles, which would likely lead to degraded video " |
| 1248 |
"playback. The situation on an SMP system is more complex, but the general " |
| 1249 |
"effect is the same: the scheduler distributes CPU cycles across task groups " |
| 1250 |
"such that an autogroup that contains a large number of CPU-bound processes " |
| 1251 |
"does not end up hogging CPU cycles at the expense of the other jobs on the " |
| 1252 |
"system." |
| 1253 |
msgstr "" |
| 1254 |
|
| 1255 |
#. type: Plain text |
| 1256 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1257 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1258 |
msgid "" |
| 1259 |
"A process's autogroup (task group) membership can be viewed via the file I</" |
| 1260 |
"proc/>pidI</autogroup>:" |
| 1261 |
msgstr "" |
| 1262 |
|
| 1263 |
#. type: Plain text |
| 1264 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1265 |
#: opensuse-tumbleweed |
| 1266 |
#, no-wrap |
| 1267 |
msgid "" |
| 1268 |
"$B< cat /proc/1/autogroup>\n" |
| 1269 |
"/autogroup-1 nice 0\n" |
| 1270 |
msgstr "" |
| 1271 |
|
| 1272 |
# |
| 1273 |
#. FIXME . |
| 1274 |
#. Because of a bug introduced in Linux 4.7 |
| 1275 |
#. (commit 2159197d66770ec01f75c93fb11dc66df81fd45b made changes |
| 1276 |
#. that exposed the fact that autogroup didn't call scale_load()), |
| 1277 |
#. it happened that *all* values in this range caused a task group |
| 1278 |
#. to be further disfavored by the scheduler, with \-20 resulting |
| 1279 |
#. in the scheduler mildly disfavoring the task group and +19 greatly |
| 1280 |
#. disfavoring it. |
| 1281 |
#. A patch was posted on 23 Nov 2016 |
| 1282 |
#. ("sched/autogroup: Fix 64bit kernel nice adjustment"; |
| 1283 |
#. check later to see in which kernel version it lands. |
| 1284 |
#. type: Plain text |
| 1285 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1286 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1287 |
msgid "" |
| 1288 |
"This file can also be used to modify the CPU bandwidth allocated to an " |
| 1289 |
"autogroup. This is done by writing a number in the \"nice\" range to the " |
| 1290 |
"file to set the autogroup's nice value. The allowed range is from +19 (low " |
| 1291 |
"priority) to -20 (high priority). (Writing values outside of this range " |
| 1292 |
"causes B<write>(2) to fail with the error B<EINVAL>.)" |
| 1293 |
msgstr "" |
| 1294 |
|
| 1295 |
#. type: Plain text |
| 1296 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1297 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1298 |
msgid "" |
| 1299 |
"The autogroup nice setting has the same meaning as the process nice value, " |
| 1300 |
"but applies to distribution of CPU cycles to the autogroup as a whole, based " |
| 1301 |
"on the relative nice values of other autogroups. For a process inside an " |
| 1302 |
"autogroup, the CPU cycles that it receives will be a product of the " |
| 1303 |
"autogroup's nice value (compared to other autogroups) and the process's " |
| 1304 |
"nice value (compared to other processes in the same autogroup." |
| 1305 |
msgstr "" |
| 1306 |
|
| 1307 |
#. type: Plain text |
| 1308 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1309 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1310 |
msgid "" |
| 1311 |
"The use of the B<cgroups>(7) CPU controller to place processes in cgroups " |
| 1312 |
"other than the root CPU cgroup overrides the effect of autogrouping." |
| 1313 |
msgstr "" |
| 1314 |
|
| 1315 |
#. type: Plain text |
| 1316 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1317 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1318 |
msgid "" |
| 1319 |
"The autogroup feature groups only processes scheduled under non-real-time " |
| 1320 |
"policies (B<SCHED_OTHER>, B<SCHED_BATCH>, and B<SCHED_IDLE>). It does not " |
| 1321 |
"group processes scheduled under real-time and deadline policies. Those " |
| 1322 |
"processes are scheduled according to the rules described earlier." |
| 1323 |
msgstr "" |
| 1324 |
|
| 1325 |
#. type: SS |
| 1326 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1327 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1328 |
#, no-wrap |
| 1329 |
msgid "The nice value and group scheduling" |
| 1330 |
msgstr "" |
| 1331 |
|
| 1332 |
#. type: Plain text |
| 1333 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1334 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1335 |
msgid "" |
| 1336 |
"When scheduling non-real-time processes (i.e., those scheduled under the " |
| 1337 |
"B<SCHED_OTHER>, B<SCHED_BATCH>, and B<SCHED_IDLE> policies), the CFS " |
| 1338 |
"scheduler employs a technique known as \"group scheduling\", if the kernel " |
| 1339 |
"was configured with the B<CONFIG_FAIR_GROUP_SCHED> option (which is typical)." |
| 1340 |
msgstr "" |
| 1341 |
|
| 1342 |
#. type: Plain text |
| 1343 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1344 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1345 |
msgid "" |
| 1346 |
"Under group scheduling, threads are scheduled in \"task groups\". Task " |
| 1347 |
"groups have a hierarchical relationship, rooted under the initial task group " |
| 1348 |
"on the system, known as the \"root task group\". Task groups are formed in " |
| 1349 |
"the following circumstances:" |
| 1350 |
msgstr "" |
| 1351 |
|
| 1352 |
#. type: Plain text |
| 1353 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1354 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1355 |
msgid "" |
| 1356 |
"All of the threads in a CPU cgroup form a task group. The parent of this " |
| 1357 |
"task group is the task group of the corresponding parent cgroup." |
| 1358 |
msgstr "" |
| 1359 |
|
| 1360 |
#. type: Plain text |
| 1361 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1362 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1363 |
msgid "" |
| 1364 |
"If autogrouping is enabled, then all of the threads that are (implicitly) " |
| 1365 |
"placed in an autogroup (i.e., the same session, as created by B<setsid>(2)) " |
| 1366 |
"form a task group. Each new autogroup is thus a separate task group. The " |
| 1367 |
"root task group is the parent of all such autogroups." |
| 1368 |
msgstr "" |
| 1369 |
|
| 1370 |
#. type: Plain text |
| 1371 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1372 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1373 |
msgid "" |
| 1374 |
"If autogrouping is enabled, then the root task group consists of all " |
| 1375 |
"processes in the root CPU cgroup that were not otherwise implicitly placed " |
| 1376 |
"into a new autogroup." |
| 1377 |
msgstr "" |
| 1378 |
|
| 1379 |
#. type: Plain text |
| 1380 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1381 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1382 |
msgid "" |
| 1383 |
"If autogrouping is disabled, then the root task group consists of all " |
| 1384 |
"processes in the root CPU cgroup." |
| 1385 |
msgstr "" |
| 1386 |
|
| 1387 |
#. type: Plain text |
| 1388 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1389 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1390 |
msgid "" |
| 1391 |
"If group scheduling was disabled (i.e., the kernel was configured without " |
| 1392 |
"B<CONFIG_FAIR_GROUP_SCHED>), then all of the processes on the system are " |
| 1393 |
"notionally placed in a single task group." |
| 1394 |
msgstr "" |
| 1395 |
|
| 1396 |
#. type: Plain text |
| 1397 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1398 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1399 |
msgid "" |
| 1400 |
"Under group scheduling, a thread's nice value has an effect for scheduling " |
| 1401 |
"decisions I<only relative to other threads in the same task group>. This " |
| 1402 |
"has some surprising consequences in terms of the traditional semantics of " |
| 1403 |
"the nice value on UNIX systems. In particular, if autogrouping is enabled " |
| 1404 |
"(which is the default in various distributions), then employing " |
| 1405 |
"B<setpriority>(2) or B<nice>(1) on a process has an effect only for " |
| 1406 |
"scheduling relative to other processes executed in the same session " |
| 1407 |
"(typically: the same terminal window)." |
| 1408 |
msgstr "" |
| 1409 |
|
| 1410 |
#. More succinctly: the nice(1) command is in many cases a no-op since |
| 1411 |
#. Linux 2.6.38. |
| 1412 |
#. type: Plain text |
| 1413 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1414 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1415 |
msgid "" |
| 1416 |
"Conversely, for two processes that are (for example) the sole CPU-bound " |
| 1417 |
"processes in different sessions (e.g., different terminal windows, each of " |
| 1418 |
"whose jobs are tied to different autogroups), I<modifying the nice value of " |
| 1419 |
"the process in one of the sessions> I<has no effect> in terms of the " |
| 1420 |
"scheduler's decisions relative to the process in the other session. A " |
| 1421 |
"possibly useful workaround here is to use a command such as the following to " |
| 1422 |
"modify the autogroup nice value for I<all> of the processes in a terminal " |
| 1423 |
"session:" |
| 1424 |
msgstr "" |
| 1425 |
|
| 1426 |
#. type: Plain text |
| 1427 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1428 |
#: opensuse-tumbleweed |
| 1429 |
#, no-wrap |
| 1430 |
msgid "$B< echo 10 E<gt> /proc/self/autogroup>\n" |
| 1431 |
msgstr "" |
| 1432 |
|
| 1433 |
#. type: SS |
| 1434 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1435 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1436 |
#, no-wrap |
| 1437 |
msgid "Real-time features in the mainline Linux kernel" |
| 1438 |
msgstr "" |
| 1439 |
|
| 1440 |
#. The archaeologist knows about v2.6.9-mm1-V0.1-realtime-preempt |
| 1441 |
#. type: Plain text |
| 1442 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1443 |
#: opensuse-tumbleweed |
| 1444 |
msgid "" |
| 1445 |
"Since Linux 2.6.18, Linux is gradually becoming equipped with real-time " |
| 1446 |
"capabilities, most of which are derived from the former I<realtime-preempt> " |
| 1447 |
"patch set. These patches are named:" |
| 1448 |
msgstr "" |
| 1449 |
|
| 1450 |
#. type: Plain text |
| 1451 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1452 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1453 |
#, no-wrap |
| 1454 |
msgid "patch-I<kernelversion>-rtI<patchversion>\n" |
| 1455 |
msgstr "" |
| 1456 |
|
| 1457 |
#. type: Plain text |
| 1458 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1459 |
#: opensuse-tumbleweed |
| 1460 |
msgid "" |
| 1461 |
"and can be downloaded from E<.UR http:\\://www.kernel.org\\:/pub\\:/linux\\:/" |
| 1462 |
"kernel\\:/projects\\:/rt/> E<.UE> or cloned from a git tree E<.UR https:\\://" |
| 1463 |
"git.kernel.org\\:/pub\\:/scm\\:/linux\\:/kernel\\:/git\\:/rt\\:/linux-stable-" |
| 1464 |
"rt.git> E<.UE .> The individual releases are maintained as long as the " |
| 1465 |
"matching LTS kernel is maintained." |
| 1466 |
msgstr "" |
| 1467 |
|
| 1468 |
#. type: Plain text |
| 1469 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1470 |
#: opensuse-tumbleweed |
| 1471 |
msgid "" |
| 1472 |
"Since Linux 6.12 it possible to enable the real-time preemption without the " |
| 1473 |
"need for any patches. The I<realtime-patch> continues to exist and contains " |
| 1474 |
"support for not-yet-integrated architectures, drivers, and features that are " |
| 1475 |
"in development." |
| 1476 |
msgstr "" |
| 1477 |
|
| 1478 |
#. type: Plain text |
| 1479 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1480 |
#: opensuse-tumbleweed |
| 1481 |
msgid "" |
| 1482 |
"Since Linux 6.13 real-time became an option and not a preemption model. " |
| 1483 |
"With this change, the following preemption models are available: " |
| 1484 |
"B<CONFIG_PREEMPT_NONE>, B<CONFIG_PREEMPT_VOLUNTARY>, B<CONFIG_PREEMPT>, and " |
| 1485 |
"B<CONFIG_PREEMPT_LAZY>. The real-time capabilities can be enabled with the " |
| 1486 |
"option B<CONFIG_PREEMPT_RT> and the preemption model can be set to either " |
| 1487 |
"B<CONFIG_PREEMPT> or B<CONFIG_PREEMPT_LAZY>. The latter model is less eager " |
| 1488 |
"to preempt B<SCHED_NORMAL> tasks in an attempt to reduce lock-holder " |
| 1489 |
"preemption. It does not affect real-time tasks." |
| 1490 |
msgstr "" |
| 1491 |
|
| 1492 |
#. type: Plain text |
| 1493 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1494 |
#: opensuse-tumbleweed |
| 1495 |
msgid "" |
| 1496 |
"With B<CONFIG_PREEMPT_RT> enabled, Linux is transformed into a regular real-" |
| 1497 |
"time operating system. The B<SCHED_FIFO>, B<SCHED_RR>, and " |
| 1498 |
"B<SCHED_DEADLINE> scheduling policies are then used to run a thread with " |
| 1499 |
"true real-time priority and a minimum worst-case scheduling latency." |
| 1500 |
msgstr "" |
| 1501 |
|
| 1502 |
#. type: SH |
| 1503 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1504 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1505 |
#, no-wrap |
| 1506 |
msgid "NOTES" |
| 1507 |
msgstr "" |
| 1508 |
|
| 1509 |
#. type: Plain text |
| 1510 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1511 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1512 |
msgid "" |
| 1513 |
"The B<cgroups>(7) CPU controller can be used to limit the CPU consumption " |
| 1514 |
"of groups of processes." |
| 1515 |
msgstr "" |
| 1516 |
|
| 1517 |
#. type: Plain text |
| 1518 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1519 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1520 |
msgid "" |
| 1521 |
"Originally, Standard Linux was intended as a general-purpose operating " |
| 1522 |
"system being able to handle background processes, interactive applications, " |
| 1523 |
"and less demanding real-time applications (applications that need to usually " |
| 1524 |
"meet timing deadlines). Although the Linux 2.6 allowed for kernel " |
| 1525 |
"preemption and the newly introduced O(1) scheduler ensures that the time " |
| 1526 |
"needed to schedule is fixed and deterministic irrespective of the number of " |
| 1527 |
"active tasks, true real-time computing was not possible up to Linux 2.6.17." |
| 1528 |
msgstr "" |
| 1529 |
|
| 1530 |
#. type: SH |
| 1531 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1532 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1533 |
#, no-wrap |
| 1534 |
msgid "SEE ALSO" |
| 1535 |
msgstr "" |
| 1536 |
|
| 1537 |
#. type: Plain text |
| 1538 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1539 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1540 |
msgid "" |
| 1541 |
"B<chcpu>(1), B<chrt>(1), B<lscpu>(1), B<ps>(1), B<taskset>(1), B<top>(1), " |
| 1542 |
"B<getpriority>(2), B<mlock>(2), B<mlockall>(2), B<munlock>(2), " |
| 1543 |
"B<munlockall>(2), B<nice>(2), B<sched_get_priority_max>(2), " |
| 1544 |
"B<sched_get_priority_min>(2), B<sched_getaffinity>(2), B<sched_getparam>(2), " |
| 1545 |
"B<sched_getscheduler>(2), B<sched_rr_get_interval>(2), " |
| 1546 |
"B<sched_setaffinity>(2), B<sched_setparam>(2), B<sched_setscheduler>(2), " |
| 1547 |
"B<sched_yield>(2), B<setpriority>(2), B<pthread_getaffinity_np>(3), " |
| 1548 |
"B<pthread_getschedparam>(3), B<pthread_setaffinity_np>(3), " |
| 1549 |
"B<sched_getcpu>(3), B<capabilities>(7), B<cpuset>(7)" |
| 1550 |
msgstr "" |
| 1551 |
|
| 1552 |
#. type: Plain text |
| 1553 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1554 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1555 |
msgid "" |
| 1556 |
"I<Programming for the real world - POSIX.4> by Bill O.\\& Gallmeister, " |
| 1557 |
"O'Reilly & Associates, Inc., ISBN 1-56592-074-0." |
| 1558 |
msgstr "" |
| 1559 |
|
| 1560 |
#. type: Plain text |
| 1561 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1562 |
#: opensuse-tumbleweed |
| 1563 |
msgid "" |
| 1564 |
"E<.UR https:\\://docs.kernel.org/\\:scheduler> The Linux kernel " |
| 1565 |
"documentation for the scheduler E<.UE .>" |
| 1566 |
msgstr "" |
| 1567 |
|
| 1568 |
#. type: Plain text |
| 1569 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1570 |
#: opensuse-tumbleweed |
| 1571 |
msgid "" |
| 1572 |
"Worth looking at: E<.UR https:\\://wiki.linuxfoundation.org/\\:realtime/" |
| 1573 |
"\\:start> E<.UE>" |
| 1574 |
msgstr "" |
| 1575 |
|
| 1576 |
#. type: TH |
| 1577 |
#: debian-trixie |
| 1578 |
#, no-wrap |
| 1579 |
msgid "2024-05-02" |
| 1580 |
msgstr "" |
| 1581 |
|
| 1582 |
#. type: TH |
| 1583 |
#: debian-trixie |
| 1584 |
#, no-wrap |
| 1585 |
msgid "Linux man-pages 6.9.1" |
| 1586 |
msgstr "" |
| 1587 |
|
| 1588 |
#. type: Plain text |
| 1589 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1590 |
msgid "" |
| 1591 |
"Processes scheduled under one of the real-time policies (B<SCHED_FIFO>, " |
| 1592 |
"B<SCHED_RR>) have a I<sched_priority> value in the range 1 (low) to 99 " |
| 1593 |
"(high). (As the numbers imply, real-time threads always have higher " |
| 1594 |
"priority than normal threads.) Note well: POSIX.1 requires an " |
| 1595 |
"implementation to support only a minimum 32 distinct priority levels for the " |
| 1596 |
"real-time policies, and some systems supply just this minimum. Portable " |
| 1597 |
"programs should use B<sched_get_priority_min>(2) and " |
| 1598 |
"B<sched_get_priority_max>(2) to find the range of priorities supported for " |
| 1599 |
"a particular policy." |
| 1600 |
msgstr "" |
| 1601 |
|
| 1602 |
#. type: Plain text |
| 1603 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1604 |
msgid "" |
| 1605 |
"B<SCHED_FIFO> can be used only with static priorities higher than 0, which " |
| 1606 |
"means that when a B<SCHED_FIFO> thread becomes runnable, it will always " |
| 1607 |
"immediately preempt any currently running B<SCHED_OTHER>, B<SCHED_BATCH>, or " |
| 1608 |
"B<SCHED_IDLE> thread. B<SCHED_FIFO> is a simple scheduling algorithm " |
| 1609 |
"without time slicing. For threads scheduled under the B<SCHED_FIFO> policy, " |
| 1610 |
"the following rules apply:" |
| 1611 |
msgstr "" |
| 1612 |
|
| 1613 |
#. type: Plain text |
| 1614 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1615 |
#, no-wrap |
| 1616 |
msgid "" |
| 1617 |
"arrival/wakeup absolute deadline\n" |
| 1618 |
" | start time |\n" |
| 1619 |
" | | |\n" |
| 1620 |
" v v v\n" |
| 1621 |
"-----x--------xooooooooooooooooo--------x--------x---\n" |
| 1622 |
" |E<lt>- comp. time -E<gt>|\n" |
| 1623 |
" |E<lt>------- relative deadline ------E<gt>|\n" |
| 1624 |
" |E<lt>-------------- period -------------------E<gt>|\n" |
| 1625 |
msgstr "" |
| 1626 |
|
| 1627 |
#. commit 5091faa449ee0b7d73bc296a93bca9540fc51d0a |
| 1628 |
#. type: Plain text |
| 1629 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1630 |
msgid "" |
| 1631 |
"Since Linux 2.6.38, the kernel provides a feature known as autogrouping to " |
| 1632 |
"improve interactive desktop performance in the face of multiprocess, CPU-" |
| 1633 |
"intensive workloads such as building the Linux kernel with large numbers of " |
| 1634 |
"parallel build processes (i.e., the B<make>(1) B<-j> flag)." |
| 1635 |
msgstr "" |
| 1636 |
|
| 1637 |
#. type: Plain text |
| 1638 |
#: debian-trixie |
| 1639 |
msgid "" |
| 1640 |
"When autogrouping is enabled, all of the members of an autogroup are placed " |
| 1641 |
"in the same kernel scheduler \"task group\". The CFS scheduler employs an " |
| 1642 |
"algorithm that equalizes the distribution of CPU cycles across task groups. " |
| 1643 |
"The benefits of this for interactive desktop performance can be described " |
| 1644 |
"via the following example." |
| 1645 |
msgstr "" |
| 1646 |
|
| 1647 |
#. type: Plain text |
| 1648 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1649 |
#, no-wrap |
| 1650 |
msgid "" |
| 1651 |
"$ B<cat /proc/1/autogroup>\n" |
| 1652 |
"/autogroup-1 nice 0\n" |
| 1653 |
msgstr "" |
| 1654 |
|
| 1655 |
#. type: Plain text |
| 1656 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1657 |
#, no-wrap |
| 1658 |
msgid "$ B<echo 10 E<gt> /proc/self/autogroup>\n" |
| 1659 |
msgstr "" |
| 1660 |
|
| 1661 |
#. FIXME . Probably this text will need some minor tweaking |
| 1662 |
#. ask Carsten Emde about this. |
| 1663 |
#. type: Plain text |
| 1664 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1665 |
msgid "" |
| 1666 |
"Since Linux 2.6.18, Linux is gradually becoming equipped with real-time " |
| 1667 |
"capabilities, most of which are derived from the former I<realtime-preempt> " |
| 1668 |
"patch set. Until the patches have been completely merged into the mainline " |
| 1669 |
"kernel, they must be installed to achieve the best real-time performance. " |
| 1670 |
"These patches are named:" |
| 1671 |
msgstr "" |
| 1672 |
|
| 1673 |
#. type: Plain text |
| 1674 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1675 |
msgid "" |
| 1676 |
"and can be downloaded from E<.UR http://www.kernel.org\\:/pub\\:/linux\\:/" |
| 1677 |
"kernel\\:/projects\\:/rt/> E<.UE .>" |
| 1678 |
msgstr "" |
| 1679 |
|
| 1680 |
#. type: Plain text |
| 1681 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1682 |
msgid "" |
| 1683 |
"Without the patches and prior to their full inclusion into the mainline " |
| 1684 |
"kernel, the kernel configuration offers only the three preemption classes " |
| 1685 |
"B<CONFIG_PREEMPT_NONE>, B<CONFIG_PREEMPT_VOLUNTARY>, and " |
| 1686 |
"B<CONFIG_PREEMPT_DESKTOP> which respectively provide no, some, and " |
| 1687 |
"considerable reduction of the worst-case scheduling latency." |
| 1688 |
msgstr "" |
| 1689 |
|
| 1690 |
#. type: Plain text |
| 1691 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1692 |
msgid "" |
| 1693 |
"With the patches applied or after their full inclusion into the mainline " |
| 1694 |
"kernel, the additional configuration item B<CONFIG_PREEMPT_RT> becomes " |
| 1695 |
"available. If this is selected, Linux is transformed into a regular real-" |
| 1696 |
"time operating system. The FIFO and RR scheduling policies are then used to " |
| 1697 |
"run a thread with true real-time priority and a minimum worst-case " |
| 1698 |
"scheduling latency." |
| 1699 |
msgstr "" |
| 1700 |
|
| 1701 |
#. type: Plain text |
| 1702 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1703 |
msgid "" |
| 1704 |
"The Linux kernel source files I<\\%Documentation/\\:scheduler/\\:sched-" |
| 1705 |
"deadline\\:.txt>, I<\\%Documentation/\\:scheduler/\\:sched-rt-group\\:.txt>, " |
| 1706 |
"I<\\%Documentation/\\:scheduler/\\:sched-design-CFS\\:.txt>, and I<\\" |
| 1707 |
"%Documentation/\\:scheduler/\\:sched-nice-design\\:.txt>" |
| 1708 |
msgstr "" |
| 1709 |
|
| 1710 |
#. type: TH |
| 1711 |
#: fedora-44 fedora-rawhide |
| 1712 |
#, no-wrap |
| 1713 |
msgid "2025-02-02" |
| 1714 |
msgstr "" |
| 1715 |
|
| 1716 |
#. type: TH |
| 1717 |
#: fedora-44 fedora-rawhide |
| 1718 |
#, no-wrap |
| 1719 |
msgid "Linux man-pages 6.13" |
| 1720 |
msgstr "" |
| 1721 |
|
| 1722 |
#. type: TH |
| 1723 |
#: mageia-cauldron |
| 1724 |
#, no-wrap |
| 1725 |
msgid "Linux man-pages 6.17" |
| 1726 |
msgstr "" |
| 1727 |
|
| 1728 |
#. type: TH |
| 1729 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1730 |
#, no-wrap |
| 1731 |
msgid "Linux man-pages (unreleased)" |
| 1732 |
msgstr "" |