Debian Codegraph @

po/es/man7/sched.7.po

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