| 1 |
# Russian translation of manpages |
| 2 |
# This file is distributed under the same license as the manpages-l10n package. |
| 3 |
# Copyright © of this file: |
| 4 |
# Alexander Golubev <[email protected]>, 2018. |
| 5 |
# Azamat Hackimov <[email protected]>, 2011, 2014-2016. |
| 6 |
# Hotellook, 2014. |
| 7 |
# Nikita <[email protected]>, 2014. |
| 8 |
# Spiros Georgaras <[email protected]>, 2016. |
| 9 |
# Vladislav <[email protected]>, 2015. |
| 10 |
# Yuri Kozlov <[email protected]>, 2011-2019. |
| 11 |
# Иван Павлов <[email protected]>, 2017. |
| 12 |
msgid "" |
| 13 |
msgstr "" |
| 14 |
"Project-Id-Version: manpages-l10n\n" |
| 15 |
"POT-Creation-Date: 2026-06-05 06:42+0200\n" |
| 16 |
"PO-Revision-Date: 2024-12-21 19:50+0300\n" |
| 17 |
"Last-Translator: Yuri Kozlov <[email protected]>\n" |
| 18 |
"Language-Team: Russian <[email protected]>\n" |
| 19 |
"Language: ru\n" |
| 20 |
"MIME-Version: 1.0\n" |
| 21 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 22 |
"Content-Transfer-Encoding: 8bit\n" |
| 23 |
"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " |
| 24 |
"n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || " |
| 25 |
"(n%100>=11 && n%100<=14)? 2 : 3);\n" |
| 26 |
"X-Generator: Lokalize 2.0\n" |
| 27 |
|
| 28 |
#. type: TH |
| 29 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 30 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 31 |
#, fuzzy, no-wrap |
| 32 |
#| msgid "B<sched>(7)" |
| 33 |
msgid "sched" |
| 34 |
msgstr "B<sched>(7)" |
| 35 |
|
| 36 |
#. type: TH |
| 37 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 38 |
#: opensuse-tumbleweed |
| 39 |
#, no-wrap |
| 40 |
msgid "2026-02-08" |
| 41 |
msgstr "8 февраля 2026 г." |
| 42 |
|
| 43 |
#. type: TH |
| 44 |
#: archlinux debian-unstable |
| 45 |
#, fuzzy, no-wrap |
| 46 |
#| msgid "Linux man-pages 6.17" |
| 47 |
msgid "Linux man-pages 6.18" |
| 48 |
msgstr "Справочные страницы Linux 6.17" |
| 49 |
|
| 50 |
#. type: SH |
| 51 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 52 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 53 |
#, no-wrap |
| 54 |
msgid "NAME" |
| 55 |
msgstr "НАИМЕНОВАНИЕ" |
| 56 |
|
| 57 |
#. type: Plain text |
| 58 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 59 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 60 |
msgid "sched - overview of CPU scheduling" |
| 61 |
msgstr "sched - обзор планирования работы ЦП" |
| 62 |
|
| 63 |
#. type: SH |
| 64 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 65 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 66 |
#, no-wrap |
| 67 |
msgid "DESCRIPTION" |
| 68 |
msgstr "ОПИСАНИЕ" |
| 69 |
|
| 70 |
#. type: Plain text |
| 71 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 72 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 73 |
msgid "" |
| 74 |
"Since Linux 2.6.23, the default scheduler is CFS, the \"Completely Fair " |
| 75 |
"Scheduler\". The CFS scheduler replaced the earlier \"O(1)\" scheduler." |
| 76 |
msgstr "" |
| 77 |
"Начиная с Linux 2.6.23 планировщиком по умолчанию является CFS — «полностью " |
| 78 |
"честный планировщик» (Completely Fair Scheduler). Планировщик CFS заменил " |
| 79 |
"использовавшийся ранее «O(1)»." |
| 80 |
|
| 81 |
#. type: SS |
| 82 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 83 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 84 |
#, no-wrap |
| 85 |
msgid "API summary" |
| 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 |
"Linux provides the following system calls for controlling the CPU scheduling " |
| 93 |
"behavior, policy, and priority of processes (or, more precisely, threads)." |
| 94 |
msgstr "" |
| 95 |
"Для управления планированием, алгоритмом и приоритетом процессов (более " |
| 96 |
"точно, нитей) на ЦП в Linux имеются следующие системные вызовы:" |
| 97 |
|
| 98 |
#. type: TP |
| 99 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 100 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 101 |
#, no-wrap |
| 102 |
msgid "B<nice>(2)" |
| 103 |
msgstr "B<nice>(2)" |
| 104 |
|
| 105 |
#. type: Plain text |
| 106 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 107 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 108 |
msgid "" |
| 109 |
"Set a new nice value for the calling thread, and return the new nice value." |
| 110 |
msgstr "" |
| 111 |
"Назначает новое значение уступчивости вызвавшей нити и возвращает новое " |
| 112 |
"значение уступчивости." |
| 113 |
|
| 114 |
#. type: TP |
| 115 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 116 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 117 |
#, no-wrap |
| 118 |
msgid "B<getpriority>(2)" |
| 119 |
msgstr "B<getpriority>(2)" |
| 120 |
|
| 121 |
#. type: Plain text |
| 122 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 123 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 124 |
msgid "" |
| 125 |
"Return the nice value of a thread, a process group, or the set of threads " |
| 126 |
"owned by a specified user." |
| 127 |
msgstr "" |
| 128 |
"Возвращает значение уступчивости нити, группы процессов или набора нитей, " |
| 129 |
"принадлежащих указанному пользователю." |
| 130 |
|
| 131 |
#. type: TP |
| 132 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 133 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 134 |
#, no-wrap |
| 135 |
msgid "B<setpriority>(2)" |
| 136 |
msgstr "B<setpriority>(2)" |
| 137 |
|
| 138 |
#. type: Plain text |
| 139 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 140 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 141 |
msgid "" |
| 142 |
"Set the nice value of a thread, a process group, or the set of threads owned " |
| 143 |
"by a specified user." |
| 144 |
msgstr "" |
| 145 |
"Изменяет значение уступчивости нити, группы процессов или набора нитей, " |
| 146 |
"принадлежащих указанному пользователю." |
| 147 |
|
| 148 |
#. type: TP |
| 149 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 150 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 151 |
#, no-wrap |
| 152 |
msgid "B<sched_setscheduler>(2)" |
| 153 |
msgstr "B<sched_setscheduler>(2)" |
| 154 |
|
| 155 |
#. type: Plain text |
| 156 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 157 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 158 |
msgid "Set the scheduling policy and parameters of a specified thread." |
| 159 |
msgstr "Назначает алгоритм планирования и параметры заданной нити." |
| 160 |
|
| 161 |
#. type: TP |
| 162 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 163 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 164 |
#, no-wrap |
| 165 |
msgid "B<sched_getscheduler>(2)" |
| 166 |
msgstr "B<sched_getscheduler>(2)" |
| 167 |
|
| 168 |
#. type: Plain text |
| 169 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 170 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 171 |
msgid "Return the scheduling policy of a specified thread." |
| 172 |
msgstr "Возвращает алгоритм планирования и параметры заданной нити." |
| 173 |
|
| 174 |
#. type: TP |
| 175 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 176 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 177 |
#, no-wrap |
| 178 |
msgid "B<sched_setparam>(2)" |
| 179 |
msgstr "B<sched_setparam>(2)" |
| 180 |
|
| 181 |
#. type: Plain text |
| 182 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 183 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 184 |
msgid "Set the scheduling parameters of a specified thread." |
| 185 |
msgstr "Назначает параметры планирования заданной нити." |
| 186 |
|
| 187 |
#. type: TP |
| 188 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 189 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 190 |
#, no-wrap |
| 191 |
msgid "B<sched_getparam>(2)" |
| 192 |
msgstr "B<sched_getparam>(2)" |
| 193 |
|
| 194 |
#. type: Plain text |
| 195 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 196 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 197 |
msgid "Fetch the scheduling parameters of a specified thread." |
| 198 |
msgstr "Возвращает параметры планирования заданной нити." |
| 199 |
|
| 200 |
#. type: TP |
| 201 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 202 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 203 |
#, no-wrap |
| 204 |
msgid "B<sched_get_priority_max>(2)" |
| 205 |
msgstr "B<sched_get_priority_max>(2)" |
| 206 |
|
| 207 |
#. type: Plain text |
| 208 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 209 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 210 |
msgid "Return the maximum priority available in a specified scheduling policy." |
| 211 |
msgstr "" |
| 212 |
"Возвращает максимальный приоритет, доступный заданному алгоритму " |
| 213 |
"планирования." |
| 214 |
|
| 215 |
#. type: TP |
| 216 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 217 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 218 |
#, no-wrap |
| 219 |
msgid "B<sched_get_priority_min>(2)" |
| 220 |
msgstr "B<sched_get_priority_min>(2)" |
| 221 |
|
| 222 |
#. type: Plain text |
| 223 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 224 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 225 |
msgid "Return the minimum priority available in a specified scheduling policy." |
| 226 |
msgstr "" |
| 227 |
"Возвращает минимальный приоритет, доступный заданному алгоритму планирования." |
| 228 |
|
| 229 |
#. type: TP |
| 230 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 231 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 232 |
#, no-wrap |
| 233 |
msgid "B<sched_rr_get_interval>(2)" |
| 234 |
msgstr "B<sched_rr_get_interval>(2)" |
| 235 |
|
| 236 |
#. type: Plain text |
| 237 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 238 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 239 |
msgid "" |
| 240 |
"Fetch the quantum used for threads that are scheduled under the \"round-" |
| 241 |
"robin\" scheduling policy." |
| 242 |
msgstr "" |
| 243 |
"Возвращает квант, используемый нитями, которые запланированы «циклическим» " |
| 244 |
"(round-robin) алгоритмом планирования." |
| 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_yield>(2)" |
| 251 |
msgstr "B<sched_yield>(2)" |
| 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 "" |
| 257 |
"Cause the caller to relinquish the CPU, so that some other thread be " |
| 258 |
"executed." |
| 259 |
msgstr "Заставляет вызывающего освободить ЦП для выполнения других нитей." |
| 260 |
|
| 261 |
#. type: TP |
| 262 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 263 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 264 |
#, no-wrap |
| 265 |
msgid "B<sched_setaffinity>(2)" |
| 266 |
msgstr "B<sched_setaffinity>(2)" |
| 267 |
|
| 268 |
#. type: Plain text |
| 269 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 270 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 271 |
msgid "(Linux-specific) Set the CPU affinity of a specified thread." |
| 272 |
msgstr "(только в Linux) Назначить увязываемый ЦП указанной нити." |
| 273 |
|
| 274 |
#. type: TP |
| 275 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 276 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 277 |
#, no-wrap |
| 278 |
msgid "B<sched_getaffinity>(2)" |
| 279 |
msgstr "B<sched_getaffinity>(2)" |
| 280 |
|
| 281 |
#. type: Plain text |
| 282 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 283 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 284 |
msgid "(Linux-specific) Get the CPU affinity of a specified thread." |
| 285 |
msgstr "(только в Linux) Возвращает увязываемый ЦП указанной нити." |
| 286 |
|
| 287 |
#. type: TP |
| 288 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 289 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 290 |
#, no-wrap |
| 291 |
msgid "B<sched_setattr>(2)" |
| 292 |
msgstr "B<sched_setattr>(2)" |
| 293 |
|
| 294 |
#. type: Plain text |
| 295 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 296 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 297 |
msgid "" |
| 298 |
"Set the scheduling policy and parameters of a specified thread. This (Linux-" |
| 299 |
"specific) system call provides a superset of the functionality of " |
| 300 |
"B<sched_setscheduler>(2) and B<sched_setparam>(2)." |
| 301 |
msgstr "" |
| 302 |
"Назначает алгоритм планирования и параметры заданной нити. Данный системный " |
| 303 |
"вызов (есть только в Linux) предоставляет охватывающий набор возможностей " |
| 304 |
"B<sched_setscheduler>(2) и B<sched_setparam>(2)." |
| 305 |
|
| 306 |
#. type: TP |
| 307 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 308 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 309 |
#, no-wrap |
| 310 |
msgid "B<sched_getattr>(2)" |
| 311 |
msgstr "B<sched_getattr>(2)" |
| 312 |
|
| 313 |
#. type: Plain text |
| 314 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 315 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 316 |
msgid "" |
| 317 |
"Fetch the scheduling policy and parameters of a specified thread. This " |
| 318 |
"(Linux-specific) system call provides a superset of the functionality of " |
| 319 |
"B<sched_getscheduler>(2) and B<sched_getparam>(2)." |
| 320 |
msgstr "" |
| 321 |
"Возвращает алгоритм планирования и параметры заданной нити. Данный системный " |
| 322 |
"вызов (есть только в Linux) предоставляет охватывающий набор возможностей " |
| 323 |
"B<sched_setscheduler>(2) и B<sched_setparam>(2)." |
| 324 |
|
| 325 |
#. type: SS |
| 326 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 327 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 328 |
#, no-wrap |
| 329 |
msgid "Scheduling policies" |
| 330 |
msgstr "Алгоритмы планирования" |
| 331 |
|
| 332 |
#. type: Plain text |
| 333 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 334 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 335 |
msgid "" |
| 336 |
"The scheduler is the kernel component that decides which runnable thread " |
| 337 |
"will be executed by the CPU next. Each thread has an associated scheduling " |
| 338 |
"policy and a I<static> scheduling priority, I<sched_priority>. The " |
| 339 |
"scheduler makes its decisions based on knowledge of the scheduling policy " |
| 340 |
"and static priority of all threads on the system." |
| 341 |
msgstr "" |
| 342 |
"Планировщик — это часть ядра, которая решает какая запущенная нить будет " |
| 343 |
"выполняться процессором следующей. Каждой нити назначается алгоритм " |
| 344 |
"планирования и I<статический> приоритет планирования, I<sched_priority>. " |
| 345 |
"Планировщик принимает решение на основе данных об алгоритме планирования и " |
| 346 |
"статическом приоритете всех нитей системы." |
| 347 |
|
| 348 |
#. type: Plain text |
| 349 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 350 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 351 |
msgid "" |
| 352 |
"For threads scheduled under one of the normal scheduling policies " |
| 353 |
"(B<SCHED_OTHER>, B<SCHED_IDLE>, B<SCHED_BATCH>), I<sched_priority> is not " |
| 354 |
"used in scheduling decisions (it must be specified as 0)." |
| 355 |
msgstr "" |
| 356 |
"Для нитей, которые планируются одним из обычных алгоритмом планирования " |
| 357 |
"(B<SCHED_OTHER>, B<SCHED_IDLE>, B<SCHED_BATCH>), значение I<sched_priority> " |
| 358 |
"при принятии решения не используется (должен быть указан 0)." |
| 359 |
|
| 360 |
#. type: Plain text |
| 361 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 362 |
#: opensuse-tumbleweed |
| 363 |
#, fuzzy |
| 364 |
#| msgid "" |
| 365 |
#| "Processes scheduled under one of the real-time policies (B<SCHED_FIFO>, " |
| 366 |
#| "B<SCHED_RR>) have a I<sched_priority> value in the range 1 (low) to 99 " |
| 367 |
#| "(high). (As the numbers imply, real-time threads always have higher " |
| 368 |
#| "priority than normal threads.) Note well: POSIX.1 requires an " |
| 369 |
#| "implementation to support only a minimum 32 distinct priority levels for " |
| 370 |
#| "the real-time policies, and some systems supply just this minimum. " |
| 371 |
#| "Portable programs should use B<sched_get_priority_min>(2) and " |
| 372 |
#| "B<sched_get_priority_max>(2) to find the range of priorities supported " |
| 373 |
#| "for a particular policy." |
| 374 |
msgid "" |
| 375 |
"Processes scheduled under one of the real-time policies (B<SCHED_FIFO>, " |
| 376 |
"B<SCHED_RR>) have a I<sched_priority> value in the range 1 (low) to 99 " |
| 377 |
"(high). (As the numbers imply, real-time threads always have higher " |
| 378 |
"priority than normal threads.) Note well: POSIX.1 requires an " |
| 379 |
"implementation to support only a minimum 32 distinct priority levels for the " |
| 380 |
"real-time policies, and some systems supply just this minimum. Portable " |
| 381 |
"programs should use B<sched_get_priority_min>(2) and " |
| 382 |
"B<sched_get_priority_max>(2) to find the range of priorities supported for " |
| 383 |
"a particular policy." |
| 384 |
msgstr "" |
| 385 |
"Для процессов, которые планируются одним из алгоритмов реального времени " |
| 386 |
"(B<SCHED_FIFO>, B<SCHED_RR>), значение приоритета I<sched_priority> лежит в " |
| 387 |
"диапазоне от 1 (низкий) до 99 (высокий) Как и числовые значения, нити " |
| 388 |
"реального времени всегда имеют более высокий приоритет чем обычные нити. Но " |
| 389 |
"заметим: согласно POSIX.1 от реализации для алгоритмов реального времени " |
| 390 |
"требуется поддержка только 32 различных уровней приоритета, и в некоторых " |
| 391 |
"системах обеспечивается только этот минимум. В переносимых программах нужно " |
| 392 |
"использовать вызовы B<sched_get_priority_min>(2) и " |
| 393 |
"B<sched_get_priority_max>(2) для для определения диапазона приоритетов, " |
| 394 |
"поддерживаемых определённым алгоритмом." |
| 395 |
|
| 396 |
#. type: Plain text |
| 397 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 398 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 399 |
msgid "" |
| 400 |
"Conceptually, the scheduler maintains a list of runnable threads for each " |
| 401 |
"possible I<sched_priority> value. In order to determine which thread runs " |
| 402 |
"next, the scheduler looks for the nonempty list with the highest static " |
| 403 |
"priority and selects the thread at the head of this list." |
| 404 |
msgstr "" |
| 405 |
"По существу, планировщик хранит в памяти списки всех работающих нитей для " |
| 406 |
"каждого возможного значения I<sched_priority>. Чтобы определить какую нить " |
| 407 |
"выполнять следующей, планировщик ищет непустой список с самым высоким " |
| 408 |
"статическим приоритетом и выбирает нить из начала списка." |
| 409 |
|
| 410 |
#. type: Plain text |
| 411 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 412 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 413 |
msgid "" |
| 414 |
"A thread's scheduling policy determines where it will be inserted into the " |
| 415 |
"list of threads with equal static priority and how it will move inside this " |
| 416 |
"list." |
| 417 |
msgstr "" |
| 418 |
"Алгоритм планирования определяет, в какое место списка будет добавлена нить " |
| 419 |
"с тем же статическим приоритетом и как она будет перемещаться внутри этого " |
| 420 |
"списка." |
| 421 |
|
| 422 |
#. type: Plain text |
| 423 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 424 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 425 |
msgid "" |
| 426 |
"All scheduling is preemptive: if a thread with a higher static priority " |
| 427 |
"becomes ready to run, the currently running thread will be preempted and " |
| 428 |
"returned to the wait list for its static priority level. The scheduling " |
| 429 |
"policy determines the ordering only within the list of runnable threads with " |
| 430 |
"equal static priority." |
| 431 |
msgstr "" |
| 432 |
"Всё планирование основано на вытеснении: если нить с высшим статическим " |
| 433 |
"приоритетом готова к выполнению, текущая выполняющаяся нить будет вытеснена " |
| 434 |
"и возвращена в список ожидания согласно своему уровню статического " |
| 435 |
"приоритета. Алгоритм выполнения определяет порядок только внутри списка " |
| 436 |
"готовых к выполнению нитей с одинаковым статическим приоритетом." |
| 437 |
|
| 438 |
#. type: SS |
| 439 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 440 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 441 |
#, no-wrap |
| 442 |
msgid "SCHED_FIFO: First in-first out scheduling" |
| 443 |
msgstr "SCHED_FIFO: планировщик «первым вошёл — первым вышел»" |
| 444 |
|
| 445 |
#. type: Plain text |
| 446 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 447 |
#: opensuse-tumbleweed |
| 448 |
#, fuzzy |
| 449 |
#| msgid "" |
| 450 |
#| "B<SCHED_FIFO> can be used only with static priorities higher than 0, " |
| 451 |
#| "which means that when a B<SCHED_FIFO> threads becomes runnable, it will " |
| 452 |
#| "always immediately preempt any currently running B<SCHED_OTHER>, " |
| 453 |
#| "B<SCHED_BATCH>, or B<SCHED_IDLE> thread. B<SCHED_FIFO> is a simple " |
| 454 |
#| "scheduling algorithm without time slicing. For threads scheduled under " |
| 455 |
#| "the B<SCHED_FIFO> policy, the following rules apply:" |
| 456 |
msgid "" |
| 457 |
"B<SCHED_FIFO> can be used only with static priorities higher than 0, which " |
| 458 |
"means that when a B<SCHED_FIFO> thread becomes runnable, it will always " |
| 459 |
"immediately preempt any currently running B<SCHED_OTHER>, B<SCHED_BATCH>, or " |
| 460 |
"B<SCHED_IDLE> thread. B<SCHED_FIFO is a simple scheduling> algorithm " |
| 461 |
"without time slicing. For threads scheduled under the B<SCHED_FIFO> policy, " |
| 462 |
"the following rules apply:" |
| 463 |
msgstr "" |
| 464 |
"Алгоритм B<SCHED_FIFO> можно использовать только со значениями статического " |
| 465 |
"приоритета большими нуля. Это означает, что если нить с B<SCHED_FIFO> готова " |
| 466 |
"к работе, то она сразу запустится, а все обычные нити с B<SCHED_OTHER>, " |
| 467 |
"B<SCHED_BATCH> или B<SCHED_IDLE> будут приостановлены. B<SCHED_FIFO> — это " |
| 468 |
"простой алгоритм планирования без квантования времени. Нити, работающие " |
| 469 |
"согласно алгоритму B<SCHED_FIFO>, подчиняются следующим правилам:" |
| 470 |
|
| 471 |
#. type: IP |
| 472 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 473 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 474 |
#, no-wrap |
| 475 |
msgid "\\[bu]" |
| 476 |
msgstr "\\[bu]" |
| 477 |
|
| 478 |
#. type: Plain text |
| 479 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 480 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 481 |
msgid "" |
| 482 |
"A running B<SCHED_FIFO> thread that has been preempted by another thread of " |
| 483 |
"higher priority will stay at the head of the list for its priority and will " |
| 484 |
"resume execution as soon as all threads of higher priority are blocked again." |
| 485 |
msgstr "" |
| 486 |
"Нить, выполняемая с алгоритмом B<SCHED_FIFO> и вытесненная другой нитью с " |
| 487 |
"большим приоритетом, останется в начале списка нитей с приоритетом как у " |
| 488 |
"неё, и её исполнение будет продолжено сразу после того, как закончатся нити " |
| 489 |
"с большими приоритетами." |
| 490 |
|
| 491 |
#. type: Plain text |
| 492 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 493 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 494 |
msgid "" |
| 495 |
"When a blocked B<SCHED_FIFO> thread becomes runnable, it will be inserted at " |
| 496 |
"the end of the list for its priority." |
| 497 |
msgstr "" |
| 498 |
"Когда заблокированная нить с алгоритмом B<SCHED_FIFO> готова к работе, она " |
| 499 |
"помещается в конец списка нитей с приоритетом как у неё." |
| 500 |
|
| 501 |
#. type: Plain text |
| 502 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 503 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 504 |
#, fuzzy |
| 505 |
#| msgid "" |
| 506 |
#| "If a call to B<sched_setscheduler>(2), B<sched_setparam>(2), " |
| 507 |
#| "B<sched_setattr>(2), B<pthread_setschedparam>(3), or " |
| 508 |
#| "B<pthread_setschedprio>(3) changes the priority of the running or " |
| 509 |
#| "runnable B<SCHED_FIFO> thread identified by I<pid> the effect on the " |
| 510 |
#| "thread's position in the list depends on the direction of the change to " |
| 511 |
#| "threads priority:" |
| 512 |
msgid "" |
| 513 |
"If a call to B<sched_setscheduler>(2), B<sched_setparam>(2), " |
| 514 |
"B<sched_setattr>(2), B<pthread_setschedparam>(3), or " |
| 515 |
"B<pthread_setschedprio>(3) changes the priority of the running or runnable " |
| 516 |
"B<SCHED_FIFO> thread identified by I<pid> the effect on the thread's " |
| 517 |
"position in the list depends on the direction of the change to the thread's " |
| 518 |
"priority:" |
| 519 |
msgstr "" |
| 520 |
"Если вызовом B<sched_setscheduler>(2), B<sched_setparam>(2), " |
| 521 |
"B<sched_setattr>(2), B<pthread_setschedparam>(3) или " |
| 522 |
"B<pthread_setschedprio>(3) изменяется приоритет выполняющейся или готовой к " |
| 523 |
"выполнению нити B<SCHED_FIFO>, задаваемой I<pid>, то результат положения " |
| 524 |
"нити в списке зависит от направления изменения приоритета нити:" |
| 525 |
|
| 526 |
#. type: IP |
| 527 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 528 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 529 |
#, no-wrap |
| 530 |
msgid "(a)" |
| 531 |
msgstr "(а)" |
| 532 |
|
| 533 |
#. type: Plain text |
| 534 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 535 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 536 |
msgid "" |
| 537 |
"If the thread's priority is raised, it is placed at the end of the list for " |
| 538 |
"its new priority. As a consequence, it may preempt a currently running " |
| 539 |
"thread with the same priority." |
| 540 |
msgstr "" |
| 541 |
"Если приоритет нити повышается, то она помещается в конец списка со своим " |
| 542 |
"новым приоритетом. В результате, может быть вытеснена выполняемая в этот " |
| 543 |
"момент нить с таким же приоритетом." |
| 544 |
|
| 545 |
#. type: IP |
| 546 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 547 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 548 |
#, no-wrap |
| 549 |
msgid "(b)" |
| 550 |
msgstr "(б)" |
| 551 |
|
| 552 |
#. type: Plain text |
| 553 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 554 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 555 |
msgid "" |
| 556 |
"If the thread's priority is unchanged, its position in the run list is " |
| 557 |
"unchanged." |
| 558 |
msgstr "" |
| 559 |
"Если приоритет нити не изменяется, то её положение в списке выполнения не " |
| 560 |
"изменяется." |
| 561 |
|
| 562 |
#. type: IP |
| 563 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 564 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 565 |
#, no-wrap |
| 566 |
msgid "(c)" |
| 567 |
msgstr "(в)" |
| 568 |
|
| 569 |
#. type: Plain text |
| 570 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 571 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 572 |
msgid "" |
| 573 |
"If the thread's priority is lowered, it is placed at the front of the list " |
| 574 |
"for its new priority." |
| 575 |
msgstr "" |
| 576 |
"Если приоритет нити понижается, то она помещается в начало списка со своим " |
| 577 |
"новым приоритетом." |
| 578 |
|
| 579 |
#. In Linux 2.2.x and Linux 2.4.x, the thread is placed at the front of the queue |
| 580 |
#. In Linux 2.0.x, the Right Thing happened: the thread went to the back -- MTK |
| 581 |
#. type: Plain text |
| 582 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 583 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 584 |
msgid "" |
| 585 |
"According to POSIX.1-2008, changes to a thread's priority (or policy) using " |
| 586 |
"any mechanism other than B<pthread_setschedprio>(3) should result in the " |
| 587 |
"thread being placed at the end of the list for its priority." |
| 588 |
msgstr "" |
| 589 |
"Согласно POSIX.1-2008 изменение приоритета нити (или алгоритма) с помощью " |
| 590 |
"какого-либо механизма отличного от B<pthread_setschedprio>(3), должно " |
| 591 |
"приводить к размещению нити в конец списка с её приоритетом." |
| 592 |
|
| 593 |
#. type: Plain text |
| 594 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 595 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 596 |
msgid "A thread calling B<sched_yield>(2) will be put at the end of the list." |
| 597 |
msgstr "Нить, вызывающая B<sched_yield>(2), будет помещена в конец списка." |
| 598 |
|
| 599 |
#. type: Plain text |
| 600 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 601 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 602 |
msgid "" |
| 603 |
"No other events will move a thread scheduled under the B<SCHED_FIFO> policy " |
| 604 |
"in the wait list of runnable threads with equal static priority." |
| 605 |
msgstr "" |
| 606 |
"Других событий для перемещения нити с алгоритмом B<SCHED_FIFO> в списке " |
| 607 |
"ожидания запускаемых нитей с одинаковым статическим приоритетом не " |
| 608 |
"существует." |
| 609 |
|
| 610 |
#. type: Plain text |
| 611 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 612 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 613 |
msgid "" |
| 614 |
"A B<SCHED_FIFO> thread runs until either it is blocked by an I/O request, it " |
| 615 |
"is preempted by a higher priority thread, or it calls B<sched_yield>(2)." |
| 616 |
msgstr "" |
| 617 |
"Нить с алгоритмом B<SCHED_FIFO> выполняется до тех пор, пока не будет " |
| 618 |
"заблокирована запросом ввода/вывода, вытеснена нитью с большим приоритетом " |
| 619 |
"или пока не вызовет B<sched_yield>(2)." |
| 620 |
|
| 621 |
#. type: SS |
| 622 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 623 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 624 |
#, no-wrap |
| 625 |
msgid "SCHED_RR: Round-robin scheduling" |
| 626 |
msgstr "SCHED_RR: планирование выполнения по циклу" |
| 627 |
|
| 628 |
#. On Linux 2.4, the length of the RR interval is influenced |
| 629 |
#. by the process nice value -- MTK |
| 630 |
#. type: Plain text |
| 631 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 632 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 633 |
msgid "" |
| 634 |
"B<SCHED_RR> is a simple enhancement of B<SCHED_FIFO>. Everything described " |
| 635 |
"above for B<SCHED_FIFO> also applies to B<SCHED_RR>, except that each thread " |
| 636 |
"is allowed to run only for a maximum time quantum. If a B<SCHED_RR> thread " |
| 637 |
"has been running for a time period equal to or longer than the time quantum, " |
| 638 |
"it will be put at the end of the list for its priority. A B<SCHED_RR> " |
| 639 |
"thread that has been preempted by a higher priority thread and subsequently " |
| 640 |
"resumes execution as a running thread will complete the unexpired portion of " |
| 641 |
"its round-robin time quantum. The length of the time quantum can be " |
| 642 |
"retrieved using B<sched_rr_get_interval>(2)." |
| 643 |
msgstr "" |
| 644 |
"B<SCHED_RR> — это просто улучшение B<SCHED_FIFO>. Всё, относящееся к " |
| 645 |
"B<SCHED_FIFO>, справедливо и для B<SCHED_RR> за исключением того, что каждой " |
| 646 |
"нити разрешено работать непрерывно не дольше максимального кванта времени. " |
| 647 |
"Если нить с алгоритмом B<SCHED_RR> работала столько же или дольше, чем " |
| 648 |
"квант, то она помещается в конец списка с тем же приоритетом. Нить с " |
| 649 |
"алгоритмом B<SCHED_RR>, вытесненная нитью с большим приоритетом, возобновляя " |
| 650 |
"работу, использует остаток своего кванта из старого цикла. Длину этого " |
| 651 |
"кванта можно узнать, вызвав B<sched_rr_get_interval>(2)." |
| 652 |
|
| 653 |
#. type: SS |
| 654 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 655 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 656 |
#, no-wrap |
| 657 |
msgid "SCHED_DEADLINE: Sporadic task model deadline scheduling" |
| 658 |
msgstr "SCHED_DEADLINE: Модель планирования случайной задачи с предельным сроком" |
| 659 |
|
| 660 |
#. type: Plain text |
| 661 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 662 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 663 |
#, fuzzy |
| 664 |
#| msgid "" |
| 665 |
#| "Since version 3.14, Linux provides a deadline scheduling policy " |
| 666 |
#| "(B<SCHED_DEADLINE>). This policy is currently implemented using GEDF " |
| 667 |
#| "(Global Earliest Deadline First) in conjunction with CBS (Constant " |
| 668 |
#| "Bandwidth Server). To set and fetch this policy and associated " |
| 669 |
#| "attributes, one must use the Linux-specific B<sched_setattr>(2) and " |
| 670 |
#| "B<sched_getattr>(2) system calls." |
| 671 |
msgid "" |
| 672 |
"Since Linux 3.14, Linux provides a deadline scheduling policy " |
| 673 |
"(B<SCHED_DEADLINE>). This policy is currently implemented using GEDF " |
| 674 |
"(Global Earliest Deadline First) in conjunction with CBS (Constant " |
| 675 |
"Bandwidth Server). To set and fetch this policy and associated attributes, " |
| 676 |
"one must use the Linux-specific B<sched_setattr>(2) and " |
| 677 |
"B<sched_getattr>(2) system calls." |
| 678 |
msgstr "" |
| 679 |
"Начиная с версии 3.14, в Linux появился алгоритм планирования с предельным " |
| 680 |
"сроком (B<SCHED_DEADLINE>). Сейчас этот алгоритм реализован с помощью GEDF " |
| 681 |
"(Global Earliest Deadline First) в совокупности с CBS (Constant Bandwidth " |
| 682 |
"Server). Для назначения и выборки данного алгоритма и его атрибутов, нужно " |
| 683 |
"использовать системные вызовы (есть только в Linux) B<sched_setattr>(2) и " |
| 684 |
"B<sched_getattr>(2)." |
| 685 |
|
| 686 |
#. type: Plain text |
| 687 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 688 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 689 |
msgid "" |
| 690 |
"A sporadic task is one that has a sequence of jobs, where each job is " |
| 691 |
"activated at most once per period. Each job also has a I<relative " |
| 692 |
"deadline>, before which it should finish execution, and a I<computation " |
| 693 |
"time>, which is the CPU time necessary for executing the job. The moment " |
| 694 |
"when a task wakes up because a new job has to be executed is called the " |
| 695 |
"I<arrival time> (also referred to as the request time or release time). The " |
| 696 |
"I<start time> is the time at which a task starts its execution. The " |
| 697 |
"I<absolute deadline> is thus obtained by adding the relative deadline to the " |
| 698 |
"arrival time." |
| 699 |
msgstr "" |
| 700 |
"Случайная задача — одна из последовательности заданий (jobs), где каждое " |
| 701 |
"задание активизируется не более чем один раз за промежуток времени. Также у " |
| 702 |
"каждого задания есть I<относительный крайний срок>, до которого оно должно " |
| 703 |
"завершить выполнение и I<время вычисления> — время ЦП, необходимое для " |
| 704 |
"выполнения задания. Момент, когда задача пробуждается из-за выполнения " |
| 705 |
"нового задания, называется I<временем принятия (arrival time)> (его ещё " |
| 706 |
"называют временем запроса (request time) или временем выпуска (release " |
| 707 |
"time). I<Время начала> — это время когда задача начинает выполнение. " |
| 708 |
"I<Абсолютный предельный срок> получается сложением относительного " |
| 709 |
"предельного срока с временем принятия." |
| 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 "The following diagram clarifies these terms:" |
| 715 |
msgstr "Эти определения показаны в следующей диаграмме:" |
| 716 |
|
| 717 |
#. type: Plain text |
| 718 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 719 |
#: opensuse-tumbleweed |
| 720 |
#, fuzzy, no-wrap |
| 721 |
#| msgid "" |
| 722 |
#| "arrival/wakeup absolute deadline\n" |
| 723 |
#| " | start time |\n" |
| 724 |
#| " | | |\n" |
| 725 |
#| " v v v\n" |
| 726 |
#| "-----x--------xooooooooooooooooo--------x--------x---\n" |
| 727 |
#| " |E<lt>- comp. time -E<gt>|\n" |
| 728 |
#| " |E<lt>------- relative deadline ------E<gt>|\n" |
| 729 |
#| " |E<lt>-------------- period -------------------E<gt>|\n" |
| 730 |
msgid "" |
| 731 |
"arrival/wakeup absolute deadline\n" |
| 732 |
" | start time |\n" |
| 733 |
" | | |\n" |
| 734 |
" v v v\n" |
| 735 |
"-----x--------xooooooooooooooooo--------x--------x---\n" |
| 736 |
" |E<lt>- comp.\\& time -E<gt>|\n" |
| 737 |
" |E<lt>------- relative deadline ------E<gt>|\n" |
| 738 |
" |E<lt>-------------- period -------------------E<gt>|\n" |
| 739 |
msgstr "" |
| 740 |
"принятие/пробуждение абсолютный предельный срок\n" |
| 741 |
" | время начала |\n" |
| 742 |
" | | |\n" |
| 743 |
" v v v\n" |
| 744 |
"-----x--------xooooooooooooooooo--------x--------x---\n" |
| 745 |
" |E<lt>- comp. time -E<gt>|\n" |
| 746 |
" |E<lt>------- относительный предельный срок ------E<gt>|\n" |
| 747 |
" |E<lt>-------------- промежуток времени -------------------E<gt>|\n" |
| 748 |
|
| 749 |
#. type: Plain text |
| 750 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 751 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 752 |
msgid "" |
| 753 |
"When setting a B<SCHED_DEADLINE> policy for a thread using " |
| 754 |
"B<sched_setattr>(2), one can specify three parameters: I<Runtime>, " |
| 755 |
"I<Deadline>, and I<Period>. These parameters do not necessarily correspond " |
| 756 |
"to the aforementioned terms: usual practice is to set Runtime to something " |
| 757 |
"bigger than the average computation time (or worst-case execution time for " |
| 758 |
"hard real-time tasks), Deadline to the relative deadline, and Period to the " |
| 759 |
"period of the task. Thus, for B<SCHED_DEADLINE> scheduling, we have:" |
| 760 |
msgstr "" |
| 761 |
"При назначении нити алгоритма B<SCHED_DEADLINE> с помощью " |
| 762 |
"B<sched_setattr>(2) можно указать три параметра: I<Runtime>, I<Deadline> и " |
| 763 |
"I<Period>. Эти параметры не обязательно соответствуют вышеупомянутым " |
| 764 |
"терминам: на практике, Runtime задаётся чуть больше чем среднее время " |
| 765 |
"вычисления (или время вычисления в самом плохом варианте для задач жёсткого " |
| 766 |
"реального времени), Deadline равен относительному предельному сроку, а " |
| 767 |
"Period равен промежутку времени. Таким образом, при планировании " |
| 768 |
"B<SCHED_DEADLINE> мы имеем:" |
| 769 |
|
| 770 |
#. type: Plain text |
| 771 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 772 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 773 |
#, no-wrap |
| 774 |
msgid "" |
| 775 |
"arrival/wakeup absolute deadline\n" |
| 776 |
" | start time |\n" |
| 777 |
" | | |\n" |
| 778 |
" v v v\n" |
| 779 |
"-----x--------xooooooooooooooooo--------x--------x---\n" |
| 780 |
" |E<lt>-- Runtime -------E<gt>|\n" |
| 781 |
" |E<lt>----------- Deadline -----------E<gt>|\n" |
| 782 |
" |E<lt>-------------- Period -------------------E<gt>|\n" |
| 783 |
msgstr "" |
| 784 |
"принятие/пробуждение абсолютный предельный срок\n" |
| 785 |
" | время начала |\n" |
| 786 |
" | | |\n" |
| 787 |
" v v v\n" |
| 788 |
"-----x--------xooooooooooooooooo--------x--------x---\n" |
| 789 |
" |E<lt>-- Runtime -------E<gt>|\n" |
| 790 |
" |E<lt>----------- Deadline -----------E<gt>|\n" |
| 791 |
" |E<lt>-------------- Period -------------------E<gt>|\n" |
| 792 |
|
| 793 |
#. FIXME It looks as though specifying sched_period as 0 means |
| 794 |
#. "make sched_period the same as sched_deadline". |
| 795 |
#. This needs to be documented. |
| 796 |
#. type: Plain text |
| 797 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 798 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 799 |
msgid "" |
| 800 |
"The three deadline-scheduling parameters correspond to the I<sched_runtime>, " |
| 801 |
"I<sched_deadline>, and I<sched_period> fields of the I<sched_attr> " |
| 802 |
"structure; see B<sched_setattr>(2). These fields express values in " |
| 803 |
"nanoseconds. If I<sched_period> is specified as 0, then it is made the same " |
| 804 |
"as I<sched_deadline>." |
| 805 |
msgstr "" |
| 806 |
"Три параметра алгоритма с крайним сроком соответствуют полям " |
| 807 |
"I<sched_runtime>, I<sched_deadline> и I<sched_period> структуры " |
| 808 |
"I<sched_attr>; смотрите B<sched_setattr>(2). Значения этих полей задаются в " |
| 809 |
"наносекундах. Если I<sched_period> равно 0, то его значение равно " |
| 810 |
"I<sched_deadline>." |
| 811 |
|
| 812 |
#. type: Plain text |
| 813 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 814 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 815 |
msgid "The kernel requires that:" |
| 816 |
msgstr "Для ядра требуется соблюдение условия:" |
| 817 |
|
| 818 |
#. type: Plain text |
| 819 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 820 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 821 |
#, fuzzy, no-wrap |
| 822 |
#| msgid " sched_runtime E<lt>= sched_deadline E<lt>= sched_period\n" |
| 823 |
msgid "sched_runtime E<lt>= sched_deadline E<lt>= sched_period\n" |
| 824 |
msgstr " sched_runtime E<lt>= sched_deadline E<lt>= sched_period\n" |
| 825 |
|
| 826 |
#. See __checkparam_dl in kernel/sched/core.c |
| 827 |
#. type: Plain text |
| 828 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 829 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 830 |
#, fuzzy |
| 831 |
#| msgid "" |
| 832 |
#| "In addition, under the current implementation, all of the parameter " |
| 833 |
#| "values must be at least 1024 (i.e., just over one microsecond, which is " |
| 834 |
#| "the resolution of the implementation), and less than 2^63. If any of " |
| 835 |
#| "these checks fails, B<sched_setattr>(2) fails with the error B<EINVAL>." |
| 836 |
msgid "" |
| 837 |
"In addition, under the current implementation, all of the parameter values " |
| 838 |
"must be at least 1024 (i.e., just over one microsecond, which is the " |
| 839 |
"resolution of the implementation), and less than 2\\[ha]63. If any of these " |
| 840 |
"checks fails, B<sched_setattr>(2) fails with the error B<EINVAL>." |
| 841 |
msgstr "" |
| 842 |
"Также, в текущей реализации, значения всех параметров должны быть не менее " |
| 843 |
"1024 (т. е., чуть более одной микросекунды, ограничено в реализации) и " |
| 844 |
"меньше 2^63. При нарушении ограничений B<sched_setattr>(2) завершается с " |
| 845 |
"ошибкой B<EINVAL>." |
| 846 |
|
| 847 |
#. type: Plain text |
| 848 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 849 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 850 |
msgid "" |
| 851 |
"The CBS guarantees non-interference between tasks, by throttling threads " |
| 852 |
"that attempt to over-run their specified Runtime." |
| 853 |
msgstr "" |
| 854 |
"CBS гарантирует отсутствие влияния задача друг на друга, регулируя " |
| 855 |
"(throttling) нити, которые пытаются превысить заданное им время выполнения " |
| 856 |
"(Runtime)." |
| 857 |
|
| 858 |
#. type: Plain text |
| 859 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 860 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 861 |
msgid "" |
| 862 |
"To ensure deadline scheduling guarantees, the kernel must prevent situations " |
| 863 |
"where the set of B<SCHED_DEADLINE> threads is not feasible (schedulable) " |
| 864 |
"within the given constraints. The kernel thus performs an admittance test " |
| 865 |
"when setting or changing B<SCHED_DEADLINE> policy and attributes. This " |
| 866 |
"admission test calculates whether the change is feasible; if it is not, " |
| 867 |
"B<sched_setattr>(2) fails with the error B<EBUSY>." |
| 868 |
msgstr "" |
| 869 |
"Чтобы гарантировать выполнение алгоритма планирования крайнего срока, ядро " |
| 870 |
"должно предотвращать ситуации, где установка B<SCHED_DEADLINE> нитям не " |
| 871 |
"выполнима (не может быть запланирована) для указанных ограничений. Для этого " |
| 872 |
"ядро выполняет тест допустимости при назначении или изменении алгоритма " |
| 873 |
"B<SCHED_DEADLINE> и атрибутов. В данном тесте вычисляется, выполнимы ли " |
| 874 |
"изменения; если нет, то B<sched_setattr>(2) завершается с ошибкой B<EBUSY>." |
| 875 |
|
| 876 |
#. type: Plain text |
| 877 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 878 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 879 |
msgid "" |
| 880 |
"For example, it is required (but not necessarily sufficient) for the total " |
| 881 |
"utilization to be less than or equal to the total number of CPUs available, " |
| 882 |
"where, since each thread can maximally run for Runtime per Period, that " |
| 883 |
"thread's utilization is its Runtime divided by its Period." |
| 884 |
msgstr "" |
| 885 |
"Например, для этого требуется (но не обязательно достаточно), чтобы общая " |
| 886 |
"загруженность была меньше или равной общему количеству доступных ЦП, так как " |
| 887 |
"каждая нить максимально может работать весь промежуток времени, то есть " |
| 888 |
"загруженность нити равна её Runtime, поделённый на Period." |
| 889 |
|
| 890 |
#. type: Plain text |
| 891 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 892 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 893 |
msgid "" |
| 894 |
"In order to fulfill the guarantees that are made when a thread is admitted " |
| 895 |
"to the B<SCHED_DEADLINE> policy, B<SCHED_DEADLINE> threads are the highest " |
| 896 |
"priority (user controllable) threads in the system; if any B<SCHED_DEADLINE> " |
| 897 |
"thread is runnable, it will preempt any thread scheduled under one of the " |
| 898 |
"other policies." |
| 899 |
msgstr "" |
| 900 |
"Чтобы удовлетворить гарантиям, которые даются, когда нити назначен алгоритм " |
| 901 |
"B<SCHED_DEADLINE>, нити с B<SCHED_DEADLINE> имеют наивысший приоритет " |
| 902 |
"(управляется пользователем) по сравнению с другими нитями в системе; если " |
| 903 |
"нить с B<SCHED_DEADLINE> запускается, то она вытеснит любую нить, " |
| 904 |
"запланированную любым другим алгоритмом." |
| 905 |
|
| 906 |
#. type: Plain text |
| 907 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 908 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 909 |
msgid "" |
| 910 |
"A call to B<fork>(2) by a thread scheduled under the B<SCHED_DEADLINE> " |
| 911 |
"policy fails with the error B<EAGAIN>, unless the thread has its reset-on-" |
| 912 |
"fork flag set (see below)." |
| 913 |
msgstr "" |
| 914 |
"Вызов B<fork>(2) в нити, запланированной B<SCHED_DEADLINE> завершается " |
| 915 |
"ошибкой B<EAGAIN>, если у нити не установлен флаг reset-on-fork (смотрите " |
| 916 |
"далее)." |
| 917 |
|
| 918 |
#. FIXME Calling sched_getparam() on a SCHED_DEADLINE thread |
| 919 |
#. fails with EINVAL, but sched_getscheduler() succeeds. |
| 920 |
#. Is that intended? (Why?) |
| 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 |
"A B<SCHED_DEADLINE> thread that calls B<sched_yield>(2) will yield the " |
| 926 |
"current job and wait for a new period to begin." |
| 927 |
msgstr "" |
| 928 |
"Нить с B<SCHED_DEADLINE>, вызывающая B<sched_yield>(2) приостановит текущее " |
| 929 |
"задание и будет ждать начала нового промежутка времени." |
| 930 |
|
| 931 |
#. type: SS |
| 932 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 933 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 934 |
#, no-wrap |
| 935 |
msgid "SCHED_OTHER: Default Linux time-sharing scheduling" |
| 936 |
msgstr "SCHED_OTHER: планирование с разделение времени (по умолчанию в Linux)" |
| 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 |
"B<SCHED_OTHER> can be used at only static priority 0 (i.e., threads under " |
| 943 |
"real-time policies always have priority over B<SCHED_OTHER> processes). " |
| 944 |
"B<SCHED_OTHER> is the standard Linux time-sharing scheduler that is intended " |
| 945 |
"for all threads that do not require the special real-time mechanisms." |
| 946 |
msgstr "" |
| 947 |
"B<SCHED_OTHER> можно использовать только с статическим приоритетом 0 (то " |
| 948 |
"есть, нити, работающие по алгоритму реального времени, всегда имеют " |
| 949 |
"приоритет над процессами с B<SCHED_OTHER>). B<SCHED_OTHER> — это стандартный " |
| 950 |
"планировщик Linux с разделением времени, предназначенный для всех нитей, не " |
| 951 |
"требующих специальных механизмов реального времени." |
| 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 |
"The thread to run is chosen from the static priority 0 list based on a " |
| 958 |
"I<dynamic> priority that is determined only inside this list. The dynamic " |
| 959 |
"priority is based on the nice value (see below) and is increased for each " |
| 960 |
"time quantum the thread is ready to run, but denied to run by the " |
| 961 |
"scheduler. This ensures fair progress among all B<SCHED_OTHER> threads." |
| 962 |
msgstr "" |
| 963 |
"Для выполнения выбирается нить из списка со статическим приоритетом 0 на " |
| 964 |
"основе I<динамического> приоритета, существующего только внутри этого " |
| 965 |
"списка. Динамический приоритет основан на значении уступчивости (смотрите " |
| 966 |
"ниже) и увеличивается с каждым квантом времени, при котором нить была готова " |
| 967 |
"к работе, но ей было отказано в этом планировщиком. Таким образом время " |
| 968 |
"равномерно распределяется между всеми нитями с алгоритмом B<SCHED_OTHER>." |
| 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 |
"In the Linux kernel source code, the B<SCHED_OTHER> policy is actually named " |
| 975 |
"B<SCHED_NORMAL>." |
| 976 |
msgstr "" |
| 977 |
"В дереве исходного кода ядра Linux алгоритм B<SCHED_OTHER> на самом деле " |
| 978 |
"называется B<SCHED_NORMAL>." |
| 979 |
|
| 980 |
#. type: SS |
| 981 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 982 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 983 |
#, no-wrap |
| 984 |
msgid "The nice value" |
| 985 |
msgstr "Значение уступчивости" |
| 986 |
|
| 987 |
#. type: Plain text |
| 988 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 989 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 990 |
msgid "" |
| 991 |
"The nice value is an attribute that can be used to influence the CPU " |
| 992 |
"scheduler to favor or disfavor a process in scheduling decisions. It " |
| 993 |
"affects the scheduling of B<SCHED_OTHER> and B<SCHED_BATCH> (see below) " |
| 994 |
"processes. The nice value can be modified using B<nice>(2), " |
| 995 |
"B<setpriority>(2), or B<sched_setattr>(2)." |
| 996 |
msgstr "" |
| 997 |
"Значение уступчивости — это атрибут, который можно использовать для влияния " |
| 998 |
"на планировщик ЦП с целью сделать процесс более популярным (или наоборот) " |
| 999 |
"при принятии решений о планировании выполнения. Он учитывается при " |
| 1000 |
"планировании процессов с B<SCHED_OTHER> и B<SCHED_BATCH> (смотрите ниже). " |
| 1001 |
"Значение уступчивости можно изменять с помощью B<nice>(2), B<setpriority>(2) " |
| 1002 |
"или B<sched_setattr>(2)." |
| 1003 |
|
| 1004 |
#. type: Plain text |
| 1005 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1006 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1007 |
msgid "" |
| 1008 |
"According to POSIX.1, the nice value is a per-process attribute; that is, " |
| 1009 |
"the threads in a process should share a nice value. However, on Linux, the " |
| 1010 |
"nice value is a per-thread attribute: different threads in the same process " |
| 1011 |
"may have different nice values." |
| 1012 |
msgstr "" |
| 1013 |
"Согласно POSIX.1, значение уступчивости является атрибутом процесса; то есть " |
| 1014 |
"нити процесса должны иметь одинаковое значение уступчивости. Однако в Linux " |
| 1015 |
"значение уступчивости является атрибутом нити: разные нити одного процесса " |
| 1016 |
"могут иметь разные значения уступчивости." |
| 1017 |
|
| 1018 |
#. Linux before 1.3.36 had \-infinity..15. |
| 1019 |
#. Since Linux 1.3.43, Linux has the range \-20..19. |
| 1020 |
#. type: Plain text |
| 1021 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1022 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1023 |
#, fuzzy |
| 1024 |
#| msgid "" |
| 1025 |
#| "The range of the nice value varies across UNIX systems. On modern Linux, " |
| 1026 |
#| "the range is -20 (high priority) to +19 (low priority). On some other " |
| 1027 |
#| "systems, the range is -20..20. Very early Linux kernels (Before Linux " |
| 1028 |
#| "2.0) had the range -infinity..15." |
| 1029 |
msgid "" |
| 1030 |
"The range of the nice value varies across UNIX systems. On modern Linux, " |
| 1031 |
"the range is -20 (high priority) to +19 (low priority). On some other " |
| 1032 |
"systems, the range is -20..20. Very early Linux kernels (before Linux 2.0) " |
| 1033 |
"had the range -infinity..15." |
| 1034 |
msgstr "" |
| 1035 |
"Диапазон значений уступчивости различается в разных системах UNIX. В " |
| 1036 |
"современном Linux диапазон: -20 (высокий приоритет) по +19 (низкий " |
| 1037 |
"приоритет). В других системах диапазон равен -20..20. В самых первых версиях " |
| 1038 |
"ядра Linux (до Linux 2.0) диапазон равнялся -бесконечность..15." |
| 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 |
"The degree to which the nice value affects the relative scheduling of " |
| 1045 |
"B<SCHED_OTHER> processes likewise varies across UNIX systems and across " |
| 1046 |
"Linux kernel versions." |
| 1047 |
msgstr "" |
| 1048 |
"Степень влияния значения уступчивости на процессы с подобным B<SCHED_OTHER> " |
| 1049 |
"в разных системах UNIX различна и не одинакова даже между версиями ядра " |
| 1050 |
"Linux." |
| 1051 |
|
| 1052 |
#. type: Plain text |
| 1053 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1054 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1055 |
#, fuzzy |
| 1056 |
#| msgid "" |
| 1057 |
#| "With the advent of the CFS scheduler in kernel 2.6.23, Linux adopted an " |
| 1058 |
#| "algorithm that causes relative differences in nice values to have a much " |
| 1059 |
#| "stronger effect. In the current implementation, each unit of difference " |
| 1060 |
#| "in the nice values of two processes results in a factor of 1.25 in the " |
| 1061 |
#| "degree to which the scheduler favors the higher priority process. This " |
| 1062 |
#| "causes very low nice values (+19) to truly provide little CPU to a " |
| 1063 |
#| "process whenever there is any other higher priority load on the system, " |
| 1064 |
#| "and makes high nice values (-20) deliver most of the CPU to applications " |
| 1065 |
#| "that require it (e.g., some audio applications)." |
| 1066 |
msgid "" |
| 1067 |
"With the advent of the CFS scheduler in Linux 2.6.23, Linux adopted an " |
| 1068 |
"algorithm that causes relative differences in nice values to have a much " |
| 1069 |
"stronger effect. In the current implementation, each unit of difference in " |
| 1070 |
"the nice values of two processes results in a factor of 1.25 in the degree " |
| 1071 |
"to which the scheduler favors the higher priority process. This causes very " |
| 1072 |
"low nice values (+19) to truly provide little CPU to a process whenever " |
| 1073 |
"there is any other higher priority load on the system, and makes high nice " |
| 1074 |
"values (-20) deliver most of the CPU to applications that require it (e.g., " |
| 1075 |
"some audio applications)." |
| 1076 |
msgstr "" |
| 1077 |
"С появлением планировщика CFS в ядре 2.6.23, в Linux стал применяться " |
| 1078 |
"алгоритм, учитывающий относительную разницу значений уступчивости более " |
| 1079 |
"полно. В текущей реализации каждое различие на единицу между значениями " |
| 1080 |
"уступчивости двух процессов приводит к умножению приоритета на 1.25, с " |
| 1081 |
"которым планировщик отдаёт предпочтение процессу с более высоким " |
| 1082 |
"приоритетом. Это приводит к тому, что самые низкие значения уступчивости " |
| 1083 |
"(+19) действительно получают очень мало времени ЦП независимо от того, есть " |
| 1084 |
"ли высокая загрузка системы, и по высоким значениям уступчивости (-20) " |
| 1085 |
"даётся больше времени на ЦП приложениям, которым это нужно (например, " |
| 1086 |
"некоторым аудиоприложениям)." |
| 1087 |
|
| 1088 |
#. type: Plain text |
| 1089 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1090 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1091 |
msgid "" |
| 1092 |
"On Linux, the B<RLIMIT_NICE> resource limit can be used to define a limit to " |
| 1093 |
"which an unprivileged process's nice value can be raised; see " |
| 1094 |
"B<setrlimit>(2) for details." |
| 1095 |
msgstr "" |
| 1096 |
"Для задания ограничения, до которого можно повышать значение уступчивости " |
| 1097 |
"непривилегированному процессу, в используется Linux ограничение ресурса " |
| 1098 |
"B<RLIMIT_NICE>; смотрите B<setrlimit>(2)." |
| 1099 |
|
| 1100 |
#. type: Plain text |
| 1101 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1102 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1103 |
msgid "" |
| 1104 |
"For further details on the nice value, see the subsections on the autogroup " |
| 1105 |
"feature and group scheduling, below." |
| 1106 |
msgstr "" |
| 1107 |
"Дополнительную информацию о значении уступчивости смотрите подразделы " |
| 1108 |
"свойств автогруппировки и группового планирования ниже." |
| 1109 |
|
| 1110 |
#. type: SS |
| 1111 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1112 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1113 |
#, no-wrap |
| 1114 |
msgid "SCHED_BATCH: Scheduling batch processes" |
| 1115 |
msgstr "SCHED_BATCH: планирование для пакетных процессов" |
| 1116 |
|
| 1117 |
#. type: Plain text |
| 1118 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1119 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1120 |
msgid "" |
| 1121 |
"(Since Linux 2.6.16.) B<SCHED_BATCH> can be used only at static priority " |
| 1122 |
"0. This policy is similar to B<SCHED_OTHER> in that it schedules the thread " |
| 1123 |
"according to its dynamic priority (based on the nice value). The difference " |
| 1124 |
"is that this policy will cause the scheduler to always assume that the " |
| 1125 |
"thread is CPU-intensive. Consequently, the scheduler will apply a small " |
| 1126 |
"scheduling penalty with respect to wakeup behavior, so that this thread is " |
| 1127 |
"mildly disfavored in scheduling decisions." |
| 1128 |
msgstr "" |
| 1129 |
"(начиная с Linux 2.6.16) B<SCHED_BATCH> можно использовать только с " |
| 1130 |
"статическим приоритетом равным нулю. Этот алгоритм похож на B<SCHED_OTHER> в " |
| 1131 |
"том, что он планирует выполнение нити на основе её динамического приоритета " |
| 1132 |
"(на основе значения nice). Различие в том, что в этом алгоритме планировщик " |
| 1133 |
"всегда предполагает, что нить, в основном, использует ЦП. Следовательно, " |
| 1134 |
"планировщик немного понизит вероятность её следующего пробуждения для того, " |
| 1135 |
"чтобы эта нить уступила другим при планировании." |
| 1136 |
|
| 1137 |
#. The following paragraph is drawn largely from the text that |
| 1138 |
#. accompanied Ingo Molnar's patch for the implementation of |
| 1139 |
#. SCHED_BATCH. |
| 1140 |
#. commit b0a9499c3dd50d333e2aedb7e894873c58da3785 |
| 1141 |
#. type: Plain text |
| 1142 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1143 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1144 |
msgid "" |
| 1145 |
"This policy is useful for workloads that are noninteractive, but do not want " |
| 1146 |
"to lower their nice value, and for workloads that want a deterministic " |
| 1147 |
"scheduling policy without interactivity causing extra preemptions (between " |
| 1148 |
"the workload's tasks)." |
| 1149 |
msgstr "" |
| 1150 |
"Этот алгоритм полезен при нагрузках не интерактивными задачами, но когда " |
| 1151 |
"нежелательно понижать их значение nice и для задач, которым требуется " |
| 1152 |
"предсказуемый алгоритм планирования без интерактивности, который приводит к " |
| 1153 |
"дополнительным вытеснениям (между задачами нагрузки)." |
| 1154 |
|
| 1155 |
#. type: SS |
| 1156 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1157 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1158 |
#, no-wrap |
| 1159 |
msgid "SCHED_IDLE: Scheduling very low priority jobs" |
| 1160 |
msgstr "SCHED_IDLE: планирование заданий с очень низким приоритетом" |
| 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 |
"(Since Linux 2.6.23.) B<SCHED_IDLE> can be used only at static priority 0; " |
| 1167 |
"the process nice value has no influence for this policy." |
| 1168 |
msgstr "" |
| 1169 |
"(начиная с Linux 2.6.23) B<SCHED_IDLE> можно использовать только с " |
| 1170 |
"статическим приоритетом равным нулю; значение nice не учитывает в этом " |
| 1171 |
"алгоритме." |
| 1172 |
|
| 1173 |
#. type: Plain text |
| 1174 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1175 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1176 |
msgid "" |
| 1177 |
"This policy is intended for running jobs at extremely low priority (lower " |
| 1178 |
"even than a +19 nice value with the B<SCHED_OTHER> or B<SCHED_BATCH> " |
| 1179 |
"policies)." |
| 1180 |
msgstr "" |
| 1181 |
"Данный алгоритм предназначен для выполнения заданий с чрезвычайно низким " |
| 1182 |
"приоритетом (даже ниже чем значение nice +19 в алгоритме B<SCHED_OTHER> или " |
| 1183 |
"B<SCHED_BATCH>)." |
| 1184 |
|
| 1185 |
#. type: SS |
| 1186 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1187 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1188 |
#, no-wrap |
| 1189 |
msgid "Resetting scheduling policy for child processes" |
| 1190 |
msgstr "Сброс алгоритма планирования у дочерних процессов" |
| 1191 |
|
| 1192 |
#. type: Plain text |
| 1193 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1194 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1195 |
msgid "" |
| 1196 |
"Each thread has a reset-on-fork scheduling flag. When this flag is set, " |
| 1197 |
"children created by B<fork>(2) do not inherit privileged scheduling " |
| 1198 |
"policies. The reset-on-fork flag can be set by either:" |
| 1199 |
msgstr "" |
| 1200 |
"В каждой нити есть флаг планирования reset-on-fork. Когда этот флаг " |
| 1201 |
"установлен, потомки, создаваемые B<fork>(2), не наследуют привилегированные " |
| 1202 |
"алгоритмы планирования. Флаг reset-on-fork может быть задан так:" |
| 1203 |
|
| 1204 |
#. type: Plain text |
| 1205 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1206 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1207 |
msgid "" |
| 1208 |
"ORing the B<SCHED_RESET_ON_FORK> flag into the I<policy> argument when " |
| 1209 |
"calling B<sched_setscheduler>(2) (since Linux 2.6.32); or" |
| 1210 |
msgstr "" |
| 1211 |
"Логическим сложением флага B<SCHED_RESET_ON_FORK> с аргументом I<policy> при " |
| 1212 |
"вызове B<sched_setscheduler>(2) (начиная с Linux 2.6.32); или" |
| 1213 |
|
| 1214 |
#. type: Plain text |
| 1215 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1216 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1217 |
msgid "" |
| 1218 |
"specifying the B<SCHED_FLAG_RESET_ON_FORK> flag in I<attr.sched_flags> when " |
| 1219 |
"calling B<sched_setattr>(2)." |
| 1220 |
msgstr "" |
| 1221 |
"заданием флага B<SCHED_FLAG_RESET_ON_FORK> в I<attr.sched_flags> при вызове " |
| 1222 |
"B<sched_setattr>(2)." |
| 1223 |
|
| 1224 |
#. type: Plain text |
| 1225 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1226 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1227 |
msgid "" |
| 1228 |
"Note that the constants used with these two APIs have different names. The " |
| 1229 |
"state of the reset-on-fork flag can analogously be retrieved using " |
| 1230 |
"B<sched_getscheduler>(2) and B<sched_getattr>(2)." |
| 1231 |
msgstr "" |
| 1232 |
"Заметим, что константы, используемые в этих двух вызовам имеют разные имена. " |
| 1233 |
"Состояние флага reset-on-fork может быть получено аналогичным образом с " |
| 1234 |
"помощью B<sched_getscheduler>(2) и B<sched_getattr>(2)." |
| 1235 |
|
| 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 |
"The reset-on-fork feature is intended for media-playback applications, and " |
| 1241 |
"can be used to prevent applications evading the B<RLIMIT_RTTIME> resource " |
| 1242 |
"limit (see B<getrlimit>(2)) by creating multiple child processes." |
| 1243 |
msgstr "" |
| 1244 |
"Возможность reset-on-fork предназначена для приложений, проигрывающих медиа-" |
| 1245 |
"файлы, и может использоваться для обхождения ограничения ресурса " |
| 1246 |
"B<RLIMIT_RTTIME> (см. B<getrlimit>(2)), посредством создания нескольких " |
| 1247 |
"дочерних процессов." |
| 1248 |
|
| 1249 |
#. type: Plain text |
| 1250 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1251 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1252 |
msgid "" |
| 1253 |
"More precisely, if the reset-on-fork flag is set, the following rules apply " |
| 1254 |
"for subsequently created children:" |
| 1255 |
msgstr "" |
| 1256 |
"Точнее говоря, если указан флаг reset-on-fork, то к новым потомкам " |
| 1257 |
"применяются следующие правила:" |
| 1258 |
|
| 1259 |
#. type: Plain text |
| 1260 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1261 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1262 |
msgid "" |
| 1263 |
"If the calling thread has a scheduling policy of B<SCHED_FIFO> or " |
| 1264 |
"B<SCHED_RR>, the policy is reset to B<SCHED_OTHER> in child processes." |
| 1265 |
msgstr "" |
| 1266 |
"Если вызывающая нить имеет алгоритм планирования B<SCHED_FIFO> или " |
| 1267 |
"B<SCHED_RR>, то у потомков алгоритм сбрасывается в B<SCHED_OTHER>." |
| 1268 |
|
| 1269 |
#. type: Plain text |
| 1270 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1271 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1272 |
msgid "" |
| 1273 |
"If the calling process has a negative nice value, the nice value is reset to " |
| 1274 |
"zero in child processes." |
| 1275 |
msgstr "" |
| 1276 |
"Если у вызывающего процесса значение nice отрицательно, то у потомков " |
| 1277 |
"значение nice сбрасывается в ноль." |
| 1278 |
|
| 1279 |
#. type: Plain text |
| 1280 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1281 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1282 |
msgid "" |
| 1283 |
"After the reset-on-fork flag has been enabled, it can be reset only if the " |
| 1284 |
"thread has the B<CAP_SYS_NICE> capability. This flag is disabled in child " |
| 1285 |
"processes created by B<fork>(2)." |
| 1286 |
msgstr "" |
| 1287 |
"После установки флага reset-on-fork его можно сбросить только, если нить " |
| 1288 |
"имеет мандат B<CAP_SYS_NICE>. Этот флаг выключается у потомков, созданных " |
| 1289 |
"через B<fork>(2)." |
| 1290 |
|
| 1291 |
#. type: SS |
| 1292 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1293 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1294 |
#, no-wrap |
| 1295 |
msgid "Privileges and resource limits" |
| 1296 |
msgstr "Привилегии и ограничения по ресурсам" |
| 1297 |
|
| 1298 |
#. type: Plain text |
| 1299 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1300 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1301 |
#, fuzzy |
| 1302 |
#| msgid "" |
| 1303 |
#| "In Linux kernels before 2.6.12, only privileged (B<CAP_SYS_NICE>) " |
| 1304 |
#| "threads can set a nonzero static priority (i.e., set a real-time " |
| 1305 |
#| "scheduling policy). The only change that an unprivileged thread can make " |
| 1306 |
#| "is to set the B<SCHED_OTHER> policy, and this can be done only if the " |
| 1307 |
#| "effective user ID of the caller matches the real or effective user ID of " |
| 1308 |
#| "the target thread (i.e., the thread specified by I<pid>) whose policy is " |
| 1309 |
#| "being changed." |
| 1310 |
msgid "" |
| 1311 |
"Before Linux 2.6.12, only privileged (B<CAP_SYS_NICE>) threads can set a " |
| 1312 |
"nonzero static priority (i.e., set a real-time scheduling policy). The only " |
| 1313 |
"change that an unprivileged thread can make is to set the B<SCHED_OTHER> " |
| 1314 |
"policy, and this can be done only if the effective user ID of the caller " |
| 1315 |
"matches the real or effective user ID of the target thread (i.e., the thread " |
| 1316 |
"specified by I<pid>) whose policy is being changed." |
| 1317 |
msgstr "" |
| 1318 |
"В ядрах Linux до версии 2.6.12, только привилегированные нити " |
| 1319 |
"(B<CAP_SYS_NICE>) могли устанавливать ненулевое значение статического " |
| 1320 |
"приоритета (т.е. алгоритм планирования реального времени). " |
| 1321 |
"Непривилегированные нити могли только установить алгоритм B<SCHED_OTHER>, и " |
| 1322 |
"это могло быть сделано только, если эффективный пользовательский " |
| 1323 |
"идентификатор вызывающего совпадал с реальным или эффективным " |
| 1324 |
"пользовательским идентификатором задаваемого нити (т.е., нити, указываемой в " |
| 1325 |
"I<pid>)." |
| 1326 |
|
| 1327 |
#. type: Plain text |
| 1328 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1329 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1330 |
msgid "" |
| 1331 |
"A thread must be privileged (B<CAP_SYS_NICE>) in order to set or modify a " |
| 1332 |
"B<SCHED_DEADLINE> policy." |
| 1333 |
msgstr "" |
| 1334 |
"Для задания или изменения B<SCHED_DEADLINE> нить должна быть " |
| 1335 |
"привилегированной (B<CAP_SYS_NICE>)." |
| 1336 |
|
| 1337 |
#. type: Plain text |
| 1338 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1339 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1340 |
msgid "" |
| 1341 |
"Since Linux 2.6.12, the B<RLIMIT_RTPRIO> resource limit defines a ceiling on " |
| 1342 |
"an unprivileged thread's static priority for the B<SCHED_RR> and " |
| 1343 |
"B<SCHED_FIFO> policies. The rules for changing scheduling policy and " |
| 1344 |
"priority are as follows:" |
| 1345 |
msgstr "" |
| 1346 |
"Начиная с Linux 2.6.12, ограничитель ресурса B<RLIMIT_RTPRIO> определяет " |
| 1347 |
"максимум статического приоритета непривилегированной нити для алгоритмов " |
| 1348 |
"B<SCHED_RR> и B<SCHED_FIFO>. Правила для изменения алгоритма планирования и " |
| 1349 |
"приоритета:" |
| 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 |
"If an unprivileged thread has a nonzero B<RLIMIT_RTPRIO> soft limit, then it " |
| 1356 |
"can change its scheduling policy and priority, subject to the restriction " |
| 1357 |
"that the priority cannot be set to a value higher than the maximum of its " |
| 1358 |
"current priority and its B<RLIMIT_RTPRIO> soft limit." |
| 1359 |
msgstr "" |
| 1360 |
"Если непривилегированная нить имеет ненулевое значение мягкого ограничения " |
| 1361 |
"B<RLIMIT_RTPRIO>, то она может изменять свой алгоритм планирования и " |
| 1362 |
"приоритет, но при этом значение приоритета не может быть больше чем " |
| 1363 |
"максимальное значение её текущего приоритета и его мягкого ограничения " |
| 1364 |
"B<RLIMIT_RTPRIO>." |
| 1365 |
|
| 1366 |
#. type: Plain text |
| 1367 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1368 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1369 |
msgid "" |
| 1370 |
"If the B<RLIMIT_RTPRIO> soft limit is 0, then the only permitted changes are " |
| 1371 |
"to lower the priority, or to switch to a non-real-time policy." |
| 1372 |
msgstr "" |
| 1373 |
"Если мягкое ограничение B<RLIMIT_RTPRIO> равно 0, то разрешается только " |
| 1374 |
"снижать приоритет или переключиться на алгоритм выполнения не реального " |
| 1375 |
"времени." |
| 1376 |
|
| 1377 |
#. type: Plain text |
| 1378 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1379 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1380 |
msgid "" |
| 1381 |
"Subject to the same rules, another unprivileged thread can also make these " |
| 1382 |
"changes, as long as the effective user ID of the thread making the change " |
| 1383 |
"matches the real or effective user ID of the target thread." |
| 1384 |
msgstr "" |
| 1385 |
"Согласно тем же самым правилам другая непривилегированная нить может также " |
| 1386 |
"сделать эти изменения, пока эффективный идентификатор пользователя нити, " |
| 1387 |
"производящей изменение, совпадает с реальным или эффективным идентификатором " |
| 1388 |
"пользователя изменяемой нити." |
| 1389 |
|
| 1390 |
#. commit c02aa73b1d18e43cfd79c2f193b225e84ca497c8 |
| 1391 |
#. type: Plain text |
| 1392 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1393 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1394 |
#, fuzzy |
| 1395 |
#| msgid "" |
| 1396 |
#| "Special rules apply for the B<SCHED_IDLE> policy. In Linux kernels " |
| 1397 |
#| "before 2.6.39, an unprivileged thread operating under this policy cannot " |
| 1398 |
#| "change its policy, regardless of the value of its B<RLIMIT_RTPRIO> " |
| 1399 |
#| "resource limit. In Linux kernels since 2.6.39, an unprivileged thread " |
| 1400 |
#| "can switch to either the B<SCHED_BATCH> or the B<SCHED_OTHER> policy so " |
| 1401 |
#| "long as its nice value falls within the range permitted by its " |
| 1402 |
#| "B<RLIMIT_NICE> resource limit (see B<getrlimit>(2))." |
| 1403 |
msgid "" |
| 1404 |
"Special rules apply for the B<SCHED_IDLE> policy. Before Linux 2.6.39, an " |
| 1405 |
"unprivileged thread operating under this policy cannot change its policy, " |
| 1406 |
"regardless of the value of its B<RLIMIT_RTPRIO> resource limit. Since Linux " |
| 1407 |
"2.6.39, an unprivileged thread can switch to either the B<SCHED_BATCH> or " |
| 1408 |
"the B<SCHED_OTHER> policy so long as its nice value falls within the range " |
| 1409 |
"permitted by its B<RLIMIT_NICE> resource limit (see B<getrlimit>(2))." |
| 1410 |
msgstr "" |
| 1411 |
"Для политики B<SCHED_IDLE> применяются специальные правила. В ядрах Linux до " |
| 1412 |
"версии 2.6.39, сменить политику работы непривилегированной нити нельзя, " |
| 1413 |
"независимо от значения её ограничителя ресурсов B<RLIMIT_RTPRIO>. В ядрах " |
| 1414 |
"Linux начиная с версии 2.6.39, непривилегированная нить может переключиться " |
| 1415 |
"на политику B<SCHED_BATCH> или B<SCHED_OTHER>, если её значение уступчивости " |
| 1416 |
"находится в диапазоне, разрешённом ей ограничителем ресурсов B<RLIMIT_NICE> " |
| 1417 |
"(см. B<getrlimit>(2))." |
| 1418 |
|
| 1419 |
#. type: Plain text |
| 1420 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1421 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1422 |
msgid "" |
| 1423 |
"Privileged (B<CAP_SYS_NICE>) threads ignore the B<RLIMIT_RTPRIO> limit; as " |
| 1424 |
"with older kernels, they can make arbitrary changes to scheduling policy and " |
| 1425 |
"priority. See B<getrlimit>(2) for further information on B<RLIMIT_RTPRIO>." |
| 1426 |
msgstr "" |
| 1427 |
"Для привилегированных (B<CAP_SYS_NICE>) нитей ограничение B<RLIMIT_RTPRIO> " |
| 1428 |
"игнорируется; как в старых ядрах, они могут произвольно менять алгоритм " |
| 1429 |
"планирования и приоритет. Подробней смотрите в B<getrlimit>(2) про " |
| 1430 |
"B<RLIMIT_RTPRIO>." |
| 1431 |
|
| 1432 |
#. type: SS |
| 1433 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1434 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1435 |
#, no-wrap |
| 1436 |
msgid "Limiting the CPU usage of real-time and deadline processes" |
| 1437 |
msgstr "Ограничение использование ЦП процессами реального времени и процессами с крайним сроком" |
| 1438 |
|
| 1439 |
#. type: Plain text |
| 1440 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1441 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1442 |
#, fuzzy |
| 1443 |
#| msgid "" |
| 1444 |
#| "A nonblocking infinite loop in a thread scheduled under the " |
| 1445 |
#| "B<SCHED_FIFO>, B<SCHED_RR>, or B<SCHED_DEADLINE> policy can potentially " |
| 1446 |
#| "block all other threads from accessing the CPU forever. Prior to Linux " |
| 1447 |
#| "2.6.25, the only way of preventing a runaway real-time process from " |
| 1448 |
#| "freezing the system was to run (at the console) a shell scheduled under " |
| 1449 |
#| "a higher static priority than the tested application. This allows an " |
| 1450 |
#| "emergency kill of tested real-time applications that do not block or " |
| 1451 |
#| "terminate as expected." |
| 1452 |
msgid "" |
| 1453 |
"A nonblocking infinite loop in a thread scheduled under the B<SCHED_FIFO>, " |
| 1454 |
"B<SCHED_RR>, or B<SCHED_DEADLINE> policy can potentially block all other " |
| 1455 |
"threads from accessing the CPU forever. Before Linux 2.6.25, the only way " |
| 1456 |
"of preventing a runaway real-time process from freezing the system was to " |
| 1457 |
"run (at the console) a shell scheduled under a higher static priority than " |
| 1458 |
"the tested application. This allows an emergency kill of tested real-time " |
| 1459 |
"applications that do not block or terminate as expected." |
| 1460 |
msgstr "" |
| 1461 |
"Неблокирующий бесконечный цикл в нити, запланированной алгоритмами " |
| 1462 |
"B<SCHED_FIFO>, B<SCHED_RR> или B<SCHED_DEADLINE> потенциально может привести " |
| 1463 |
"к вечному блокированию остальных нитей. До Linux 2.6.25 был только один " |
| 1464 |
"способ предотвращения заморозки системы бесконтрольными процессами реального " |
| 1465 |
"времени — запуск (с консоли) оболочки с наивысшим статическим приоритетом, " |
| 1466 |
"большим чем тестируемое приложение. Это позволяло экстренно прибить " |
| 1467 |
"тестируемое приложение реального времени, которое не блокируется или " |
| 1468 |
"завершается как положено." |
| 1469 |
|
| 1470 |
#. type: Plain text |
| 1471 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1472 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1473 |
msgid "" |
| 1474 |
"Since Linux 2.6.25, there are other techniques for dealing with runaway real-" |
| 1475 |
"time and deadline processes. One of these is to use the B<RLIMIT_RTTIME> " |
| 1476 |
"resource limit to set a ceiling on the CPU time that a real-time process may " |
| 1477 |
"consume. See B<getrlimit>(2) for details." |
| 1478 |
msgstr "" |
| 1479 |
"Начиная с Linux 2.6.25, есть другие способы работы с процессами реального " |
| 1480 |
"времени и процессами с крайним сроком. Один из них — использовать " |
| 1481 |
"ограничитель ресурса B<RLIMIT_RTTIME>, задав потолок времени ЦП, которое " |
| 1482 |
"процесс реального времени может задействовать. Подробней смотрите в " |
| 1483 |
"B<getrlimit>(2)." |
| 1484 |
|
| 1485 |
#. type: Plain text |
| 1486 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1487 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1488 |
#, fuzzy |
| 1489 |
#| msgid "" |
| 1490 |
#| "Since version 2.6.25, Linux also provides two I</proc> files that can be " |
| 1491 |
#| "used to reserve a certain amount of CPU time to be used by non-real-time " |
| 1492 |
#| "processes. Reserving CPU time in this fashion allows some CPU time to be " |
| 1493 |
#| "allocated to (say) a root shell that can be used to kill a runaway " |
| 1494 |
#| "process. Both of these files specify time values in microseconds:" |
| 1495 |
msgid "" |
| 1496 |
"Since Linux 2.6.25, Linux also provides two I</proc> files that can be used " |
| 1497 |
"to reserve a certain amount of CPU time to be used by non-real-time " |
| 1498 |
"processes. Reserving CPU time in this fashion allows some CPU time to be " |
| 1499 |
"allocated to (say) a root shell that can be used to kill a runaway process. " |
| 1500 |
"Both of these files specify time values in microseconds:" |
| 1501 |
msgstr "" |
| 1502 |
"Начиная с версии 2.6.25, в Linux также предоставляется два файла в I</proc>, " |
| 1503 |
"которые можно использовать для резервирования определённого количества " |
| 1504 |
"времени ЦП, используемое процессами нереального времени. Резервирование " |
| 1505 |
"некоторого количества ЦП подобным образом позволяет оставить время на том же " |
| 1506 |
"ЦП (скажем) оболочке root, через которую можно завершить неконтролируемый " |
| 1507 |
"процесс. В этих файлах значение времени указывается в микросекундах:" |
| 1508 |
|
| 1509 |
#. type: TP |
| 1510 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1511 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1512 |
#, no-wrap |
| 1513 |
msgid "I</proc/sys/kernel/sched_rt_period_us>" |
| 1514 |
msgstr "I</proc/sys/kernel/sched_rt_period_us>" |
| 1515 |
|
| 1516 |
#. type: Plain text |
| 1517 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1518 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1519 |
msgid "" |
| 1520 |
"This file specifies a scheduling period that is equivalent to 100% CPU " |
| 1521 |
"bandwidth. The value in this file can range from 1 to B<INT_MAX>, giving an " |
| 1522 |
"operating range of 1 microsecond to around 35 minutes. The default value in " |
| 1523 |
"this file is 1,000,000 (1 second)." |
| 1524 |
msgstr "" |
| 1525 |
"В данном файле задаётся планируемый промежуток времени, который равен 100% " |
| 1526 |
"полосы ЦП. Значение в этом файле может лежать в диапазоне от 1 до " |
| 1527 |
"B<INT_MAX>, что даёт рабочий диапазон от 1 микросекунды до, приблизительно, " |
| 1528 |
"35 минут. Значение в файле по умолчанию равно 1000000 (1 секунда)." |
| 1529 |
|
| 1530 |
#. type: TP |
| 1531 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1532 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1533 |
#, no-wrap |
| 1534 |
msgid "I</proc/sys/kernel/sched_rt_runtime_us>" |
| 1535 |
msgstr "I</proc/sys/kernel/sched_rt_runtime_us>" |
| 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 |
#, fuzzy |
| 1541 |
#| msgid "" |
| 1542 |
#| "The value in this file specifies how much of the \"period\" time can be " |
| 1543 |
#| "used by all real-time and deadline scheduled processes on the system. " |
| 1544 |
#| "The value in this file can range from -1 to B<INT_MAX>-1. Specifying -1 " |
| 1545 |
#| "makes the run time the same as the period; that is, no CPU time is set " |
| 1546 |
#| "aside for non-real-time processes (which was the Linux behavior before " |
| 1547 |
#| "kernel 2.6.25). The default value in this file is 950,000 (0.95 " |
| 1548 |
#| "seconds), meaning that 5% of the CPU time is reserved for processes that " |
| 1549 |
#| "don't run under a real-time or deadline scheduling policy." |
| 1550 |
msgid "" |
| 1551 |
"The value in this file specifies how much of the \"period\" time can be used " |
| 1552 |
"by all real-time and deadline scheduled processes on the system. The value " |
| 1553 |
"in this file can range from -1 to B<INT_MAX>-1. Specifying -1 makes the run " |
| 1554 |
"time the same as the period; that is, no CPU time is set aside for non-real-" |
| 1555 |
"time processes (which was the behavior before Linux 2.6.25). The default " |
| 1556 |
"value in this file is 950,000 (0.95 seconds), meaning that 5% of the CPU " |
| 1557 |
"time is reserved for processes that don't run under a real-time or deadline " |
| 1558 |
"scheduling policy." |
| 1559 |
msgstr "" |
| 1560 |
"Значением в этом файле определяется насколько большой промежуток времени " |
| 1561 |
"может использоваться всеми процессами реального времени и процессами с " |
| 1562 |
"крайним сроком в системе. Диапазон значений: от -1 до B<INT_MAX>-1. Значение " |
| 1563 |
"-1 означает, что время выполнения равно промежутку времени; то есть нет " |
| 1564 |
"времени ЦП для приложений нереального времени (что соответствует поведению " |
| 1565 |
"Linux до версии ядра 2.6.25). Значение по умолчанию равно 950000 (0.95 " |
| 1566 |
"секунды), означающее, что 5% времени ЦП зарезервировано для процессов, " |
| 1567 |
"планирование которых выполняется не по алгоритму реального времени или " |
| 1568 |
"алгоритму с крайним сроком." |
| 1569 |
|
| 1570 |
#. type: SS |
| 1571 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1572 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1573 |
#, no-wrap |
| 1574 |
msgid "Response time" |
| 1575 |
msgstr "Время ответа" |
| 1576 |
|
| 1577 |
#. as described in |
| 1578 |
#. .BR request_irq (9). |
| 1579 |
#. type: Plain text |
| 1580 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1581 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1582 |
msgid "" |
| 1583 |
"A blocked high priority thread waiting for I/O has a certain response time " |
| 1584 |
"before it is scheduled again. The device driver writer can greatly reduce " |
| 1585 |
"this response time by using a \"slow interrupt\" interrupt handler." |
| 1586 |
msgstr "" |
| 1587 |
"Блокированная нить с высоким приоритетом, ожидающая ввода/вывода, " |
| 1588 |
"освобождает достаточно много процессорного времени до того, как снова начнёт " |
| 1589 |
"работать. Авторы драйверов устройств могут более эффективно использовать это " |
| 1590 |
"время, если воспользуются «медленным» обработчиком прерываний." |
| 1591 |
|
| 1592 |
#. type: SS |
| 1593 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1594 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1595 |
#, no-wrap |
| 1596 |
msgid "Miscellaneous" |
| 1597 |
msgstr "Разное" |
| 1598 |
|
| 1599 |
#. type: Plain text |
| 1600 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1601 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1602 |
msgid "" |
| 1603 |
"Child processes inherit the scheduling policy and parameters across a " |
| 1604 |
"B<fork>(2). The scheduling policy and parameters are preserved across " |
| 1605 |
"B<execve>(2)." |
| 1606 |
msgstr "" |
| 1607 |
"Дочерние процессы наследуют алгоритм планирования и его параметры после " |
| 1608 |
"B<fork>(2). Алгоритм планирования и параметры сохраняются при вызове " |
| 1609 |
"B<execve>(2)." |
| 1610 |
|
| 1611 |
#. type: Plain text |
| 1612 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1613 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1614 |
msgid "" |
| 1615 |
"Memory locking is usually needed for real-time processes to avoid paging " |
| 1616 |
"delays; this can be done with B<mlock>(2) or B<mlockall>(2)." |
| 1617 |
msgstr "" |
| 1618 |
"Обычно, процессам реального времени необходимо блокировать память для того, " |
| 1619 |
"чтобы избежать задержек при страничном обмене. Это можно сделать при помощи " |
| 1620 |
"вызова B<mlock>(2) или B<mlockall>(2)." |
| 1621 |
|
| 1622 |
#. type: SS |
| 1623 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1624 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1625 |
#, no-wrap |
| 1626 |
msgid "The autogroup feature" |
| 1627 |
msgstr "Свойство автогруппировки" |
| 1628 |
|
| 1629 |
#. commit 5091faa449ee0b7d73bc296a93bca9540fc51d0a |
| 1630 |
#. type: Plain text |
| 1631 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1632 |
#: opensuse-tumbleweed |
| 1633 |
#, fuzzy |
| 1634 |
#| msgid "" |
| 1635 |
#| "Since Linux 2.6.38, the kernel provides a feature known as autogrouping " |
| 1636 |
#| "to improve interactive desktop performance in the face of multiprocess, " |
| 1637 |
#| "CPU-intensive workloads such as building the Linux kernel with large " |
| 1638 |
#| "numbers of parallel build processes (i.e., the B<make>(1) B<-j> flag)." |
| 1639 |
msgid "" |
| 1640 |
"Since Linux 2.6.38, the kernel provides a feature known as autogrouping to " |
| 1641 |
"improve interactive desktop performance in the face of multiprocess CPU-" |
| 1642 |
"intensive workloads such as building the Linux kernel with large numbers of " |
| 1643 |
"parallel build processes (i.e., the B<make>(1) B<-j> flag)." |
| 1644 |
msgstr "" |
| 1645 |
"Начиная с Linux 2.6.38 в ядре появилось свойство, называемое " |
| 1646 |
"автогруппировкой; оно улучшает интерактивность рабочего окружения несмотря " |
| 1647 |
"на многопроцессную интенсивную нагрузку ЦП, такую как сборка ядра Linux " |
| 1648 |
"большим количеством параллельно собирающих процессов (т. е., командой " |
| 1649 |
"B<make>(1) с флагом B<-j>)." |
| 1650 |
|
| 1651 |
#. type: Plain text |
| 1652 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1653 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1654 |
msgid "" |
| 1655 |
"This feature operates in conjunction with the CFS scheduler and requires a " |
| 1656 |
"kernel that is configured with B<CONFIG_SCHED_AUTOGROUP>. On a running " |
| 1657 |
"system, this feature is enabled or disabled via the file I</proc/sys/kernel/" |
| 1658 |
"sched_autogroup_enabled>; a value of 0 disables the feature, while a value " |
| 1659 |
"of 1 enables it. The default value in this file is 1, unless the kernel was " |
| 1660 |
"booted with the I<noautogroup> parameter." |
| 1661 |
msgstr "" |
| 1662 |
"Данное свойств работает совместно с планировщиком CFS, и ядро должно быть " |
| 1663 |
"собрано с параметром B<CONFIG_SCHED_AUTOGROUP>. В работающей системе " |
| 1664 |
"свойство можно включать и выключать через файл I</proc/sys/kernel/" |
| 1665 |
"sched_autogroup_enabled>; значение 0 выключает свойство, а 1 — включает. " |
| 1666 |
"Значение по умолчанию равно 1, если ядро не загружалось с параметром " |
| 1667 |
"I<noautogroup>." |
| 1668 |
|
| 1669 |
#. type: Plain text |
| 1670 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1671 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1672 |
msgid "" |
| 1673 |
"A new autogroup is created when a new session is created via B<setsid>(2); " |
| 1674 |
"this happens, for example, when a new terminal window is started. A new " |
| 1675 |
"process created by B<fork>(2) inherits its parent's autogroup membership. " |
| 1676 |
"Thus, all of the processes in a session are members of the same autogroup. " |
| 1677 |
"An autogroup is automatically destroyed when the last process in the group " |
| 1678 |
"terminates." |
| 1679 |
msgstr "" |
| 1680 |
"Новая автогруппа создаётся при создании нового сеанса с помощью " |
| 1681 |
"B<setsid>(2); например, это происходит при запуске нового окна терминала. " |
| 1682 |
"Новый процесс, созданный B<fork>(2), наследует членство в автогруппе " |
| 1683 |
"родителя. Таким образом, все процессы в сеансе являются членами одной " |
| 1684 |
"автогруппы. Автогруппа автоматически уничтожается при завершении последнего " |
| 1685 |
"процесса в группе." |
| 1686 |
|
| 1687 |
#. type: Plain text |
| 1688 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1689 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1690 |
#, fuzzy |
| 1691 |
#| msgid "" |
| 1692 |
#| "When autogrouping is enabled, all of the members of an autogroup are " |
| 1693 |
#| "placed in the same kernel scheduler \"task group\". The CFS scheduler " |
| 1694 |
#| "employs an algorithm that equalizes the distribution of CPU cycles across " |
| 1695 |
#| "task groups. The benefits of this for interactive desktop performance " |
| 1696 |
#| "can be described via the following example." |
| 1697 |
msgid "" |
| 1698 |
"When autogrouping is enabled, all of the members of an autogroup are placed " |
| 1699 |
"in the same kernel scheduler \"task group\". When disabled, the group " |
| 1700 |
"creation happens as above, and autogroup membership is still visible in I</" |
| 1701 |
"proc>, but the autogroups are not used. The CFS scheduler employs an " |
| 1702 |
"algorithm that equalizes the distribution of CPU cycles across task groups. " |
| 1703 |
"The benefits of this for interactive desktop performance can be described " |
| 1704 |
"via the following example." |
| 1705 |
msgstr "" |
| 1706 |
"При включенной автогруппировке все члены автогруппы помещаются в в одну " |
| 1707 |
"«группу задач» планировщика ядра. Планировщик CFS использует алгоритм, " |
| 1708 |
"который уравнивает раздачу циклов ЦП между задачами группы. Преимущество " |
| 1709 |
"такого подхода заключается в улучшении интерактивности рабочего стола, " |
| 1710 |
"которую можно описать следующим примером." |
| 1711 |
|
| 1712 |
#. Mike Galbraith, 25 Nov 2016: |
| 1713 |
#. I'd say something more wishy-washy here, like cycles are |
| 1714 |
#. distributed fairly across groups and leave it at that, as your |
| 1715 |
#. detailed example is incorrect due to SMP fairness (which I don't |
| 1716 |
#. like much because [very unlikely] worst case scenario |
| 1717 |
#. renders a box sized group incapable of utilizing more that |
| 1718 |
#. a single CPU total). For example, if a group of NR_CPUS |
| 1719 |
#. size competes with a singleton, load balancing will try to give |
| 1720 |
#. the singleton a full CPU of its very own. If groups intersect for |
| 1721 |
#. whatever reason on say my quad lappy, distribution is 80/20 in |
| 1722 |
#. favor of the singleton. |
| 1723 |
#. type: Plain text |
| 1724 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1725 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1726 |
#, fuzzy |
| 1727 |
#| msgid "" |
| 1728 |
#| "Suppose that there are two autogroups competing for the same CPU (i.e., " |
| 1729 |
#| "presume either a single CPU system or the use of B<taskset>(1) to " |
| 1730 |
#| "confine all the processes to the same CPU on an SMP system). The first " |
| 1731 |
#| "group contains ten CPU-bound processes from a kernel build started with " |
| 1732 |
#| "I<make\\ -j10>. The other contains a single CPU-bound process: a video " |
| 1733 |
#| "player. The effect of autogrouping is that the two groups will each " |
| 1734 |
#| "receive half of the CPU cycles. That is, the video player will receive " |
| 1735 |
#| "50% of the CPU cycles, rather than just 9% of the cycles, which would " |
| 1736 |
#| "likely lead to degraded video playback. The situation on an SMP system " |
| 1737 |
#| "is more complex, but the general effect is the same: the scheduler " |
| 1738 |
#| "distributes CPU cycles across task groups such that an autogroup that " |
| 1739 |
#| "contains a large number of CPU-bound processes does not end up hogging " |
| 1740 |
#| "CPU cycles at the expense of the other jobs on the system." |
| 1741 |
msgid "" |
| 1742 |
"Suppose that there are two autogroups competing for the same CPU (i.e., " |
| 1743 |
"presume either a single CPU system or the use of B<taskset>(1) to confine " |
| 1744 |
"all the processes to the same CPU on an SMP system). The first group " |
| 1745 |
"contains ten CPU-bound processes from a kernel build started with I<make\\ " |
| 1746 |
"-j10>. The other contains a single CPU-bound process: a video player. The " |
| 1747 |
"effect of autogrouping is that the two groups will each receive half of the " |
| 1748 |
"CPU cycles. That is, the video player will receive 50% of the CPU cycles, " |
| 1749 |
"rather than just 9% of the cycles, which would likely lead to degraded video " |
| 1750 |
"playback. The situation on an SMP system is more complex, but the general " |
| 1751 |
"effect is the same: the scheduler distributes CPU cycles across task groups " |
| 1752 |
"such that an autogroup that contains a large number of CPU-bound processes " |
| 1753 |
"does not end up hogging CPU cycles at the expense of the other jobs on the " |
| 1754 |
"system." |
| 1755 |
msgstr "" |
| 1756 |
"Предположим, что есть две автогруппы, выполняющиеся на одном ЦП (т. е., " |
| 1757 |
"используется система с одним ЦП или с помощью B<taskset>(1) все процессы " |
| 1758 |
"вытеснены на один ЦП в многопроцессорной системе). Первая группа содержит 10 " |
| 1759 |
"привязанных к ЦП процессов, запущенных для сборки ядра I<make\\ -j10>. " |
| 1760 |
"Вторая группа содержит один привязанный к ЦП процесс: видеопроигрыватель. Из-" |
| 1761 |
"за автогруппировки в том, что каждая из групп получит половину циклов ЦП. То " |
| 1762 |
"есть, видеопроигрыватель получит 50% циклов ЦП, а не 9% циклов, что, " |
| 1763 |
"вероятно, привело бы к ухудшению воспроизведения. Ситуация в " |
| 1764 |
"многопроцессорных системах несколько сложнее, но результат тот же самый: " |
| 1765 |
"планировщик распределит циклы ЦП между группами задач и автогруппа с большим " |
| 1766 |
"количеством привязанных к ЦП процессов не истратит все циклы ЦП с ущербом " |
| 1767 |
"других задач, выполняемых системой." |
| 1768 |
|
| 1769 |
#. type: Plain text |
| 1770 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1771 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1772 |
#, fuzzy |
| 1773 |
#| msgid "" |
| 1774 |
#| "A process's autogroup (task group) membership can be viewed via the file " |
| 1775 |
#| "I</proc/[pid]/autogroup>:" |
| 1776 |
msgid "" |
| 1777 |
"A process's autogroup (task group) membership can be viewed via the file I</" |
| 1778 |
"proc/>pidI</autogroup>:" |
| 1779 |
msgstr "" |
| 1780 |
"Членство автогруппы процесса (группу задач) можно увидеть через файл I</proc/" |
| 1781 |
"[pid]/autogroup>:" |
| 1782 |
|
| 1783 |
#. type: Plain text |
| 1784 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1785 |
#: opensuse-tumbleweed |
| 1786 |
#, fuzzy, no-wrap |
| 1787 |
#| msgid "" |
| 1788 |
#| "$ B<cat /proc/1/autogroup>\n" |
| 1789 |
#| "/autogroup-1 nice 0\n" |
| 1790 |
msgid "" |
| 1791 |
"$B< cat /proc/1/autogroup>\n" |
| 1792 |
"/autogroup-1 nice 0\n" |
| 1793 |
msgstr "" |
| 1794 |
"$ B<cat /proc/1/autogroup>\n" |
| 1795 |
"/autogroup-1 nice 0\n" |
| 1796 |
|
| 1797 |
#. FIXME . |
| 1798 |
#. Because of a bug introduced in Linux 4.7 |
| 1799 |
#. (commit 2159197d66770ec01f75c93fb11dc66df81fd45b made changes |
| 1800 |
#. that exposed the fact that autogroup didn't call scale_load()), |
| 1801 |
#. it happened that *all* values in this range caused a task group |
| 1802 |
#. to be further disfavored by the scheduler, with \-20 resulting |
| 1803 |
#. in the scheduler mildly disfavoring the task group and +19 greatly |
| 1804 |
#. disfavoring it. |
| 1805 |
#. A patch was posted on 23 Nov 2016 |
| 1806 |
#. ("sched/autogroup: Fix 64bit kernel nice adjustment"; |
| 1807 |
#. check later to see in which kernel version it lands. |
| 1808 |
#. type: Plain text |
| 1809 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1810 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1811 |
msgid "" |
| 1812 |
"This file can also be used to modify the CPU bandwidth allocated to an " |
| 1813 |
"autogroup. This is done by writing a number in the \"nice\" range to the " |
| 1814 |
"file to set the autogroup's nice value. The allowed range is from +19 (low " |
| 1815 |
"priority) to -20 (high priority). (Writing values outside of this range " |
| 1816 |
"causes B<write>(2) to fail with the error B<EINVAL>.)" |
| 1817 |
msgstr "" |
| 1818 |
"Также этот файл можно использовать для изменения полосы пропускания ЦП, " |
| 1819 |
"выделенной автогруппе. Для этого в файл записывается диапазон " |
| 1820 |
"«уступчивости», задающий значение уступчивости автогруппы. Допускаемый " |
| 1821 |
"диапазон: от +19 (низкий приоритет) до -20 (высокий приоритет) (запись через " |
| 1822 |
"B<write>(2) значений вне это диапазона приводит к ошибке B<EINVAL>)." |
| 1823 |
|
| 1824 |
#. type: Plain text |
| 1825 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1826 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1827 |
msgid "" |
| 1828 |
"The autogroup nice setting has the same meaning as the process nice value, " |
| 1829 |
"but applies to distribution of CPU cycles to the autogroup as a whole, based " |
| 1830 |
"on the relative nice values of other autogroups. For a process inside an " |
| 1831 |
"autogroup, the CPU cycles that it receives will be a product of the " |
| 1832 |
"autogroup's nice value (compared to other autogroups) and the process's " |
| 1833 |
"nice value (compared to other processes in the same autogroup." |
| 1834 |
msgstr "" |
| 1835 |
"Значение уступчивости автогруппы означает тоже самое что и значение " |
| 1836 |
"уступчивости процесса, но распространяется на циклы ЦП автогруппы в целом, " |
| 1837 |
"основываясь на относительных значениях уступчивости других автогрупп. Для " |
| 1838 |
"процесса внутри автогруппы количество циклов ЦП, которые он получит, равно " |
| 1839 |
"произведению значения уступчивости автогруппы (по сравнению с другими " |
| 1840 |
"автогруппами) и значению уступчивости процесса (по сравнению с другими " |
| 1841 |
"процессам в той же автогруппе)." |
| 1842 |
|
| 1843 |
#. type: Plain text |
| 1844 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1845 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1846 |
msgid "" |
| 1847 |
"The use of the B<cgroups>(7) CPU controller to place processes in cgroups " |
| 1848 |
"other than the root CPU cgroup overrides the effect of autogrouping." |
| 1849 |
msgstr "" |
| 1850 |
"Использование контроллера ЦП B<cgroups>(7) для размещения процессов в cgroup " |
| 1851 |
"не равную корневой cgroup ЦП, отменяет эффект автогруппировки." |
| 1852 |
|
| 1853 |
#. type: Plain text |
| 1854 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1855 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1856 |
msgid "" |
| 1857 |
"The autogroup feature groups only processes scheduled under non-real-time " |
| 1858 |
"policies (B<SCHED_OTHER>, B<SCHED_BATCH>, and B<SCHED_IDLE>). It does not " |
| 1859 |
"group processes scheduled under real-time and deadline policies. Those " |
| 1860 |
"processes are scheduled according to the rules described earlier." |
| 1861 |
msgstr "" |
| 1862 |
"Свойство автогруппировки группирует только процессы, планируемые алгоритмами " |
| 1863 |
"не реального времени (B<SCHED_OTHER>, B<SCHED_BATCH> и B<SCHED_IDLE>). Оно " |
| 1864 |
"не группирует процессы, планируемые алгоритмами реального времени и с " |
| 1865 |
"предельным сроком (deadline). Такие процессы планируются согласно правилам, " |
| 1866 |
"описанным ранее." |
| 1867 |
|
| 1868 |
#. type: SS |
| 1869 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1870 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1871 |
#, no-wrap |
| 1872 |
msgid "The nice value and group scheduling" |
| 1873 |
msgstr "Значение уступчивости и групповое планирование" |
| 1874 |
|
| 1875 |
#. type: Plain text |
| 1876 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1877 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1878 |
msgid "" |
| 1879 |
"When scheduling non-real-time processes (i.e., those scheduled under the " |
| 1880 |
"B<SCHED_OTHER>, B<SCHED_BATCH>, and B<SCHED_IDLE> policies), the CFS " |
| 1881 |
"scheduler employs a technique known as \"group scheduling\", if the kernel " |
| 1882 |
"was configured with the B<CONFIG_FAIR_GROUP_SCHED> option (which is typical)." |
| 1883 |
msgstr "" |
| 1884 |
"При планировании процессов не реального времени (т. е., планируемых по " |
| 1885 |
"алгоритмам B<SCHED_OTHER>, B<SCHED_BATCH> и B<SCHED_IDLE>), планировщик CFS " |
| 1886 |
"использует технику называемую «групповое планирование», если ядро было " |
| 1887 |
"собрано с параметром B<CONFIG_FAIR_GROUP_SCHED> (обычно так и есть)." |
| 1888 |
|
| 1889 |
#. type: Plain text |
| 1890 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1891 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1892 |
msgid "" |
| 1893 |
"Under group scheduling, threads are scheduled in \"task groups\". Task " |
| 1894 |
"groups have a hierarchical relationship, rooted under the initial task group " |
| 1895 |
"on the system, known as the \"root task group\". Task groups are formed in " |
| 1896 |
"the following circumstances:" |
| 1897 |
msgstr "" |
| 1898 |
"При групповом планировании нити планируются по «группам задач». Группы задач " |
| 1899 |
"имеют иерархические связи, берущие начало от начальной группы задач системы, " |
| 1900 |
"называемой «корневая группа задач». Группы задач формируются согласно " |
| 1901 |
"следующему:" |
| 1902 |
|
| 1903 |
#. type: Plain text |
| 1904 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1905 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1906 |
msgid "" |
| 1907 |
"All of the threads in a CPU cgroup form a task group. The parent of this " |
| 1908 |
"task group is the task group of the corresponding parent cgroup." |
| 1909 |
msgstr "" |
| 1910 |
"Все нити в cgroup ЦП образуют группу задач. Родитель этой группы задач " |
| 1911 |
"является группой задач соответствующей родительской cgroup." |
| 1912 |
|
| 1913 |
#. type: Plain text |
| 1914 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1915 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1916 |
msgid "" |
| 1917 |
"If autogrouping is enabled, then all of the threads that are (implicitly) " |
| 1918 |
"placed in an autogroup (i.e., the same session, as created by B<setsid>(2)) " |
| 1919 |
"form a task group. Each new autogroup is thus a separate task group. The " |
| 1920 |
"root task group is the parent of all such autogroups." |
| 1921 |
msgstr "" |
| 1922 |
"Если автогруппировка разрешена, то все нити, помещённые (неявно) в " |
| 1923 |
"автогруппу (т. е., одного сеанса, созданного B<setsid>(2)), образуют группу " |
| 1924 |
"задач. Таким образом, каждая новая автогруппа является отдельной группой " |
| 1925 |
"задач. Корневая группа задач является родителем всех этих автогрупп." |
| 1926 |
|
| 1927 |
#. type: Plain text |
| 1928 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1929 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1930 |
msgid "" |
| 1931 |
"If autogrouping is enabled, then the root task group consists of all " |
| 1932 |
"processes in the root CPU cgroup that were not otherwise implicitly placed " |
| 1933 |
"into a new autogroup." |
| 1934 |
msgstr "" |
| 1935 |
"Если автогруппировка разрешена, то корневая группа задач состоит из всех " |
| 1936 |
"процессов в корневой cgroup ЦП, которые не были неявно помещены в новую " |
| 1937 |
"автогруппу." |
| 1938 |
|
| 1939 |
#. type: Plain text |
| 1940 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1941 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1942 |
msgid "" |
| 1943 |
"If autogrouping is disabled, then the root task group consists of all " |
| 1944 |
"processes in the root CPU cgroup." |
| 1945 |
msgstr "" |
| 1946 |
"Если автогруппировка запрещена, то корневая группа задач состоит из всех " |
| 1947 |
"процессов в корневой cgroup ЦП." |
| 1948 |
|
| 1949 |
#. type: Plain text |
| 1950 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1951 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1952 |
msgid "" |
| 1953 |
"If group scheduling was disabled (i.e., the kernel was configured without " |
| 1954 |
"B<CONFIG_FAIR_GROUP_SCHED>), then all of the processes on the system are " |
| 1955 |
"notionally placed in a single task group." |
| 1956 |
msgstr "" |
| 1957 |
"Если групповое планирование было запрещено (т. е., ядро собрано без " |
| 1958 |
"параметра B<CONFIG_FAIR_GROUP_SCHED>), то все процессы системы условно " |
| 1959 |
"помещаются в одну группу задач." |
| 1960 |
|
| 1961 |
#. type: Plain text |
| 1962 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1963 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1964 |
msgid "" |
| 1965 |
"Under group scheduling, a thread's nice value has an effect for scheduling " |
| 1966 |
"decisions I<only relative to other threads in the same task group>. This " |
| 1967 |
"has some surprising consequences in terms of the traditional semantics of " |
| 1968 |
"the nice value on UNIX systems. In particular, if autogrouping is enabled " |
| 1969 |
"(which is the default in various distributions), then employing " |
| 1970 |
"B<setpriority>(2) or B<nice>(1) on a process has an effect only for " |
| 1971 |
"scheduling relative to other processes executed in the same session " |
| 1972 |
"(typically: the same terminal window)." |
| 1973 |
msgstr "" |
| 1974 |
"При групповом планировании значение уступчивости нити влияет на решение о " |
| 1975 |
"планировании I<только относительно других нитей в той же группе задач>. Это " |
| 1976 |
"слегка удивляет с точки зрения обычной семантики значения уступчивости в " |
| 1977 |
"системах UNIX. В частности, если автогруппировка разрешена (по умолчанию во " |
| 1978 |
"многих дистрибутивах), то применение к процессу B<setpriority>(2) или " |
| 1979 |
"B<nice>(1) подействует только на планирование относительно других процессов, " |
| 1980 |
"выполняющихся в том же сеансе (обычно, в том же окне терминала)." |
| 1981 |
|
| 1982 |
#. More succinctly: the nice(1) command is in many cases a no-op since |
| 1983 |
#. Linux 2.6.38. |
| 1984 |
#. type: Plain text |
| 1985 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1986 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1987 |
msgid "" |
| 1988 |
"Conversely, for two processes that are (for example) the sole CPU-bound " |
| 1989 |
"processes in different sessions (e.g., different terminal windows, each of " |
| 1990 |
"whose jobs are tied to different autogroups), I<modifying the nice value of " |
| 1991 |
"the process in one of the sessions> I<has no effect> in terms of the " |
| 1992 |
"scheduler's decisions relative to the process in the other session. A " |
| 1993 |
"possibly useful workaround here is to use a command such as the following to " |
| 1994 |
"modify the autogroup nice value for I<all> of the processes in a terminal " |
| 1995 |
"session:" |
| 1996 |
msgstr "" |
| 1997 |
"И наоборот, для двух процессов, которые (например) являются единственными " |
| 1998 |
"привязанными к ЦП процессами в в разных сеансах (например, различные окна " |
| 1999 |
"терминалов, в каждом задачи составляют разные автогруппы), I<изменение " |
| 2000 |
"значения уступчивости процесса в одном из сеансов> I<не повлияет> на " |
| 2001 |
"принятие решения планировщиком относительно процесса в другом сеансе. " |
| 2002 |
"Возможно, здесь полезным обходным решением будет использовать команду, " |
| 2003 |
"изменяющую значение уступчивости автогруппы I<всех> процессов в сеансе " |
| 2004 |
"терминала:" |
| 2005 |
|
| 2006 |
#. type: Plain text |
| 2007 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 2008 |
#: opensuse-tumbleweed |
| 2009 |
#, fuzzy, no-wrap |
| 2010 |
#| msgid "$ B<echo 10 E<gt> /proc/self/autogroup>\n" |
| 2011 |
msgid "$B< echo 10 E<gt> /proc/self/autogroup>\n" |
| 2012 |
msgstr "$ B<echo 10 E<gt> /proc/self/autogroup>\n" |
| 2013 |
|
| 2014 |
#. type: SS |
| 2015 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2016 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2017 |
#, no-wrap |
| 2018 |
msgid "Real-time features in the mainline Linux kernel" |
| 2019 |
msgstr "Возможности выполнения в реальном времени из оригинальной версии Linux" |
| 2020 |
|
| 2021 |
#. The archaeologist knows about v2.6.9-mm1-V0.1-realtime-preempt |
| 2022 |
#. type: Plain text |
| 2023 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 2024 |
#: opensuse-tumbleweed |
| 2025 |
#, fuzzy |
| 2026 |
#| msgid "" |
| 2027 |
#| "Since kernel version 2.6.18, Linux is gradually becoming equipped with " |
| 2028 |
#| "real-time capabilities, most of which are derived from the former " |
| 2029 |
#| "I<realtime-preempt> patch set. Until the patches have been completely " |
| 2030 |
#| "merged into the mainline kernel, they must be installed to achieve the " |
| 2031 |
#| "best real-time performance. These patches are named:" |
| 2032 |
msgid "" |
| 2033 |
"Since Linux 2.6.18, Linux is gradually becoming equipped with real-time " |
| 2034 |
"capabilities, most of which are derived from the former I<realtime-preempt> " |
| 2035 |
"patch set. These patches are named:" |
| 2036 |
msgstr "" |
| 2037 |
"Начиная с версии ядра 2.6.18, Linux постепенно обрастает возможностями " |
| 2038 |
"выполнения в реальном времени, большая часть которых взята из раннего набора " |
| 2039 |
"заплат I<realtime-preempt>. Пока заплатки не были полностью включены в " |
| 2040 |
"основное ядро, их нужно было устанавливать отдельно. Файлы заплаток " |
| 2041 |
"называются:" |
| 2042 |
|
| 2043 |
#. type: Plain text |
| 2044 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2045 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2046 |
#, no-wrap |
| 2047 |
msgid "patch-I<kernelversion>-rtI<patchversion>\n" |
| 2048 |
msgstr "patch-I<версия_ядра>-rtI<версия_заплатки>\n" |
| 2049 |
|
| 2050 |
#. type: Plain text |
| 2051 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 2052 |
#: opensuse-tumbleweed |
| 2053 |
msgid "" |
| 2054 |
"and can be downloaded from E<.UR http:\\://www.kernel.org\\:/pub\\:/linux\\:/" |
| 2055 |
"kernel\\:/projects\\:/rt/> E<.UE> or cloned from a git tree E<.UR https:\\://" |
| 2056 |
"git.kernel.org\\:/pub\\:/scm\\:/linux\\:/kernel\\:/git\\:/rt\\:/linux-stable-" |
| 2057 |
"rt.git> E<.UE .> The individual releases are maintained as long as the " |
| 2058 |
"matching LTS kernel is maintained." |
| 2059 |
msgstr "" |
| 2060 |
|
| 2061 |
#. type: Plain text |
| 2062 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 2063 |
#: opensuse-tumbleweed |
| 2064 |
msgid "" |
| 2065 |
"Since Linux 6.12 it possible to enable the real-time preemption without the " |
| 2066 |
"need for any patches. The I<realtime-patch> continues to exist and contains " |
| 2067 |
"support for not-yet-integrated architectures, drivers, and features that are " |
| 2068 |
"in development." |
| 2069 |
msgstr "" |
| 2070 |
|
| 2071 |
#. type: Plain text |
| 2072 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 2073 |
#: opensuse-tumbleweed |
| 2074 |
msgid "" |
| 2075 |
"Since Linux 6.13 real-time became an option and not a preemption model. " |
| 2076 |
"With this change, the following preemption models are available: " |
| 2077 |
"B<CONFIG_PREEMPT_NONE>, B<CONFIG_PREEMPT_VOLUNTARY>, B<CONFIG_PREEMPT>, and " |
| 2078 |
"B<CONFIG_PREEMPT_LAZY>. The real-time capabilities can be enabled with the " |
| 2079 |
"option B<CONFIG_PREEMPT_RT> and the preemption model can be set to either " |
| 2080 |
"B<CONFIG_PREEMPT> or B<CONFIG_PREEMPT_LAZY>. The latter model is less eager " |
| 2081 |
"to preempt B<SCHED_NORMAL> tasks in an attempt to reduce lock-holder " |
| 2082 |
"preemption. It does not affect real-time tasks." |
| 2083 |
msgstr "" |
| 2084 |
|
| 2085 |
#. type: Plain text |
| 2086 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 2087 |
#: opensuse-tumbleweed |
| 2088 |
#, fuzzy |
| 2089 |
#| msgid "" |
| 2090 |
#| "With the patches applied or after their full inclusion into the mainline " |
| 2091 |
#| "kernel, the additional configuration item B<CONFIG_PREEMPT_RT> becomes " |
| 2092 |
#| "available. If this is selected, Linux is transformed into a regular real-" |
| 2093 |
#| "time operating system. The FIFO and RR scheduling policies are then used " |
| 2094 |
#| "to run a thread with true real-time priority and a minimum worst-case " |
| 2095 |
#| "scheduling latency." |
| 2096 |
msgid "" |
| 2097 |
"With B<CONFIG_PREEMPT_RT> enabled, Linux is transformed into a regular real-" |
| 2098 |
"time operating system. The B<SCHED_FIFO>, B<SCHED_RR>, and " |
| 2099 |
"B<SCHED_DEADLINE> scheduling policies are then used to run a thread with " |
| 2100 |
"true real-time priority and a minimum worst-case scheduling latency." |
| 2101 |
msgstr "" |
| 2102 |
"С заплатками и после их полного включения в оригинальное ядро, в параметрах " |
| 2103 |
"ядра появится новый пункт B<CONFIG_PREEMPT_RT>. Если он будет выбран, то " |
| 2104 |
"Linux преобразуется в обычную операционную систему реального времени. После " |
| 2105 |
"этого для выполнения нити с настоящим приоритетом реального времени и " |
| 2106 |
"минимальной задержкой планирования в наихудшем случае используются алгоритмы " |
| 2107 |
"планирования FIFO и RR." |
| 2108 |
|
| 2109 |
#. type: SH |
| 2110 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2111 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2112 |
#, no-wrap |
| 2113 |
msgid "NOTES" |
| 2114 |
msgstr "ПРИМЕЧАНИЯ" |
| 2115 |
|
| 2116 |
#. type: Plain text |
| 2117 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2118 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2119 |
msgid "" |
| 2120 |
"The B<cgroups>(7) CPU controller can be used to limit the CPU consumption " |
| 2121 |
"of groups of processes." |
| 2122 |
msgstr "" |
| 2123 |
"Для ограничения групп процессов потребления ЦП можно использовать контроллер " |
| 2124 |
"ЦП B<cgroups>(7)." |
| 2125 |
|
| 2126 |
#. type: Plain text |
| 2127 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2128 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2129 |
#, fuzzy |
| 2130 |
#| msgid "" |
| 2131 |
#| "Originally, Standard Linux was intended as a general-purpose operating " |
| 2132 |
#| "system being able to handle background processes, interactive " |
| 2133 |
#| "applications, and less demanding real-time applications (applications " |
| 2134 |
#| "that need to usually meet timing deadlines). Although the Linux kernel " |
| 2135 |
#| "2.6 allowed for kernel preemption and the newly introduced O(1) scheduler " |
| 2136 |
#| "ensures that the time needed to schedule is fixed and deterministic " |
| 2137 |
#| "irrespective of the number of active tasks, true real-time computing was " |
| 2138 |
#| "not possible up to kernel version 2.6.17." |
| 2139 |
msgid "" |
| 2140 |
"Originally, Standard Linux was intended as a general-purpose operating " |
| 2141 |
"system being able to handle background processes, interactive applications, " |
| 2142 |
"and less demanding real-time applications (applications that need to usually " |
| 2143 |
"meet timing deadlines). Although the Linux 2.6 allowed for kernel " |
| 2144 |
"preemption and the newly introduced O(1) scheduler ensures that the time " |
| 2145 |
"needed to schedule is fixed and deterministic irrespective of the number of " |
| 2146 |
"active tasks, true real-time computing was not possible up to Linux 2.6.17." |
| 2147 |
msgstr "" |
| 2148 |
"Изначально стандартный Linux представлял собой операционную систему общего " |
| 2149 |
"назначения для выполнения как фоновых процессов, так и интерактивных " |
| 2150 |
"приложений, а также нетребовательных приложений реального времени " |
| 2151 |
"(приложений, которым желательно, чтобы задержки и интервалы времени " |
| 2152 |
"выдерживались). Хотя ядро Linux 2.6 позволяет вытеснение и новый планировщик " |
| 2153 |
"O(1) обеспечивает необходимое постоянство планирования и предсказуемое " |
| 2154 |
"независимое количество активных задач, настоящая работа в реальном времени " |
| 2155 |
"стала доступна начиная с версии ядра 2.6.17." |
| 2156 |
|
| 2157 |
#. type: SH |
| 2158 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2159 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2160 |
#, no-wrap |
| 2161 |
msgid "SEE ALSO" |
| 2162 |
msgstr "СМОТРИТЕ ТАКЖЕ" |
| 2163 |
|
| 2164 |
#. type: Plain text |
| 2165 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2166 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2167 |
msgid "" |
| 2168 |
"B<chcpu>(1), B<chrt>(1), B<lscpu>(1), B<ps>(1), B<taskset>(1), B<top>(1), " |
| 2169 |
"B<getpriority>(2), B<mlock>(2), B<mlockall>(2), B<munlock>(2), " |
| 2170 |
"B<munlockall>(2), B<nice>(2), B<sched_get_priority_max>(2), " |
| 2171 |
"B<sched_get_priority_min>(2), B<sched_getaffinity>(2), B<sched_getparam>(2), " |
| 2172 |
"B<sched_getscheduler>(2), B<sched_rr_get_interval>(2), " |
| 2173 |
"B<sched_setaffinity>(2), B<sched_setparam>(2), B<sched_setscheduler>(2), " |
| 2174 |
"B<sched_yield>(2), B<setpriority>(2), B<pthread_getaffinity_np>(3), " |
| 2175 |
"B<pthread_getschedparam>(3), B<pthread_setaffinity_np>(3), " |
| 2176 |
"B<sched_getcpu>(3), B<capabilities>(7), B<cpuset>(7)" |
| 2177 |
msgstr "" |
| 2178 |
"B<chcpu>(1), B<chrt>(1), B<lscpu>(1), B<ps>(1), B<taskset>(1), B<top>(1), " |
| 2179 |
"B<getpriority>(2), B<mlock>(2), B<mlockall>(2), B<munlock>(2), " |
| 2180 |
"B<munlockall>(2), B<nice>(2), B<sched_get_priority_max>(2), " |
| 2181 |
"B<sched_get_priority_min>(2), B<sched_getaffinity>(2), B<sched_getparam>(2), " |
| 2182 |
"B<sched_getscheduler>(2), B<sched_rr_get_interval>(2), " |
| 2183 |
"B<sched_setaffinity>(2), B<sched_setparam>(2), B<sched_setscheduler>(2), " |
| 2184 |
"B<sched_yield>(2), B<setpriority>(2), B<pthread_getaffinity_np>(3), " |
| 2185 |
"B<pthread_getschedparam>(3), B<pthread_setaffinity_np>(3), " |
| 2186 |
"B<sched_getcpu>(3), B<capabilities>(7), B<cpuset>(7)" |
| 2187 |
|
| 2188 |
#. type: Plain text |
| 2189 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2190 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2191 |
msgid "" |
| 2192 |
"I<Programming for the real world - POSIX.4> by Bill O.\\& Gallmeister, " |
| 2193 |
"O'Reilly & Associates, Inc., ISBN 1-56592-074-0." |
| 2194 |
msgstr "" |
| 2195 |
"I<Programming for the real world - POSIX.4> by Bill O.\\& Gallmeister, " |
| 2196 |
"O'Reilly & Associates, Inc., ISBN 1-56592-074-0." |
| 2197 |
|
| 2198 |
#. type: Plain text |
| 2199 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 2200 |
#: opensuse-tumbleweed |
| 2201 |
msgid "" |
| 2202 |
"E<.UR https:\\://docs.kernel.org/\\:scheduler> The Linux kernel " |
| 2203 |
"documentation for the scheduler E<.UE .>" |
| 2204 |
msgstr "" |
| 2205 |
|
| 2206 |
#. type: Plain text |
| 2207 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 2208 |
#: opensuse-tumbleweed |
| 2209 |
msgid "" |
| 2210 |
"Worth looking at: E<.UR https:\\://wiki.linuxfoundation.org/\\:realtime/" |
| 2211 |
"\\:start> E<.UE>" |
| 2212 |
msgstr "" |
| 2213 |
|
| 2214 |
#. type: TH |
| 2215 |
#: debian-trixie |
| 2216 |
#, no-wrap |
| 2217 |
msgid "2024-05-02" |
| 2218 |
msgstr "2 мая 2024 г." |
| 2219 |
|
| 2220 |
#. type: TH |
| 2221 |
#: debian-trixie |
| 2222 |
#, no-wrap |
| 2223 |
msgid "Linux man-pages 6.9.1" |
| 2224 |
msgstr "Страницы руководства Linux 6.9.1" |
| 2225 |
|
| 2226 |
#. type: Plain text |
| 2227 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2228 |
msgid "" |
| 2229 |
"Processes scheduled under one of the real-time policies (B<SCHED_FIFO>, " |
| 2230 |
"B<SCHED_RR>) have a I<sched_priority> value in the range 1 (low) to 99 " |
| 2231 |
"(high). (As the numbers imply, real-time threads always have higher " |
| 2232 |
"priority than normal threads.) Note well: POSIX.1 requires an " |
| 2233 |
"implementation to support only a minimum 32 distinct priority levels for the " |
| 2234 |
"real-time policies, and some systems supply just this minimum. Portable " |
| 2235 |
"programs should use B<sched_get_priority_min>(2) and " |
| 2236 |
"B<sched_get_priority_max>(2) to find the range of priorities supported for " |
| 2237 |
"a particular policy." |
| 2238 |
msgstr "" |
| 2239 |
"Для процессов, которые планируются одним из алгоритмов реального времени " |
| 2240 |
"(B<SCHED_FIFO>, B<SCHED_RR>), значение приоритета I<sched_priority> лежит в " |
| 2241 |
"диапазоне от 1 (низкий) до 99 (высокий) Как и числовые значения, нити " |
| 2242 |
"реального времени всегда имеют более высокий приоритет чем обычные нити. Но " |
| 2243 |
"заметим: согласно POSIX.1 от реализации для алгоритмов реального времени " |
| 2244 |
"требуется поддержка только 32 различных уровней приоритета, и в некоторых " |
| 2245 |
"системах обеспечивается только этот минимум. В переносимых программах нужно " |
| 2246 |
"использовать вызовы B<sched_get_priority_min>(2) и " |
| 2247 |
"B<sched_get_priority_max>(2) для для определения диапазона приоритетов, " |
| 2248 |
"поддерживаемых определённым алгоритмом." |
| 2249 |
|
| 2250 |
#. type: Plain text |
| 2251 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2252 |
#, fuzzy |
| 2253 |
#| msgid "" |
| 2254 |
#| "B<SCHED_FIFO> can be used only with static priorities higher than 0, " |
| 2255 |
#| "which means that when a B<SCHED_FIFO> threads becomes runnable, it will " |
| 2256 |
#| "always immediately preempt any currently running B<SCHED_OTHER>, " |
| 2257 |
#| "B<SCHED_BATCH>, or B<SCHED_IDLE> thread. B<SCHED_FIFO> is a simple " |
| 2258 |
#| "scheduling algorithm without time slicing. For threads scheduled under " |
| 2259 |
#| "the B<SCHED_FIFO> policy, the following rules apply:" |
| 2260 |
msgid "" |
| 2261 |
"B<SCHED_FIFO> can be used only with static priorities higher than 0, which " |
| 2262 |
"means that when a B<SCHED_FIFO> thread becomes runnable, it will always " |
| 2263 |
"immediately preempt any currently running B<SCHED_OTHER>, B<SCHED_BATCH>, or " |
| 2264 |
"B<SCHED_IDLE> thread. B<SCHED_FIFO> is a simple scheduling algorithm " |
| 2265 |
"without time slicing. For threads scheduled under the B<SCHED_FIFO> policy, " |
| 2266 |
"the following rules apply:" |
| 2267 |
msgstr "" |
| 2268 |
"Алгоритм B<SCHED_FIFO> можно использовать только со значениями статического " |
| 2269 |
"приоритета большими нуля. Это означает, что если нить с B<SCHED_FIFO> готова " |
| 2270 |
"к работе, то она сразу запустится, а все обычные нити с B<SCHED_OTHER>, " |
| 2271 |
"B<SCHED_BATCH> или B<SCHED_IDLE> будут приостановлены. B<SCHED_FIFO> — это " |
| 2272 |
"простой алгоритм планирования без квантования времени. Нити, работающие " |
| 2273 |
"согласно алгоритму B<SCHED_FIFO>, подчиняются следующим правилам:" |
| 2274 |
|
| 2275 |
#. type: Plain text |
| 2276 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2277 |
#, no-wrap |
| 2278 |
msgid "" |
| 2279 |
"arrival/wakeup absolute deadline\n" |
| 2280 |
" | start time |\n" |
| 2281 |
" | | |\n" |
| 2282 |
" v v v\n" |
| 2283 |
"-----x--------xooooooooooooooooo--------x--------x---\n" |
| 2284 |
" |E<lt>- comp. time -E<gt>|\n" |
| 2285 |
" |E<lt>------- relative deadline ------E<gt>|\n" |
| 2286 |
" |E<lt>-------------- period -------------------E<gt>|\n" |
| 2287 |
msgstr "" |
| 2288 |
"принятие/пробуждение абсолютный предельный срок\n" |
| 2289 |
" | время начала |\n" |
| 2290 |
" | | |\n" |
| 2291 |
" v v v\n" |
| 2292 |
"-----x--------xooooooooooooooooo--------x--------x---\n" |
| 2293 |
" |E<lt>- comp. time -E<gt>|\n" |
| 2294 |
" |E<lt>------- относительный предельный срок ------E<gt>|\n" |
| 2295 |
" |E<lt>-------------- промежуток времени -------------------E<gt>|\n" |
| 2296 |
|
| 2297 |
#. commit 5091faa449ee0b7d73bc296a93bca9540fc51d0a |
| 2298 |
#. type: Plain text |
| 2299 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2300 |
msgid "" |
| 2301 |
"Since Linux 2.6.38, the kernel provides a feature known as autogrouping to " |
| 2302 |
"improve interactive desktop performance in the face of multiprocess, CPU-" |
| 2303 |
"intensive workloads such as building the Linux kernel with large numbers of " |
| 2304 |
"parallel build processes (i.e., the B<make>(1) B<-j> flag)." |
| 2305 |
msgstr "" |
| 2306 |
"Начиная с Linux 2.6.38 в ядре появилось свойство, называемое " |
| 2307 |
"автогруппировкой; оно улучшает интерактивность рабочего окружения несмотря " |
| 2308 |
"на многопроцессную интенсивную нагрузку ЦП, такую как сборка ядра Linux " |
| 2309 |
"большим количеством параллельно собирающих процессов (т. е., командой " |
| 2310 |
"B<make>(1) с флагом B<-j>)." |
| 2311 |
|
| 2312 |
#. type: Plain text |
| 2313 |
#: debian-trixie |
| 2314 |
msgid "" |
| 2315 |
"When autogrouping is enabled, all of the members of an autogroup are placed " |
| 2316 |
"in the same kernel scheduler \"task group\". The CFS scheduler employs an " |
| 2317 |
"algorithm that equalizes the distribution of CPU cycles across task groups. " |
| 2318 |
"The benefits of this for interactive desktop performance can be described " |
| 2319 |
"via the following example." |
| 2320 |
msgstr "" |
| 2321 |
"При включенной автогруппировке все члены автогруппы помещаются в в одну " |
| 2322 |
"«группу задач» планировщика ядра. Планировщик CFS использует алгоритм, " |
| 2323 |
"который уравнивает раздачу циклов ЦП между задачами группы. Преимущество " |
| 2324 |
"такого подхода заключается в улучшении интерактивности рабочего стола, " |
| 2325 |
"которую можно описать следующим примером." |
| 2326 |
|
| 2327 |
#. type: Plain text |
| 2328 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2329 |
#, no-wrap |
| 2330 |
msgid "" |
| 2331 |
"$ B<cat /proc/1/autogroup>\n" |
| 2332 |
"/autogroup-1 nice 0\n" |
| 2333 |
msgstr "" |
| 2334 |
"$ B<cat /proc/1/autogroup>\n" |
| 2335 |
"/autogroup-1 nice 0\n" |
| 2336 |
|
| 2337 |
#. type: Plain text |
| 2338 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2339 |
#, no-wrap |
| 2340 |
msgid "$ B<echo 10 E<gt> /proc/self/autogroup>\n" |
| 2341 |
msgstr "$ B<echo 10 E<gt> /proc/self/autogroup>\n" |
| 2342 |
|
| 2343 |
#. FIXME . Probably this text will need some minor tweaking |
| 2344 |
#. ask Carsten Emde about this. |
| 2345 |
#. type: Plain text |
| 2346 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2347 |
#, fuzzy |
| 2348 |
#| msgid "" |
| 2349 |
#| "Since kernel version 2.6.18, Linux is gradually becoming equipped with " |
| 2350 |
#| "real-time capabilities, most of which are derived from the former " |
| 2351 |
#| "I<realtime-preempt> patch set. Until the patches have been completely " |
| 2352 |
#| "merged into the mainline kernel, they must be installed to achieve the " |
| 2353 |
#| "best real-time performance. These patches are named:" |
| 2354 |
msgid "" |
| 2355 |
"Since Linux 2.6.18, Linux is gradually becoming equipped with real-time " |
| 2356 |
"capabilities, most of which are derived from the former I<realtime-preempt> " |
| 2357 |
"patch set. Until the patches have been completely merged into the mainline " |
| 2358 |
"kernel, they must be installed to achieve the best real-time performance. " |
| 2359 |
"These patches are named:" |
| 2360 |
msgstr "" |
| 2361 |
"Начиная с версии ядра 2.6.18, Linux постепенно обрастает возможностями " |
| 2362 |
"выполнения в реальном времени, большая часть которых взята из раннего набора " |
| 2363 |
"заплат I<realtime-preempt>. Пока заплатки не были полностью включены в " |
| 2364 |
"основное ядро, их нужно было устанавливать отдельно. Файлы заплаток " |
| 2365 |
"называются:" |
| 2366 |
|
| 2367 |
#. type: Plain text |
| 2368 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2369 |
msgid "" |
| 2370 |
"and can be downloaded from E<.UR http://www.kernel.org\\:/pub\\:/linux\\:/" |
| 2371 |
"kernel\\:/projects\\:/rt/> E<.UE .>" |
| 2372 |
msgstr "" |
| 2373 |
"и могут быть скачаны с E<.UR http://www.kernel.org\\:/pub\\:/linux\\:/" |
| 2374 |
"kernel\\:/projects\\:/rt/> E<.UE .>" |
| 2375 |
|
| 2376 |
#. type: Plain text |
| 2377 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2378 |
msgid "" |
| 2379 |
"Without the patches and prior to their full inclusion into the mainline " |
| 2380 |
"kernel, the kernel configuration offers only the three preemption classes " |
| 2381 |
"B<CONFIG_PREEMPT_NONE>, B<CONFIG_PREEMPT_VOLUNTARY>, and " |
| 2382 |
"B<CONFIG_PREEMPT_DESKTOP> which respectively provide no, some, and " |
| 2383 |
"considerable reduction of the worst-case scheduling latency." |
| 2384 |
msgstr "" |
| 2385 |
"Без заплаток и до их полного включения в оригинальное ядро, через параметры " |
| 2386 |
"ядра предлагается только три класса вытеснения: B<CONFIG_PREEMPT_NONE>, " |
| 2387 |
"B<CONFIG_PREEMPT_VOLUNTARY> и B<CONFIG_PREEMPT_DESKTOP>, которые, " |
| 2388 |
"соответственно, не сокращают, частично сокращают и значительно сокращают " |
| 2389 |
"задержку планирования при наихудшем случае." |
| 2390 |
|
| 2391 |
#. type: Plain text |
| 2392 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2393 |
msgid "" |
| 2394 |
"With the patches applied or after their full inclusion into the mainline " |
| 2395 |
"kernel, the additional configuration item B<CONFIG_PREEMPT_RT> becomes " |
| 2396 |
"available. If this is selected, Linux is transformed into a regular real-" |
| 2397 |
"time operating system. The FIFO and RR scheduling policies are then used to " |
| 2398 |
"run a thread with true real-time priority and a minimum worst-case " |
| 2399 |
"scheduling latency." |
| 2400 |
msgstr "" |
| 2401 |
"С заплатками и после их полного включения в оригинальное ядро, в параметрах " |
| 2402 |
"ядра появится новый пункт B<CONFIG_PREEMPT_RT>. Если он будет выбран, то " |
| 2403 |
"Linux преобразуется в обычную операционную систему реального времени. После " |
| 2404 |
"этого для выполнения нити с настоящим приоритетом реального времени и " |
| 2405 |
"минимальной задержкой планирования в наихудшем случае используются алгоритмы " |
| 2406 |
"планирования FIFO и RR." |
| 2407 |
|
| 2408 |
#. type: Plain text |
| 2409 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2410 |
#, fuzzy |
| 2411 |
#| msgid "" |
| 2412 |
#| "The Linux kernel source files I<Documentation/scheduler/sched-" |
| 2413 |
#| "deadline.txt>, I<Documentation/scheduler/sched-rt-group.txt>, " |
| 2414 |
#| "I<Documentation/scheduler/sched-design-CFS.txt>, and I<Documentation/" |
| 2415 |
#| "scheduler/sched-nice-design.txt>" |
| 2416 |
msgid "" |
| 2417 |
"The Linux kernel source files I<\\%Documentation/\\:scheduler/\\:sched-" |
| 2418 |
"deadline\\:.txt>, I<\\%Documentation/\\:scheduler/\\:sched-rt-group\\:.txt>, " |
| 2419 |
"I<\\%Documentation/\\:scheduler/\\:sched-design-CFS\\:.txt>, and I<\\" |
| 2420 |
"%Documentation/\\:scheduler/\\:sched-nice-design\\:.txt>" |
| 2421 |
msgstr "" |
| 2422 |
"Исходные файлы ядра Linux I<Documentation/scheduler/sched-deadline.txt>, " |
| 2423 |
"I<Documentation/scheduler/sched-rt-group.txt>, I<Documentation/scheduler/" |
| 2424 |
"sched-design-CFS.txt> и I<Documentation/scheduler/sched-nice-design.txt>" |
| 2425 |
|
| 2426 |
#. type: TH |
| 2427 |
#: fedora-44 fedora-rawhide |
| 2428 |
#, no-wrap |
| 2429 |
msgid "2025-02-02" |
| 2430 |
msgstr "2 февраля 2025 г." |
| 2431 |
|
| 2432 |
#. type: TH |
| 2433 |
#: fedora-44 fedora-rawhide |
| 2434 |
#, no-wrap |
| 2435 |
msgid "Linux man-pages 6.13" |
| 2436 |
msgstr "Страницы руководства Linux 6.13" |
| 2437 |
|
| 2438 |
#. type: TH |
| 2439 |
#: mageia-cauldron |
| 2440 |
#, no-wrap |
| 2441 |
msgid "Linux man-pages 6.17" |
| 2442 |
msgstr "Страницы руководства Linux 6.17" |
| 2443 |
|
| 2444 |
#. type: TH |
| 2445 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2446 |
#, no-wrap |
| 2447 |
msgid "Linux man-pages (unreleased)" |
| 2448 |
msgstr "Страницы руководства Linux (не выпущены)" |