Debian Codegraph @

po/ru/man2/mlock.2.po

raw
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 # aereiae <[email protected]>, 2014.
5 # Alexey <[email protected]>, 2015.
6 # Azamat Hackimov <[email protected]>, 2013-2017.
7 # Dmitriy S. Seregin <[email protected]>, 2013.
8 # Dmitry Bolkhovskikh <[email protected]>, 2017.
9 # ITriskTI <[email protected]>, 2013.
10 # Max Is <[email protected]>, 2016.
11 # Yuri Kozlov <[email protected]>, 2011-2019.
12 # Иван Павлов <[email protected]>, 2017.
13 # Малянов Евгений Викторович <[email protected]>, 2014.
14 msgid ""
15 msgstr ""
16 "Project-Id-Version: manpages-l10n\n"
17 "POT-Creation-Date: 2026-06-05 06:31+0200\n"
18 "PO-Revision-Date: 2024-12-21 19:49+0300\n"
19 "Last-Translator: Yuri Kozlov <[email protected]>\n"
20 "Language-Team: Russian <[email protected]>\n"
21 "Language: ru\n"
22 "MIME-Version: 1.0\n"
23 "Content-Type: text/plain; charset=UTF-8\n"
24 "Content-Transfer-Encoding: 8bit\n"
25 "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
26 "n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || "
27 "(n%100>=11 && n%100<=14)? 2 : 3);\n"
28 "X-Generator: Lokalize 2.0\n"
29
30 #. type: TH
31 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
32 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
33 #, no-wrap
34 msgid "mlock"
35 msgstr "mlock"
36
37 #. type: TH
38 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
39 #: opensuse-tumbleweed
40 #, no-wrap
41 msgid "2026-02-11"
42 msgstr "11 февраля 2026 г."
43
44 #. type: TH
45 #: archlinux debian-unstable
46 #, fuzzy, no-wrap
47 #| msgid "Linux man-pages 6.17"
48 msgid "Linux man-pages 6.18"
49 msgstr "Справочные страницы Linux 6.17"
50
51 #. type: SH
52 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
53 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
54 #, no-wrap
55 msgid "NAME"
56 msgstr "НАИМЕНОВАНИЕ"
57
58 #. type: Plain text
59 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
60 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
61 msgid "mlock, mlock2, munlock, mlockall, munlockall - lock and unlock memory"
62 msgstr ""
63 "mlock, mlock2, munlock, mlockall, munlockall - блокируют и разблокируют "
64 "память"
65
66 #. type: SH
67 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
68 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
69 #, no-wrap
70 msgid "LIBRARY"
71 msgstr "БИБЛИОТЕКА"
72
73 #. type: Plain text
74 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
75 #: opensuse-leap-16-1 opensuse-tumbleweed
76 msgid "Standard C library (I<libc>,\\ I<-lc>)"
77 msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)"
78
79 #. type: SH
80 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
81 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
82 #, no-wrap
83 msgid "SYNOPSIS"
84 msgstr "СИНТАКСИС"
85
86 #. type: Plain text
87 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
88 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
89 #, no-wrap
90 msgid "B<#include E<lt>sys/mman.hE<gt>>\n"
91 msgstr "B<#include E<lt>sys/mman.hE<gt>>\n"
92
93 #. type: Plain text
94 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
95 #: opensuse-tumbleweed
96 #, fuzzy, no-wrap
97 #| msgid ""
98 #| "B<int mlock(const void *>I<addr>B<, size_t >I<len>B<);>\n"
99 #| "B<int mlock2(const void *>I<addr>B<, size_t >I<len>B<, unsigned int >I<flags>B<);>\n"
100 #| "B<int munlock(const void *>I<addr>B<, size_t >I<len>B<);>\n"
101 msgid ""
102 "B<int mlock(>size_t size;\n"
103 "B< const void >I<addr>B<[>I<size>B<], size_t >I<size>B<);>\n"
104 "B<int mlock2(>size_t size;\n"
105 "B< const void >I<addr>B<[>I<size>B<], size_t >I<size>B<, unsigned int >I<flags>B<);>\n"
106 "B<int munlock(>size_t size;\n"
107 "B< const void >I<addr>B<[>I<size>B<], size_t >I<size>B<);>\n"
108 msgstr ""
109 "B<int mlock(const void *>I<addr>B<, size_t >I<len>B<);>\n"
110 "B<int mlock2(const void *>I<addr>B<, size_t >I<len>B<, unsigned int >I<flags>B<);>\n"
111 "B<int munlock(const void *>I<addr>B<, size_t >I<len>B<);>\n"
112
113 #. type: Plain text
114 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
115 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
116 #, no-wrap
117 msgid ""
118 "B<int mlockall(int >I<flags>B<);>\n"
119 "B<int munlockall(void);>\n"
120 msgstr ""
121 "B<int mlockall(int >I<flags>B<);>\n"
122 "B<int munlockall(void);>\n"
123
124 #. type: SH
125 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
126 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
127 #, no-wrap
128 msgid "DESCRIPTION"
129 msgstr "ОПИСАНИЕ"
130
131 #. type: Plain text
132 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
133 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
134 msgid ""
135 "B<mlock>(), B<mlock2>(), and B<mlockall>() lock part or all of the calling "
136 "process's virtual address space into RAM, preventing that memory from being "
137 "paged to the swap area."
138 msgstr ""
139 "Вызовы B<mlock>(), B<mlock2>() и B<mlockall>() блокируют часть или всё "
140 "виртуальное адресное пространство процесса в ОЗУ, запрещая эту память "
141 "перемещать в пространство подкачки."
142
143 #. type: Plain text
144 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
145 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
146 #, fuzzy
147 #| msgid ""
148 #| "B<munlock>() and B<munlockall>() perform the converse operation, "
149 #| "unlocking part or all of the calling process's virtual address space, so "
150 #| "that pages in the specified virtual address range may once more be "
151 #| "swapped out if required by the kernel memory manager."
152 msgid ""
153 "B<munlock>() and B<munlockall>() perform the converse operation, unlocking "
154 "part or all of the calling process's virtual address space, so that pages in "
155 "the specified virtual address range can be swapped out again if required by "
156 "the kernel memory manager."
157 msgstr ""
158 "Вызовы B<munlock>() и B<munlockall>() выполняют обратную операцию, "
159 "разблокируя часть или всё виртуальное адресное пространство процесса, после "
160 "чего страницы в этом диапазоне виртуальных адресов могут вытесняться в "
161 "пространство подкачки, если того потребуется менеджеру памяти ядра."
162
163 #. type: Plain text
164 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
165 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
166 msgid "Memory locking and unlocking are performed in units of whole pages."
167 msgstr "Размер блокировки и разблокировки памяти округляется до целых страниц."
168
169 #. type: SS
170 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
171 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
172 #, no-wrap
173 msgid "mlock(), mlock2(), and munlock()"
174 msgstr "mlock(), mlock2() и munlock()"
175
176 #. type: Plain text
177 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
178 #: opensuse-leap-16-1 opensuse-tumbleweed
179 #, fuzzy
180 #| msgid ""
181 #| "B<mlock>() locks pages in the address range starting at I<addr> and "
182 #| "continuing for I<len> bytes. All pages that contain a part of the "
183 #| "specified address range are guaranteed to be resident in RAM when the "
184 #| "call returns successfully; the pages are guaranteed to stay in RAM until "
185 #| "later unlocked."
186 msgid ""
187 "B<mlock>() locks pages in the address range starting at I<addr> and "
188 "continuing for I<size> bytes. All pages that contain a part of the "
189 "specified address range are guaranteed to be resident in RAM when the call "
190 "returns successfully; the pages are guaranteed to stay in RAM until later "
191 "unlocked."
192 msgstr ""
193 "Вызов B<mlock>() блокирует страницы в адресном диапазоне, начиная с I<addr> "
194 "и длиной I<len> байтов. Все страницы, попадающие, даже частично, в заданную "
195 "область, будут гарантировано помещены в ОЗУ, если системный вызов выполнился "
196 "успешно; страницы гарантировано останутся в ОЗУ пока не будут разблокированы."
197
198 #. commit a8ca5d0ecbdde5cc3d7accacbd69968b0c98764e
199 #. commit de60f5f10c58d4f34b68622442c0e04180367f3f
200 #. commit b0f205c2a3082dd9081f9a94e50658c5fa906ff1
201 #. type: Plain text
202 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
203 #: opensuse-leap-16-1 opensuse-tumbleweed
204 #, fuzzy
205 #| msgid ""
206 #| "B<mlock2>() also locks pages in the specified range starting at I<addr> "
207 #| "and continuing for I<len> bytes. However, the state of the pages "
208 #| "contained in that range after the call returns successfully will depend "
209 #| "on the value in the I<flags> argument."
210 msgid ""
211 "B<mlock2>() also locks pages in the specified range starting at I<addr> and "
212 "continuing for I<size> bytes. However, the state of the pages contained in "
213 "that range after the call returns successfully will depend on the value in "
214 "the I<flags> argument."
215 msgstr ""
216 "Вызов B<mlock2>() также блокирует страницы в адресном диапазоне, начиная с "
217 "I<addr> и длиной I<len> байтов. Однако состояние страниц в этом диапазоне "
218 "после успешного выполнения вызова будет зависеть от значения аргумента "
219 "I<flags>."
220
221 #. type: Plain text
222 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
223 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
224 msgid "The I<flags> argument can be either 0 or the following constant:"
225 msgstr ""
226 "Параметр I<flags> может принимать значение 0 или одну из следующих констант:"
227
228 #. type: TP
229 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
230 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
231 #, no-wrap
232 msgid "B<MLOCK_ONFAULT>"
233 msgstr "B<MLOCK_ONFAULT>"
234
235 #. type: Plain text
236 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
237 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
238 msgid ""
239 "Lock pages that are currently resident and mark the entire range so that the "
240 "remaining nonresident pages are locked when they are populated by a page "
241 "fault."
242 msgstr ""
243 "Блокировать страницы, которые в настоящее время уже есть в памяти и пометить "
244 "весь диапазон так, чтобы оставшиеся вне памяти страницы блокировались, когда "
245 "они будут заполнены из-за страничного промаха (fault)."
246
247 #. type: Plain text
248 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
249 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
250 msgid "If I<flags> is 0, B<mlock2>() behaves exactly the same as B<mlock>()."
251 msgstr ""
252 "Если параметр I<flags> равен 0, то B<mlock2>() ведёт себя точно так же как "
253 "B<mlock>()."
254
255 #. type: Plain text
256 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
257 #: opensuse-leap-16-1 opensuse-tumbleweed
258 #, fuzzy
259 #| msgid ""
260 #| "B<munlock>() unlocks pages in the address range starting at I<addr> and "
261 #| "continuing for I<len> bytes. After this call, all pages that contain a "
262 #| "part of the specified memory range can be moved to external swap space "
263 #| "again by the kernel."
264 msgid ""
265 "B<munlock>() unlocks pages in the address range starting at I<addr> and "
266 "continuing for I<size> bytes. After this call, all pages that contain a "
267 "part of the specified memory range can be moved to external swap space again "
268 "by the kernel."
269 msgstr ""
270 "Вызов B<munlock>() разблокирует страницы в области, начинающейся с адреса "
271 "I<addr> и длиной I<len> байтов. После этого вызова все страницы, попадающие, "
272 "даже частично, в заданную область, снова могут быть помещены ядром во "
273 "внешнее пространство подкачки."
274
275 #. type: SS
276 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
277 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
278 #, no-wrap
279 msgid "mlockall() and munlockall()"
280 msgstr "mlockall() и munlockall()"
281
282 #. type: Plain text
283 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
284 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
285 msgid ""
286 "B<mlockall>() locks all pages mapped into the address space of the calling "
287 "process. This includes the pages of the code, data, and stack segment, as "
288 "well as shared libraries, user space kernel data, shared memory, and memory-"
289 "mapped files. All mapped pages are guaranteed to be resident in RAM when "
290 "the call returns successfully; the pages are guaranteed to stay in RAM until "
291 "later unlocked."
292 msgstr ""
293 "Вызов B<mlockall>() блокирует все страницы, отображённые в адресное "
294 "пространство вызывающего процесса. Сюда входят страницы сегмента кода, "
295 "данных и стека, а также общих библиотек, страницы с данными "
296 "пользовательского пространства ядра, общей памяти и файлов, отображённых в "
297 "память. Все отображённые страницы гарантировано останутся в ОЗУ, если "
298 "системный вызов выполнился успешно; страницы гарантировано останутся в ОЗУ "
299 "пока не будут разблокированы."
300
301 #. type: Plain text
302 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
303 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
304 msgid ""
305 "The I<flags> argument is constructed as the bitwise OR of one or more of the "
306 "following constants:"
307 msgstr ""
308 "Аргумент I<flags> создаётся побитовым сложением одной или более следующих "
309 "констант:"
310
311 #. type: TP
312 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
313 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
314 #, no-wrap
315 msgid "B<MCL_CURRENT>"
316 msgstr "B<MCL_CURRENT>"
317
318 #. type: Plain text
319 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
320 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
321 msgid ""
322 "Lock all pages which are currently mapped into the address space of the "
323 "process."
324 msgstr ""
325 "Блокировать все страницы, которые в данный момент отображены в адресное "
326 "пространство процесса."
327
328 #. type: TP
329 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
330 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
331 #, no-wrap
332 msgid "B<MCL_FUTURE>"
333 msgstr "B<MCL_FUTURE>"
334
335 #. type: Plain text
336 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
337 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
338 msgid ""
339 "Lock all pages which will become mapped into the address space of the "
340 "process in the future. These could be, for instance, new pages required by "
341 "a growing heap and stack as well as new memory-mapped files or shared memory "
342 "regions."
343 msgstr ""
344 "Блокировать все страницы, которые будут отображены в адресное пространство "
345 "процесса в будущем. Это могут быть, например, новые страницы, затребованные "
346 "для увеличения кучи и стека, а также новые отображённые в память файлы или "
347 "области общей памяти."
348
349 #. type: TP
350 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
351 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
352 #, no-wrap
353 msgid "B<MCL_ONFAULT> (since Linux 4.4)"
354 msgstr "B<MCL_ONFAULT> (начиная с Linux 4.4)"
355
356 #. type: Plain text
357 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
358 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
359 msgid ""
360 "Used together with B<MCL_CURRENT>, B<MCL_FUTURE>, or both. Mark all current "
361 "(with B<MCL_CURRENT>) or future (with B<MCL_FUTURE>) mappings to lock "
362 "pages when they are faulted in. When used with B<MCL_CURRENT>, all present "
363 "pages are locked, but B<mlockall>() will not fault in non-present pages. "
364 "When used with B<MCL_FUTURE>, all future mappings will be marked to lock "
365 "pages when they are faulted in, but they will not be populated by the lock "
366 "when the mapping is created. B<MCL_ONFAULT> must be used with either "
367 "B<MCL_CURRENT> or B<MCL_FUTURE> or both."
368 msgstr ""
369 "Используется вместе с B<MCL_CURRENT>, B<MCL_FUTURE> или обоими. Пометить все "
370 "текущие (с B<MCL_CURRENT>) или будущие (с B<MCL_FUTURE>) отображения для "
371 "блокировки страниц, когда они получаются при сбое (faulted in). При "
372 "использовании с B<MCL_CURRENT> все существующие страницы блокируются, но "
373 "B<mlockall>() не будет сбоить на несуществующих страницах. При использовании "
374 "с B<MCL_FUTURE> все будущие отображения будут помечены для блокировки "
375 "страниц при сбое, но они не будут заполнены из-за блокировки при создании "
376 "отображения. Флаг B<MCL_ONFAULT> должен использовать одновременно с "
377 "B<MCL_CURRENT> или B<MCL_FUTURE> или обоими."
378
379 #. type: Plain text
380 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
381 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
382 msgid ""
383 "If B<MCL_FUTURE> has been specified, then a later system call (e.g., "
384 "B<mmap>(2), B<sbrk>(2), B<malloc>(3)), may fail if it would cause the number "
385 "of locked bytes to exceed the permitted maximum (see below). In the same "
386 "circumstances, stack growth may likewise fail: the kernel will deny stack "
387 "expansion and deliver a B<SIGSEGV> signal to the process."
388 msgstr ""
389 "Если указан флаг B<MCL_FUTURE>, то последующий системный вызов (например, "
390 "B<mmap>(2), B<sbrk>(2), B<malloc>(3)), может завершиться с ошибкой, если бы "
391 "его работа приводит к превышению разрешённого максимального числа "
392 "блокируемых байт (см. ниже). Также этот флаг может остановить увеличение "
393 "стека: ядро будет отказывать в увеличении стека и будет посылать процессу "
394 "сигнал B<SIGSEGV>."
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 "B<munlockall>() unlocks all pages mapped into the address space of the "
401 "calling process."
402 msgstr ""
403 "Вызов B<munlockall>() разблокирует все страницы, отображённые в адресное "
404 "пространство вызывающего процесса."
405
406 #. type: SH
407 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
408 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
409 #, no-wrap
410 msgid "RETURN VALUE"
411 msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ"
412
413 #. type: Plain text
414 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
415 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
416 #, fuzzy
417 #| msgid ""
418 #| "On success, these system calls return 0. On error, -1 is returned, "
419 #| "I<errno> is set appropriately, and no changes are made to any locks in "
420 #| "the address space of the process."
421 msgid ""
422 "On success, these system calls return 0. On error, -1 is returned, I<errno> "
423 "is set to indicate the error, and no changes are made to any locks in the "
424 "address space of the process."
425 msgstr ""
426 "При успешном выполнении эти системные вызовы возвращают 0. При ошибке "
427 "возвращается -1, устанавливается соответствующий код ошибки в I<errno>, и "
428 "никакие блокировки не изменяются в адресном пространстве процесса."
429
430 #. type: SH
431 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
432 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
433 #, no-wrap
434 msgid "ERRORS"
435 msgstr "ОШИБКИ"
436
437 #. type: TP
438 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
439 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
440 #, no-wrap
441 msgid "B<EAGAIN>"
442 msgstr "B<EAGAIN>"
443
444 #. type: Plain text
445 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
446 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
447 msgid ""
448 "(B<mlock>(), B<mlock2>(), and B<munlock>()) Some or all of the specified "
449 "address range could not be locked."
450 msgstr ""
451 "(B<mlock>(), B<mlock2>() и B<munlock>()) Невозможно заблокировать некоторую "
452 "часть или весь диапазон адресов."
453
454 #. type: TP
455 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
456 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
457 #, no-wrap
458 msgid "B<EINVAL>"
459 msgstr "B<EINVAL>"
460
461 #. type: Plain text
462 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
463 #: opensuse-leap-16-1 opensuse-tumbleweed
464 #, fuzzy
465 #| msgid ""
466 #| "(B<mlock>(), B<mlock2>(), and B<munlock>()) The result of the addition "
467 #| "I<addr>+I<len> was less than I<addr> (e.g., the addition may have "
468 #| "resulted in an overflow)."
469 msgid ""
470 "(B<mlock>(), B<mlock2>(), and B<munlock>()) The result of the addition "
471 "I<addr>+I<size> was less than I<addr> (e.g., the addition may have resulted "
472 "in an overflow)."
473 msgstr ""
474 "(B<mlock>(), B<mlock2>() и B<munlock>()) Результат добавления "
475 "I<addr>+I<len> стал меньше чем I<addr> (например, добавление могло привести "
476 "к переполнению)."
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 "(B<mlock2>()) Unknown I<flags> were specified."
482 msgstr "(B<mlock2>()) Указан неизвестный флаг в I<flags>."
483
484 #. type: Plain text
485 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
486 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
487 msgid ""
488 "(B<mlockall>()) Unknown I<flags> were specified or B<MCL_ONFAULT> was "
489 "specified without either B<MCL_FUTURE> or B<MCL_CURRENT>."
490 msgstr ""
491 "(B<mlockall>()) Неизвестное значение в I<flags> или B<MCL_ONFAULT> задан "
492 "без B<MCL_FUTURE> или B<MCL_CURRENT>."
493
494 #. type: Plain text
495 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
496 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
497 msgid "(Not on Linux) I<addr> was not a multiple of the page size."
498 msgstr "(Не в Linux) Значение I<addr> не кратно размеру страницы."
499
500 #. type: TP
501 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
502 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
503 #, no-wrap
504 msgid "B<ENOMEM>"
505 msgstr "B<ENOMEM>"
506
507 #. type: Plain text
508 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
509 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
510 msgid ""
511 "(B<mlock>(), B<mlock2>(), and B<munlock>()) Some of the specified address "
512 "range does not correspond to mapped pages in the address space of the "
513 "process."
514 msgstr ""
515 "(B<mlock>(), B<mlock2>() и B<munlock>()) Часть указанного адресного "
516 "диапазона не соответствует отображённым страницам адресного пространства "
517 "процесса."
518
519 #. I.e., the number of VMAs would exceed the 64kB maximum
520 #. type: Plain text
521 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
522 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
523 msgid ""
524 "(B<mlock>(), B<mlock2>(), and B<munlock>()) Locking or unlocking a region "
525 "would result in the total number of mappings with distinct attributes (e.g., "
526 "locked versus unlocked) exceeding the allowed maximum. (For example, "
527 "unlocking a range in the middle of a currently locked mapping would result "
528 "in three mappings: two locked mappings at each end and an unlocked mapping "
529 "in the middle.)"
530 msgstr ""
531 "(B<mlock>(), B<mlock2>() и B<munlock>()) Блокировка и разблокировка области "
532 "привела бы к превышению разрешённого максимума на количество отображений с "
533 "различающимися атрибутами (блокированных и разблокированных). Например, "
534 "разблокировка диапазона в середине области в данный момент блокированного "
535 "отображения привела бы к трём отображениям: два блокированных отображения на "
536 "концах и доступное разблокированное отображение посередине."
537
538 #. type: Plain text
539 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
540 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
541 msgid ""
542 "(Linux 2.6.9 and later) the caller had a nonzero B<RLIMIT_MEMLOCK> soft "
543 "resource limit, but tried to lock more memory than the limit permitted. "
544 "This limit is not enforced if the process is privileged (B<CAP_IPC_LOCK>)."
545 msgstr ""
546 "(Linux 2.6.9 и новее) У вызывающего процесса установлено ненулевое мягкое "
547 "ограничение ресурса B<RLIMIT_MEMLOCK>, но он пытается заблокировать больше "
548 "памяти, чем это разрешено ограничением. Данное ограничение не учитывается у "
549 "привилегированных процессов (B<CAP_IPC_LOCK>)."
550
551 #. In the case of mlock(), this check is somewhat buggy: it doesn't
552 #. take into account whether the to-be-locked range overlaps with
553 #. already locked pages. Thus, suppose we allocate
554 #. (num_physpages / 4 + 1) of memory, and lock those pages once using
555 #. mlock(), and then lock the *same* page range a second time.
556 #. In the case, the second mlock() call will fail, since the check
557 #. calculates that the process is trying to lock (num_physpages / 2 + 2)
558 #. pages, which of course is not true. (MTK, Nov 04, kernel 2.4.28)
559 #. type: Plain text
560 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
561 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
562 msgid ""
563 "(Linux 2.4 and earlier) the calling process tried to lock more than half of "
564 "RAM."
565 msgstr ""
566 "(Linux 2.4 и в более ранних) Вызывающий процесс пытается заблокировать более "
567 "половины ОЗУ."
568
569 #. type: TP
570 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
571 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
572 #, no-wrap
573 msgid "B<EPERM>"
574 msgstr "B<EPERM>"
575
576 #. type: Plain text
577 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
578 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
579 msgid ""
580 "The caller is not privileged, but needs privilege (B<CAP_IPC_LOCK>) to "
581 "perform the requested operation."
582 msgstr ""
583 "Вызывающий не имеет прав (B<CAP_IPC_LOCK>) для выполнения запрошенной "
584 "операции."
585
586 #. type: Plain text
587 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
588 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
589 msgid ""
590 "(B<munlockall>()) (Linux 2.6.8 and earlier) The caller was not privileged "
591 "(B<CAP_IPC_LOCK>)."
592 msgstr ""
593 "(B<munlockall>()) (Linux 2.6.8 и более ранних) Вызывающий процесс не имеет "
594 "достаточно прав (B<CAP_IPC_LOCK>)."
595
596 #. type: SH
597 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
598 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
599 #, no-wrap
600 msgid "VERSIONS"
601 msgstr "ВЕРСИИ"
602
603 #. type: SS
604 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
605 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
606 #, no-wrap
607 msgid "Linux"
608 msgstr "Linux"
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 "Under Linux, B<mlock>(), B<mlock2>(), and B<munlock>() automatically round "
615 "I<addr> down to the nearest page boundary. However, the POSIX.1 "
616 "specification of B<mlock>() and B<munlock>() allows an implementation to "
617 "require that I<addr> is page aligned, so portable applications should ensure "
618 "this."
619 msgstr ""
620 "В Linux, B<mlock>(), B<mlock2>() и B<munlock>() автоматически округляют "
621 "I<addr> в меньшую сторону к размеру границы ближайшей страницы. Однако, в "
622 "POSIX.1 указано, что реализации B<mlock>() и B<munlock>() разрешено "
623 "требовать, чтобы значение I<addr> было выровнено по размеру страницы, "
624 "поэтому переносимые приложения должны выполнять выравнивание."
625
626 #. type: Plain text
627 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
628 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
629 #, fuzzy
630 #| msgid ""
631 #| "The I<VmLck> field of the Linux-specific I</proc/[pid]/status> file shows "
632 #| "how many kilobytes of memory the process with ID I<PID> has locked using "
633 #| "B<mlock>(), B<mlock2>(), B<mlockall>(), and B<mmap>(2) B<MAP_LOCKED>."
634 msgid ""
635 "The I<VmLck> field of the Linux-specific I</proc/>pidI</status> file shows "
636 "how many kilobytes of memory the process with ID I<PID> has locked using "
637 "B<mlock>(), B<mlock2>(), B<mlockall>(), and B<mmap>(2) B<MAP_LOCKED>."
638 msgstr ""
639 "В поле I<VmLck>, имеющемся только в Linux файле I</proc/[pid]/status>, "
640 "показано сколько килобайт памяти заблокировал процесс с идентификатором "
641 "I<PID> с помощью B<mlock>(), B<mlock2>(), B<mlockall>() и B<mmap>(2) с "
642 "флагом B<MAP_LOCKED>."
643
644 #. type: SH
645 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
646 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
647 #, no-wrap
648 msgid "STANDARDS"
649 msgstr "СТАНДАРТЫ"
650
651 #. type: TP
652 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
653 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
654 #, fuzzy, no-wrap
655 #| msgid "B<flock>(2)"
656 msgid "B<mlock>()"
657 msgstr "B<flock>(2)"
658
659 #. type: TQ
660 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
661 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
662 #, fuzzy, no-wrap
663 #| msgid "B<flock>(2)"
664 msgid "B<munlock>()"
665 msgstr "B<flock>(2)"
666
667 #. type: TQ
668 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
669 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
670 #, fuzzy, no-wrap
671 #| msgid "For B<mlockall>():"
672 msgid "B<mlockall>()"
673 msgstr "У B<mlockall>():"
674
675 #. type: TQ
676 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
677 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
678 #, fuzzy, no-wrap
679 #| msgid "For B<munlockall>():"
680 msgid "B<munlockall>()"
681 msgstr "У B<munlockall>():"
682
683 #. type: Plain text
684 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
685 #: opensuse-tumbleweed
686 msgid "POSIX.1-2024."
687 msgstr "POSIX.1-2024."
688
689 #. type: TP
690 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
691 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
692 #, fuzzy, no-wrap
693 #| msgid "B<flock>(2)"
694 msgid "B<mlock2>()"
695 msgstr "B<flock>(2)"
696
697 #. type: Plain text
698 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
699 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
700 msgid "Linux."
701 msgstr "Linux."
702
703 #. type: Plain text
704 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
705 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
706 msgid ""
707 "On POSIX systems on which B<mlock>() and B<munlock>() are available, "
708 "B<_POSIX_MEMLOCK_RANGE> is defined in I<E<lt>unistd.hE<gt>> and the number "
709 "of bytes in a page can be determined from the constant B<PAGESIZE> (if "
710 "defined) in I<E<lt>limits.hE<gt>> or by calling I<sysconf(_SC_PAGESIZE)>."
711 msgstr ""
712 "В POSIX-системах, в которых доступны B<mlock>() и B<munlock>(), значение "
713 "B<_POSIX_MEMLOCK_RANGE> определено в I<E<lt>unistd.hE<gt>>, а количество "
714 "байт в странице можно определить из константы B<PAGESIZE> (если определена) "
715 "в I<E<lt>limits.hE<gt>> или вызвав I<sysconf(_SC_PAGESIZE)>."
716
717 #. POSIX.1-2001: It shall be defined to -1 or 0 or 200112L.
718 #. -1: unavailable, 0: ask using sysconf().
719 #. glibc defines it to 1.
720 #. type: Plain text
721 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
722 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
723 msgid ""
724 "On POSIX systems on which B<mlockall>() and B<munlockall>() are available, "
725 "B<_POSIX_MEMLOCK> is defined in I<E<lt>unistd.hE<gt>> to a value greater "
726 "than 0. (See also B<sysconf>(3).)"
727 msgstr ""
728 "В POSIX-системах, в которых доступны B<mlockall>() и B<munlockall>(), "
729 "значение B<_POSIX_MEMLOCK>, определенное в I<E<lt>unistd.hE<gt>>, больше "
730 "нуля (см. также B<sysconf>(3))."
731
732 #. type: SH
733 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
734 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
735 #, no-wrap
736 msgid "HISTORY"
737 msgstr "ИСТОРИЯ"
738
739 #. type: Plain text
740 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
741 #: opensuse-tumbleweed
742 #, fuzzy
743 #| msgid "SVr4, POSIX.1-2001."
744 msgid "SVr4, POSIX.1-1996."
745 msgstr "SVr4, POSIX.1-2001."
746
747 #. type: Plain text
748 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
749 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
750 #, fuzzy
751 #| msgid "Since glibc 2.2.2:"
752 msgid "Linux 4.4, glibc 2.27."
753 msgstr "Начиная с glibc 2.2.2:"
754
755 #. type: SH
756 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
757 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
758 #, no-wrap
759 msgid "NOTES"
760 msgstr "ПРИМЕЧАНИЯ"
761
762 #. type: Plain text
763 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
764 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
765 msgid ""
766 "Memory locking has two main applications: real-time algorithms and high-"
767 "security data processing. Real-time applications require deterministic "
768 "timing, and, like scheduling, paging is one major cause of unexpected "
769 "program execution delays. Real-time applications will usually also switch "
770 "to a real-time scheduler with B<sched_setscheduler>(2). Cryptographic "
771 "security software often handles critical bytes like passwords or secret keys "
772 "as data structures. As a result of paging, these secrets could be "
773 "transferred onto a persistent swap store medium, where they might be "
774 "accessible to the enemy long after the security software has erased the "
775 "secrets in RAM and terminated. (But be aware that the suspend mode on "
776 "laptops and some desktop computers will save a copy of the system's RAM to "
777 "disk, regardless of memory locks.)"
778 msgstr ""
779 "Блокировка памяти используется, в основном, в двух случаях: в алгоритмах "
780 "реального времени и при работе с секретными данными. Программам реального "
781 "времени необходима предсказуемость времени выполнения, а страничный обмен "
782 "(наряду с системой переключения процессов) может привести к неожиданным "
783 "задержкам в работе. Такие приложения часто переключаются в режим реального "
784 "времени при помощи вызовы B<sched_setscheduler>(2). Криптографические "
785 "системы защиты данных очень часто содержат важные данные, например, пароли "
786 "или секретные ключи, в структурах данных. В результате страничного обмена "
787 "эти данные могут попасть в область подкачки, находящуюся на устройстве "
788 "длительного хранения, где к этим данным после того, как они пропадут из ОЗУ, "
789 "может получить доступ практически кто угодно. (Помните, что в режиме "
790 "приостановки (suspend) на ноутбуках и некоторых компьютерах на жёсткий диск "
791 "сохраняется копия памяти ОЗУ системы, независимо от блокировок памяти)."
792
793 #. type: Plain text
794 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
795 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
796 msgid ""
797 "Real-time processes that are using B<mlockall>() to prevent delays on page "
798 "faults should reserve enough locked stack pages before entering the time-"
799 "critical section, so that no page fault can be caused by function calls. "
800 "This can be achieved by calling a function that allocates a sufficiently "
801 "large automatic variable (an array) and writes to the memory occupied by "
802 "this array in order to touch these stack pages. This way, enough pages will "
803 "be mapped for the stack and can be locked into RAM. The dummy writes ensure "
804 "that not even copy-on-write page faults can occur in the critical section."
805 msgstr ""
806 "Процессы реального времени, использующие B<mlockall>() для устранения "
807 "задержек при страничных прерываниях (page fault), должны зарезервировать "
808 "достаточно заблокированных страниц стека до входа в критический ко времени "
809 "участок, для того, чтобы вызов функции не мог привести к страничному "
810 "прерыванию. Это можно выполнить с помощью вызова функции, которая выделит "
811 "место под достаточно большую автоматическую переменную (массив) и выполнит "
812 "запись в память для того, чтобы этот массив занял место в странице стека. "
813 "Таким путём будет отображено достаточно страниц для стека, которые можно "
814 "заблокировать в ОЗУ. Бесполезная запись нужна для того, чтобы в критическом "
815 "участке не возникло страничное прерывание для копирования страницы при "
816 "записи."
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 msgid ""
822 "Memory locks are not inherited by a child created via B<fork>(2) and are "
823 "automatically removed (unlocked) during an B<execve>(2) or when the process "
824 "terminates. The B<mlockall>() B<MCL_FUTURE> and B<MCL_FUTURE | "
825 "MCL_ONFAULT> settings are not inherited by a child created via B<fork>(2) "
826 "and are cleared during an B<execve>(2)."
827 msgstr ""
828 "Блокировка памяти не наследуется дочерними процессами, созданными при помощи "
829 "B<fork>(2), и автоматически удаляется (разблокируется) при выполнении "
830 "B<execve>(2) или при завершении работы процесса. Установка B<MCL_FUTURE> и "
831 "B<MCL_FUTURE | MCL_ONFAULT> в B<mlockall>() не наследуется потомком, "
832 "созданными при помощи B<fork>(2), и автоматически стирается при выполнении "
833 "B<execve>(2)."
834
835 #. type: Plain text
836 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
837 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
838 #, fuzzy
839 #| msgid ""
840 #| "Note that B<fork>(2) will prepare the address space for a copy-on-write "
841 #| "operation. The consequence is that any write access that follows will "
842 #| "cause a page fault that in turn may cause high latencies for a real-time "
843 #| "process. Therefore, it is crucial not to invoke B<fork>(2) after an "
844 #| "B<mlockall>() or B<mlock>() operation\\(emnot even from a thread which "
845 #| "runs at a low priority within a process which also has a thread running "
846 #| "at elevated priority."
847 msgid ""
848 "Note that B<fork>(2) will prepare the address space for a copy-on-write "
849 "operation. The consequence is that any write access that follows will cause "
850 "a page fault that in turn may cause high latencies for a real-time process. "
851 "Therefore, it is crucial not to invoke B<fork>(2) after an B<mlockall>() "
852 "or B<mlock>() operation\\[em]not even from a thread which runs at a low "
853 "priority within a process which also has a thread running at elevated "
854 "priority."
855 msgstr ""
856 "Заметим, что that B<fork>(2) подготовит адресное пространство для операции "
857 "копирования при записи. Следовательно, любой последующий доступ на запись "
858 "приведёт к страничному отказу, который, в свою очередь, может привести к "
859 "большим задержкам в процессах реального времени. Поэтому, существенно важно "
860 "не вызывать B<fork>(2) после операции B<mlockall>() или B<mlock>() — даже "
861 "для нитей, которые выполняются с низким приоритетом внутри процесса, который "
862 "также имеет нить, выполняющуюся с более высоким приоритетом."
863
864 #. type: Plain text
865 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
866 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
867 msgid ""
868 "The memory lock on an address range is automatically removed if the address "
869 "range is unmapped via B<munmap>(2)."
870 msgstr ""
871 "Блокировка памяти адресного диапазона автоматически удаляется, если этот "
872 "диапазон становится неотображаемым с помощью вызова B<munmap>(2)."
873
874 #. type: Plain text
875 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
876 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
877 msgid ""
878 "Memory locks do not stack, that is, pages which have been locked several "
879 "times by calls to B<mlock>(), B<mlock2>(), or B<mlockall>() will be "
880 "unlocked by a single call to B<munlock>() for the corresponding range or by "
881 "B<munlockall>(). Pages which are mapped to several locations or by several "
882 "processes stay locked into RAM as long as they are locked at least at one "
883 "location or by at least one process."
884 msgstr ""
885 "Блокировки памяти не накапливаются, то есть, если страница была "
886 "заблокирована вызовами B<mlock>(), B<mlock2>() или B<mlockall>() несколько "
887 "раз, то она будет разблокирована единственным вызовом B<munlock>() для "
888 "соответствующего диапазона или с помощью вызова B<munlockall>(). Страницы, "
889 "которые были отображены в несколько мест или несколькими процессами, "
890 "останутся заблокированными в ОЗУ до тех пор, пока они блокируются хотя бы в "
891 "одном месте или хотя бы в одном процессе."
892
893 #. type: Plain text
894 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
895 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
896 msgid ""
897 "If a call to B<mlockall>() which uses the B<MCL_FUTURE> flag is followed by "
898 "another call that does not specify this flag, the changes made by the "
899 "B<MCL_FUTURE> call will be lost."
900 msgstr ""
901 "Если послед вызова B<mlockall>() с флагом B<MCL_FUTURE> идёт другой вызов, у "
902 "которого нет этого флага, то изменения, сделанные вызовом с B<MCL_FUTURE> "
903 "будут потеряны."
904
905 #. type: Plain text
906 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
907 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
908 msgid ""
909 "The B<mlock2>() B<MLOCK_ONFAULT> flag and the B<mlockall>() B<MCL_ONFAULT> "
910 "flag allow efficient memory locking for applications that deal with large "
911 "mappings where only a (small) portion of pages in the mapping are touched. "
912 "In such cases, locking all of the pages in a mapping would incur a "
913 "significant penalty for memory locking."
914 msgstr ""
915 "Флаг B<MLOCK_ONFAULT> у B<mlock2>() и B<MCL_ONFAULT> у B<mlockall>() "
916 "позволяют эффективно блокировать память в приложениях, которые работают с "
917 "большим количеством отображений, где только задействуется часть (малая) "
918 "страниц в отображении. В таких случаях блокировка всех страниц в отображении "
919 "приводила бы к значительным простоям из-за блокировки памяти."
920
921 #. type: SS
922 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
923 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
924 #, no-wrap
925 msgid "Limits and permissions"
926 msgstr "Ограничения и права доступа"
927
928 #. type: Plain text
929 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
930 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
931 msgid ""
932 "In Linux 2.6.8 and earlier, a process must be privileged (B<CAP_IPC_LOCK>) "
933 "in order to lock memory and the B<RLIMIT_MEMLOCK> soft resource limit "
934 "defines a limit on how much memory the process may lock."
935 msgstr ""
936 "В Linux версии 2.6.8 и более ранних для блокировки памяти процесс должен "
937 "иметь мандат (B<CAP_IPC_LOCK>), а мягкое ограничение ресурса "
938 "B<RLIMIT_MEMLOCK> определяет как много памяти можно заблокировать."
939
940 #. type: Plain text
941 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
942 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
943 msgid ""
944 "Since Linux 2.6.9, no limits are placed on the amount of memory that a "
945 "privileged process can lock and the B<RLIMIT_MEMLOCK> soft resource limit "
946 "instead defines a limit on how much memory an unprivileged process may lock."
947 msgstr ""
948 "Начиная с Linux 2.6.9, привилегированный процесс не имеет ограничения на "
949 "ограничиваемое количество памяти, а мягкое ограничение ресурса "
950 "B<RLIMIT_MEMLOCK> определяет предел ограничиваемой памяти для "
951 "непривилегированных процессов."
952
953 #. type: SH
954 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
955 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
956 #, no-wrap
957 msgid "BUGS"
958 msgstr "ПРОГРАММНЫЕ ОШИБКИ"
959
960 #. commit 0cf2f6f6dc605e587d2c1120f295934c77e810e8
961 #. type: Plain text
962 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
963 #: opensuse-leap-16-1 opensuse-tumbleweed
964 #, fuzzy
965 #| msgid ""
966 #| "In Linux 4.8 and earlier, a bug in the kernel's accounting of locked "
967 #| "memory for unprivileged processes (i.e., without B<CAP_IPC_LOCK>) meant "
968 #| "that if the region specified by I<addr> and I<len> overlapped an existing "
969 #| "lock, then the already locked bytes in the overlapping region were "
970 #| "counted twice when checking against the limit. Such double accounting "
971 #| "could incorrectly calculate a \"total locked memory\" value for the "
972 #| "process that exceeded the B<RLIMIT_MEMLOCK> limit, with the result that "
973 #| "B<mlock>() and B<mlock2>() would fail on requests that should have "
974 #| "succeeded. This bug was fixed in Linux 4.9."
975 msgid ""
976 "In Linux 4.8 and earlier, a bug in the kernel's accounting of locked memory "
977 "for unprivileged processes (i.e., without B<CAP_IPC_LOCK>) meant that if "
978 "the region specified by I<addr> and I<size> overlapped an existing lock, "
979 "then the already locked bytes in the overlapping region were counted twice "
980 "when checking against the limit. Such double accounting could incorrectly "
981 "calculate a \"total locked memory\" value for the process that exceeded the "
982 "B<RLIMIT_MEMLOCK> limit, with the result that B<mlock>() and B<mlock2>() "
983 "would fail on requests that should have succeeded. This bug was fixed in "
984 "Linux 4.9."
985 msgstr ""
986 "В Linux 4.8 и старее имеется дефект учёта блокированной памяти "
987 "непривилегированных процессов (т. е., без B<CAP_IPC_LOCK>) в ядре, состоящий "
988 "в том, что если область, указанная I<addr> и I<len> перекрывает существующую "
989 "блокировку, то при проверке ограничений уже заблокированные байты "
990 "перекрывающей области учитываются дважды. Из-за такого двойного учёта может "
991 "некорректно вычисляться значение «общего количества заблокированной памяти», "
992 "и процесс, который превышает ограничение B<RLIMIT_MEMLOCK>, в результате "
993 "B<mlock>() и B<mlock2>() получит ошибку при запросах, которые должны "
994 "выполняться успешно. Этот дефект был исправлен в Linux 4.9."
995
996 #. type: Plain text
997 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
998 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
999 #, fuzzy
1000 #| msgid ""
1001 #| "In the 2.4 series Linux kernels up to and including 2.4.17, a bug caused "
1002 #| "the B<mlockall>() B<MCL_FUTURE> flag to be inherited across a "
1003 #| "B<fork>(2). This was rectified in kernel 2.4.18."
1004 msgid ""
1005 "In Linux 2.4 series of kernels up to and including Linux 2.4.17, a bug "
1006 "caused the B<mlockall>() B<MCL_FUTURE> flag to be inherited across a "
1007 "B<fork>(2). This was rectified in Linux 2.4.18."
1008 msgstr ""
1009 "В ветви 2.4 ядер Linux до версии 2.4.17 включительно есть дефект, из-за "
1010 "которого флаг B<MCL_FUTURE> у B<mlockall>() наследуется при B<fork>(2). Он "
1011 "устранён в версии 2.4.18."
1012
1013 #. See the following LKML thread:
1014 #. http://marc.theaimsgroup.com/?l=linux-kernel&m=113801392825023&w=2
1015 #. "Rationale for RLIMIT_MEMLOCK"
1016 #. 23 Jan 2006
1017 #. type: Plain text
1018 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1019 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1020 #, fuzzy
1021 #| msgid ""
1022 #| "Since kernel 2.6.9, if a privileged process calls I<mlockall(MCL_FUTURE)> "
1023 #| "and later drops privileges (loses the B<CAP_IPC_LOCK> capability by, for "
1024 #| "example, setting its effective UID to a nonzero value), then subsequent "
1025 #| "memory allocations (e.g., B<mmap>(2), B<brk>(2)) will fail if the "
1026 #| "B<RLIMIT_MEMLOCK> resource limit is encountered."
1027 msgid ""
1028 "Since Linux 2.6.9, if a privileged process calls I<mlockall(MCL_FUTURE)> and "
1029 "later drops privileges (loses the B<CAP_IPC_LOCK> capability by, for "
1030 "example, setting its effective UID to a nonzero value), then subsequent "
1031 "memory allocations (e.g., B<mmap>(2), B<brk>(2)) will fail if the "
1032 "B<RLIMIT_MEMLOCK> resource limit is encountered."
1033 msgstr ""
1034 "Начиная с ядра версии 2.6.9, если привилегированный процесс вызывает "
1035 "I<mlockall(MCL_FUTURE)> и, позднее, отказывается от прав (теряет мандат "
1036 "B<CAP_IPC_LOCK>, например, устанавливая свой эффективный UID в ненулевое "
1037 "значение), то последующие выделения памяти (например, с помощью B<mmap>(2), "
1038 "B<brk>(2)) будут завершаться с ошибкой при достижении предела ресурса "
1039 "B<RLIMIT_MEMLOCK>."
1040
1041 #. type: SH
1042 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1043 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1044 #, no-wrap
1045 msgid "SEE ALSO"
1046 msgstr "СМОТРИТЕ ТАКЖЕ"
1047
1048 #. type: Plain text
1049 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1050 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1051 msgid ""
1052 "B<mincore>(2), B<mmap>(2), B<setrlimit>(2), B<shmctl>(2), B<sysconf>(3), "
1053 "B<proc>(5), B<capabilities>(7)"
1054 msgstr ""
1055 "B<mincore>(2), B<mmap>(2), B<setrlimit>(2), B<shmctl>(2), B<sysconf>(3), "
1056 "B<proc>(5), B<capabilities>(7)"
1057
1058 #. type: TH
1059 #: debian-trixie
1060 #, no-wrap
1061 msgid "2024-05-02"
1062 msgstr "2 мая 2024 г."
1063
1064 #. type: TH
1065 #: debian-trixie
1066 #, no-wrap
1067 msgid "Linux man-pages 6.9.1"
1068 msgstr "Страницы руководства Linux 6.9.1"
1069
1070 #. type: Plain text
1071 #: debian-trixie
1072 msgid "Standard C library (I<libc>, I<-lc>)"
1073 msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)"
1074
1075 #. type: Plain text
1076 #: debian-trixie
1077 #, fuzzy, no-wrap
1078 #| msgid ""
1079 #| "B<int mlock(const void *>I<addr>B<, size_t >I<len>B<);>\n"
1080 #| "B<int mlock2(const void *>I<addr>B<, size_t >I<len>B<, unsigned int >I<flags>B<);>\n"
1081 #| "B<int munlock(const void *>I<addr>B<, size_t >I<len>B<);>\n"
1082 msgid ""
1083 "B<int mlock(const void >I<addr>B<[.>I<len>B<], size_t >I<len>B<);>\n"
1084 "B<int mlock2(const void >I<addr>B<[.>I<len>B<], size_t >I<len>B<, unsigned int >I<flags>B<);>\n"
1085 "B<int munlock(const void >I<addr>B<[.>I<len>B<], size_t >I<len>B<);>\n"
1086 msgstr ""
1087 "B<int mlock(const void *>I<addr>B<, size_t >I<len>B<);>\n"
1088 "B<int mlock2(const void *>I<addr>B<, size_t >I<len>B<, unsigned int >I<flags>B<);>\n"
1089 "B<int munlock(const void *>I<addr>B<, size_t >I<len>B<);>\n"
1090
1091 #. type: Plain text
1092 #: debian-trixie
1093 msgid ""
1094 "B<mlock>() locks pages in the address range starting at I<addr> and "
1095 "continuing for I<len> bytes. All pages that contain a part of the specified "
1096 "address range are guaranteed to be resident in RAM when the call returns "
1097 "successfully; the pages are guaranteed to stay in RAM until later unlocked."
1098 msgstr ""
1099 "Вызов B<mlock>() блокирует страницы в адресном диапазоне, начиная с I<addr> "
1100 "и длиной I<len> байтов. Все страницы, попадающие, даже частично, в заданную "
1101 "область, будут гарантировано помещены в ОЗУ, если системный вызов выполнился "
1102 "успешно; страницы гарантировано останутся в ОЗУ пока не будут разблокированы."
1103
1104 #. commit a8ca5d0ecbdde5cc3d7accacbd69968b0c98764e
1105 #. commit de60f5f10c58d4f34b68622442c0e04180367f3f
1106 #. commit b0f205c2a3082dd9081f9a94e50658c5fa906ff1
1107 #. type: Plain text
1108 #: debian-trixie
1109 msgid ""
1110 "B<mlock2>() also locks pages in the specified range starting at I<addr> and "
1111 "continuing for I<len> bytes. However, the state of the pages contained in "
1112 "that range after the call returns successfully will depend on the value in "
1113 "the I<flags> argument."
1114 msgstr ""
1115 "Вызов B<mlock2>() также блокирует страницы в адресном диапазоне, начиная с "
1116 "I<addr> и длиной I<len> байтов. Однако состояние страниц в этом диапазоне "
1117 "после успешного выполнения вызова будет зависеть от значения аргумента "
1118 "I<flags>."
1119
1120 #. type: Plain text
1121 #: debian-trixie
1122 msgid ""
1123 "B<munlock>() unlocks pages in the address range starting at I<addr> and "
1124 "continuing for I<len> bytes. After this call, all pages that contain a part "
1125 "of the specified memory range can be moved to external swap space again by "
1126 "the kernel."
1127 msgstr ""
1128 "Вызов B<munlock>() разблокирует страницы в области, начинающейся с адреса "
1129 "I<addr> и длиной I<len> байтов. После этого вызова все страницы, попадающие, "
1130 "даже частично, в заданную область, снова могут быть помещены ядром во "
1131 "внешнее пространство подкачки."
1132
1133 #. type: Plain text
1134 #: debian-trixie
1135 msgid ""
1136 "(B<mlock>(), B<mlock2>(), and B<munlock>()) The result of the addition "
1137 "I<addr>+I<len> was less than I<addr> (e.g., the addition may have resulted "
1138 "in an overflow)."
1139 msgstr ""
1140 "(B<mlock>(), B<mlock2>() и B<munlock>()) Результат добавления "
1141 "I<addr>+I<len> стал меньше чем I<addr> (например, добавление могло привести "
1142 "к переполнению)."
1143
1144 #. type: Plain text
1145 #: debian-trixie fedora-44 fedora-rawhide
1146 msgid "POSIX.1-2008."
1147 msgstr "POSIX.1-2008."
1148
1149 #. type: Plain text
1150 #: debian-trixie fedora-44 fedora-rawhide
1151 msgid "POSIX.1-2001, POSIX.1-2008, SVr4."
1152 msgstr "POSIX.1-2001, POSIX.1-2008, SVr4."
1153
1154 #. commit 0cf2f6f6dc605e587d2c1120f295934c77e810e8
1155 #. type: Plain text
1156 #: debian-trixie
1157 msgid ""
1158 "In Linux 4.8 and earlier, a bug in the kernel's accounting of locked memory "
1159 "for unprivileged processes (i.e., without B<CAP_IPC_LOCK>) meant that if "
1160 "the region specified by I<addr> and I<len> overlapped an existing lock, then "
1161 "the already locked bytes in the overlapping region were counted twice when "
1162 "checking against the limit. Such double accounting could incorrectly "
1163 "calculate a \"total locked memory\" value for the process that exceeded the "
1164 "B<RLIMIT_MEMLOCK> limit, with the result that B<mlock>() and B<mlock2>() "
1165 "would fail on requests that should have succeeded. This bug was fixed in "
1166 "Linux 4.9."
1167 msgstr ""
1168 "В Linux 4.8 и старее имеется дефект учёта блокированной памяти "
1169 "непривилегированных процессов (т. е., без B<CAP_IPC_LOCK>) в ядре, состоящий "
1170 "в том, что если область, указанная I<addr> и I<len> перекрывает существующую "
1171 "блокировку, то при проверке ограничений уже заблокированные байты "
1172 "перекрывающей области учитываются дважды. Из-за такого двойного учёта может "
1173 "некорректно вычисляться значение «общего количества заблокированной памяти», "
1174 "и процесс, который превышает ограничение B<RLIMIT_MEMLOCK>, в результате "
1175 "B<mlock>() и B<mlock2>() получит ошибку при запросах, которые должны "
1176 "выполняться успешно. Этот дефект был исправлен в Linux 4.9."
1177
1178 #. type: TH
1179 #: fedora-44 fedora-rawhide
1180 #, no-wrap
1181 msgid "2024-11-17"
1182 msgstr "17 ноября 2024 г."
1183
1184 #. type: TH
1185 #: fedora-44 fedora-rawhide
1186 #, no-wrap
1187 msgid "Linux man-pages 6.13"
1188 msgstr "Страницы руководства Linux 6.13"
1189
1190 #. type: Plain text
1191 #: fedora-44 fedora-rawhide
1192 #, fuzzy, no-wrap
1193 #| msgid ""
1194 #| "B<int mlock(const void *>I<addr>B<, size_t >I<len>B<);>\n"
1195 #| "B<int mlock2(const void *>I<addr>B<, size_t >I<len>B<, unsigned int >I<flags>B<);>\n"
1196 #| "B<int munlock(const void *>I<addr>B<, size_t >I<len>B<);>\n"
1197 msgid ""
1198 "B<int mlock(const void >I<addr>B<[.>I<size>B<], size_t >I<size>B<);>\n"
1199 "B<int mlock2(const void >I<addr>B<[.>I<size>B<], size_t >I<size>B<, unsigned int >I<flags>B<);>\n"
1200 "B<int munlock(const void >I<addr>B<[.>I<size>B<], size_t >I<size>B<);>\n"
1201 msgstr ""
1202 "B<int mlock(const void *>I<addr>B<, size_t >I<len>B<);>\n"
1203 "B<int mlock2(const void *>I<addr>B<, size_t >I<len>B<, unsigned int >I<flags>B<);>\n"
1204 "B<int munlock(const void *>I<addr>B<, size_t >I<len>B<);>\n"
1205
1206 #. type: TH
1207 #: mageia-cauldron
1208 #, no-wrap
1209 msgid "Linux man-pages 6.17"
1210 msgstr "Страницы руководства Linux 6.17"
1211
1212 #. type: TH
1213 #: opensuse-leap-16-1 opensuse-tumbleweed
1214 #, no-wrap
1215 msgid "Linux man-pages (unreleased)"
1216 msgstr "Страницы руководства Linux (не выпущены)"