| 1 |
# SOME DESCRIPTIVE TITLE |
| 2 |
# Copyright (C) YEAR Free Software Foundation, Inc. |
| 3 |
# This file is distributed under the same license as the PACKAGE package. |
| 4 |
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. |
| 5 |
# |
| 6 |
#, fuzzy |
| 7 |
msgid "" |
| 8 |
msgstr "" |
| 9 |
"Project-Id-Version: PACKAGE VERSION\n" |
| 10 |
"POT-Creation-Date: 2026-06-05 06:30+0200\n" |
| 11 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
| 12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
| 13 |
"Language-Team: LANGUAGE <[email protected]>\n" |
| 14 |
"Language: \n" |
| 15 |
"MIME-Version: 1.0\n" |
| 16 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 17 |
"Content-Transfer-Encoding: 8bit\n" |
| 18 |
|
| 19 |
#. type: TH |
| 20 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 21 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 22 |
#, no-wrap |
| 23 |
msgid "madvise" |
| 24 |
msgstr "" |
| 25 |
|
| 26 |
#. type: TH |
| 27 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 28 |
#: opensuse-tumbleweed |
| 29 |
#, no-wrap |
| 30 |
msgid "2026-02-08" |
| 31 |
msgstr "" |
| 32 |
|
| 33 |
#. type: TH |
| 34 |
#: archlinux debian-unstable |
| 35 |
#, no-wrap |
| 36 |
msgid "Linux man-pages 6.18" |
| 37 |
msgstr "" |
| 38 |
|
| 39 |
#. type: SH |
| 40 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 41 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 42 |
#, no-wrap |
| 43 |
msgid "NAME" |
| 44 |
msgstr "" |
| 45 |
|
| 46 |
#. type: Plain text |
| 47 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 48 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 49 |
msgid "madvise - give advice about use of memory" |
| 50 |
msgstr "" |
| 51 |
|
| 52 |
#. type: SH |
| 53 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 54 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 55 |
#, no-wrap |
| 56 |
msgid "LIBRARY" |
| 57 |
msgstr "" |
| 58 |
|
| 59 |
#. type: Plain text |
| 60 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 61 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 62 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 63 |
msgstr "" |
| 64 |
|
| 65 |
#. type: SH |
| 66 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 67 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 68 |
#, no-wrap |
| 69 |
msgid "SYNOPSIS" |
| 70 |
msgstr "" |
| 71 |
|
| 72 |
#. type: Plain text |
| 73 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 74 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 75 |
#, no-wrap |
| 76 |
msgid "B<#include E<lt>sys/mman.hE<gt>>\n" |
| 77 |
msgstr "" |
| 78 |
|
| 79 |
#. type: Plain text |
| 80 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 81 |
#: opensuse-tumbleweed |
| 82 |
#, no-wrap |
| 83 |
msgid "" |
| 84 |
"B<int madvise(>size_t size;\n" |
| 85 |
"B< void >I<addr>B<[>I<size>B<], size_t >I<size>B<, int >I<advice>B<);>\n" |
| 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 |
"Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):" |
| 93 |
msgstr "" |
| 94 |
|
| 95 |
#. type: Plain text |
| 96 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 97 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 98 |
msgid "B<madvise>():" |
| 99 |
msgstr "" |
| 100 |
|
| 101 |
#. type: Plain text |
| 102 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 103 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 104 |
#, no-wrap |
| 105 |
msgid "" |
| 106 |
" Since glibc 2.19:\n" |
| 107 |
" _DEFAULT_SOURCE\n" |
| 108 |
" Up to and including glibc 2.19:\n" |
| 109 |
" _BSD_SOURCE\n" |
| 110 |
msgstr "" |
| 111 |
|
| 112 |
#. type: SH |
| 113 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 114 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 115 |
#, no-wrap |
| 116 |
msgid "DESCRIPTION" |
| 117 |
msgstr "" |
| 118 |
|
| 119 |
#. type: Plain text |
| 120 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 121 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 122 |
msgid "" |
| 123 |
"The B<madvise>() system call is used to give advice or directions to the " |
| 124 |
"kernel about the address range beginning at address I<addr> and with size " |
| 125 |
"I<size>. B<madvise>() only operates on whole pages, therefore I<addr> must " |
| 126 |
"be page-aligned. The value of I<size> is rounded up to a multiple of page " |
| 127 |
"size. In most cases, the goal of such advice is to improve system or " |
| 128 |
"application performance." |
| 129 |
msgstr "" |
| 130 |
|
| 131 |
# |
| 132 |
#. ====================================================================== |
| 133 |
#. type: Plain text |
| 134 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 135 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 136 |
msgid "" |
| 137 |
"Initially, the system call supported a set of \"conventional\" I<advice> " |
| 138 |
"values, which are also available on several other implementations. (Note, " |
| 139 |
"though, that B<madvise>() is not specified in POSIX.) Subsequently, a " |
| 140 |
"number of Linux-specific I<advice> values have been added." |
| 141 |
msgstr "" |
| 142 |
|
| 143 |
#. type: SS |
| 144 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 145 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 146 |
#, no-wrap |
| 147 |
msgid "Conventional advice values" |
| 148 |
msgstr "" |
| 149 |
|
| 150 |
#. type: Plain text |
| 151 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 152 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 153 |
msgid "" |
| 154 |
"The I<advice> values listed below allow an application to tell the kernel " |
| 155 |
"how it expects to use some mapped or shared memory areas, so that the kernel " |
| 156 |
"can choose appropriate read-ahead and caching techniques. These I<advice> " |
| 157 |
"values do not influence the semantics of the application (except in the case " |
| 158 |
"of B<MADV_DONTNEED>), but may influence its performance. All of the " |
| 159 |
"I<advice> values listed here have analogs in the POSIX-specified " |
| 160 |
"B<posix_madvise>(3) function, and the values have the same meanings, with " |
| 161 |
"the exception of B<MADV_DONTNEED>." |
| 162 |
msgstr "" |
| 163 |
|
| 164 |
#. type: Plain text |
| 165 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 166 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 167 |
msgid "" |
| 168 |
"The advice is indicated in the I<advice> argument, which is one of the " |
| 169 |
"following:" |
| 170 |
msgstr "" |
| 171 |
|
| 172 |
#. type: TP |
| 173 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 174 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 175 |
#, no-wrap |
| 176 |
msgid "B<MADV_NORMAL>" |
| 177 |
msgstr "" |
| 178 |
|
| 179 |
#. type: Plain text |
| 180 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 181 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 182 |
msgid "No special treatment. This is the default." |
| 183 |
msgstr "" |
| 184 |
|
| 185 |
#. type: TP |
| 186 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 187 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 188 |
#, no-wrap |
| 189 |
msgid "B<MADV_RANDOM>" |
| 190 |
msgstr "" |
| 191 |
|
| 192 |
#. type: Plain text |
| 193 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 194 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 195 |
msgid "" |
| 196 |
"Expect page references in random order. (Hence, read ahead may be less " |
| 197 |
"useful than normally.)" |
| 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<MADV_SEQUENTIAL>" |
| 205 |
msgstr "" |
| 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 "" |
| 211 |
"Expect page references in sequential order. (Hence, pages in the given " |
| 212 |
"range can be aggressively read ahead, and may be freed soon after they are " |
| 213 |
"accessed.)" |
| 214 |
msgstr "" |
| 215 |
|
| 216 |
#. type: TP |
| 217 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 218 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 219 |
#, no-wrap |
| 220 |
msgid "B<MADV_WILLNEED>" |
| 221 |
msgstr "" |
| 222 |
|
| 223 |
#. type: Plain text |
| 224 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 225 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 226 |
msgid "" |
| 227 |
"Expect access in the near future. (Hence, it might be a good idea to read " |
| 228 |
"some pages ahead.)" |
| 229 |
msgstr "" |
| 230 |
|
| 231 |
#. type: TP |
| 232 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 233 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 234 |
#, no-wrap |
| 235 |
msgid "B<MADV_DONTNEED>" |
| 236 |
msgstr "" |
| 237 |
|
| 238 |
#. type: Plain text |
| 239 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 240 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 241 |
msgid "" |
| 242 |
"Do not expect access in the near future. (For the time being, the " |
| 243 |
"application is finished with the given range, so the kernel can free " |
| 244 |
"resources associated with it.)" |
| 245 |
msgstr "" |
| 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 "" |
| 251 |
"After a successful B<MADV_DONTNEED> operation, the semantics of memory " |
| 252 |
"access in the specified region are changed: subsequent accesses of pages in " |
| 253 |
"the range will succeed, but will result in either repopulating the memory " |
| 254 |
"contents from the up-to-date contents of the underlying mapped file (for " |
| 255 |
"shared file mappings, shared anonymous mappings, and shmem-based techniques " |
| 256 |
"such as System V shared memory segments) or zero-fill-on-demand pages for " |
| 257 |
"anonymous private mappings." |
| 258 |
msgstr "" |
| 259 |
|
| 260 |
#. type: Plain text |
| 261 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 262 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 263 |
msgid "" |
| 264 |
"Note that, when applied to shared mappings, B<MADV_DONTNEED> might not lead " |
| 265 |
"to immediate freeing of the pages in the range. The kernel is free to delay " |
| 266 |
"freeing the pages until an appropriate moment. The resident set size (RSS) " |
| 267 |
"of the calling process will be immediately reduced however." |
| 268 |
msgstr "" |
| 269 |
|
| 270 |
#. http://lwn.net/Articles/162860/ |
| 271 |
#. type: Plain text |
| 272 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 273 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 274 |
msgid "" |
| 275 |
"B<MADV_DONTNEED> cannot be applied to locked pages, or B<VM_PFNMAP> pages. " |
| 276 |
"(Pages marked with the kernel-internal B<VM_PFNMAP> flag are special memory " |
| 277 |
"areas that are not managed by the virtual memory subsystem. Such pages are " |
| 278 |
"typically created by device drivers that map the pages into user space.)" |
| 279 |
msgstr "" |
| 280 |
|
| 281 |
# |
| 282 |
#. ====================================================================== |
| 283 |
#. type: Plain text |
| 284 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 285 |
#: opensuse-tumbleweed |
| 286 |
msgid "" |
| 287 |
"Support for Huge TLB pages was added in Linux 5.18. Addresses within a " |
| 288 |
"mapping backed by Huge TLB pages must be aligned to the underlying Huge TLB " |
| 289 |
"page size, and the range size is rounded up to a multiple of the underlying " |
| 290 |
"Huge TLB page size." |
| 291 |
msgstr "" |
| 292 |
|
| 293 |
#. type: SS |
| 294 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 295 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 296 |
#, no-wrap |
| 297 |
msgid "Linux-specific advice values" |
| 298 |
msgstr "" |
| 299 |
|
| 300 |
#. type: Plain text |
| 301 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 302 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 303 |
msgid "" |
| 304 |
"The following Linux-specific I<advice> values have no counterparts in the " |
| 305 |
"POSIX-specified B<posix_madvise>(3), and may or may not have counterparts in " |
| 306 |
"the B<madvise>() interface available on other implementations. Note that " |
| 307 |
"some of these operations change the semantics of memory accesses." |
| 308 |
msgstr "" |
| 309 |
|
| 310 |
#. type: TP |
| 311 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 312 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 313 |
#, no-wrap |
| 314 |
msgid "B<MADV_REMOVE> (since Linux 2.6.16)" |
| 315 |
msgstr "" |
| 316 |
|
| 317 |
#. commit f6b3ec238d12c8cc6cc71490c6e3127988460349 |
| 318 |
#. Databases want to use this feature to drop a section of their |
| 319 |
#. bufferpool (shared memory segments) - without writing back to |
| 320 |
#. disk/swap space. This feature is also useful for supporting |
| 321 |
#. hot-plug memory on UML. |
| 322 |
#. type: Plain text |
| 323 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 324 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 325 |
msgid "" |
| 326 |
"Free up a given range of pages and its associated backing store. This is " |
| 327 |
"equivalent to punching a hole in the corresponding range of the backing " |
| 328 |
"store (see B<fallocate>(2)). Subsequent accesses in the specified address " |
| 329 |
"range will see data with a value of zero." |
| 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 specified address range must be mapped shared and writable. This flag " |
| 337 |
"cannot be applied to locked pages, or B<VM_PFNMAP> pages." |
| 338 |
msgstr "" |
| 339 |
|
| 340 |
#. commit 3f31d07571eeea18a7d34db9af21d2285b807a17 |
| 341 |
#. type: Plain text |
| 342 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 343 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 344 |
msgid "" |
| 345 |
"In the initial implementation, only B<tmpfs>(5) supported B<MADV_REMOVE>; " |
| 346 |
"but since Linux 3.5, any filesystem which supports the B<fallocate>(2) " |
| 347 |
"B<FALLOC_FL_PUNCH_HOLE> mode also supports B<MADV_REMOVE>. Filesystems " |
| 348 |
"which do not support B<MADV_REMOVE> fail with the error B<EOPNOTSUPP>." |
| 349 |
msgstr "" |
| 350 |
|
| 351 |
#. type: Plain text |
| 352 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 353 |
#: opensuse-tumbleweed |
| 354 |
msgid "Support for the Huge TLB filesystem was added in Linux 4.3." |
| 355 |
msgstr "" |
| 356 |
|
| 357 |
#. type: TP |
| 358 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 359 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 360 |
#, no-wrap |
| 361 |
msgid "B<MADV_DONTFORK> (since Linux 2.6.16)" |
| 362 |
msgstr "" |
| 363 |
|
| 364 |
# |
| 365 |
# |
| 366 |
# |
| 367 |
#. #-#-#-#-# archlinux: madvise.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 368 |
#. commit f822566165dd46ff5de9bf895cfa6c51f53bb0c4 |
| 369 |
#. See http://lwn.net/Articles/171941/ |
| 370 |
#. [PATCH] madvise MADV_DONTFORK/MADV_DOFORK |
| 371 |
#. Currently, copy-on-write may change the physical address of |
| 372 |
#. a page even if the user requested that the page is pinned in |
| 373 |
#. memory (either by mlock or by get_user_pages). This happens |
| 374 |
#. if the process forks meanwhile, and the parent writes to that |
| 375 |
#. page. As a result, the page is orphaned: in case of |
| 376 |
#. get_user_pages, the application will never see any data hardware |
| 377 |
#. DMA's into this page after the COW. In case of mlock'd memory, |
| 378 |
#. the parent is not getting the realtime/security benefits of mlock. |
| 379 |
#. In particular, this affects the Infiniband modules which do DMA from |
| 380 |
#. and into user pages all the time. |
| 381 |
#. This patch adds madvise options to control whether memory range is |
| 382 |
#. inherited across fork. Useful, e.g., for when hardware is doing DMA |
| 383 |
#. from/into these pages. Could also be useful to an application |
| 384 |
#. wanting to speed up its forks by cutting large areas out of |
| 385 |
#. consideration. |
| 386 |
#. SEE ALSO: http://lwn.net/Articles/171941/ |
| 387 |
#. "Tweaks to madvise() and posix_fadvise()", 14 Feb 2006 |
| 388 |
#. type: Plain text |
| 389 |
#. #-#-#-#-# debian-trixie: madvise.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 390 |
#. commit f822566165dd46ff5de9bf895cfa6c51f53bb0c4 |
| 391 |
#. See http://lwn.net/Articles/171941/ |
| 392 |
#. [PATCH] madvise MADV_DONTFORK/MADV_DOFORK |
| 393 |
#. Currently, copy-on-write may change the physical address of |
| 394 |
#. a page even if the user requested that the page is pinned in |
| 395 |
#. memory (either by mlock or by get_user_pages). This happens |
| 396 |
#. if the process forks meanwhile, and the parent writes to that |
| 397 |
#. page. As a result, the page is orphaned: in case of |
| 398 |
#. get_user_pages, the application will never see any data hardware |
| 399 |
#. DMA's into this page after the COW. In case of mlock'd memory, |
| 400 |
#. the parent is not getting the realtime/security benefits of mlock. |
| 401 |
#. In particular, this affects the Infiniband modules which do DMA from |
| 402 |
#. and into user pages all the time. |
| 403 |
#. This patch adds madvise options to control whether memory range is |
| 404 |
#. inherited across fork. Useful e.g. for when hardware is doing DMA |
| 405 |
#. from/into these pages. Could also be useful to an application |
| 406 |
#. wanting to speed up its forks by cutting large areas out of |
| 407 |
#. consideration. |
| 408 |
#. SEE ALSO: http://lwn.net/Articles/171941/ |
| 409 |
#. "Tweaks to madvise() and posix_fadvise()", 14 Feb 2006 |
| 410 |
#. type: Plain text |
| 411 |
#. #-#-#-#-# debian-unstable: madvise.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 412 |
#. commit f822566165dd46ff5de9bf895cfa6c51f53bb0c4 |
| 413 |
#. See http://lwn.net/Articles/171941/ |
| 414 |
#. [PATCH] madvise MADV_DONTFORK/MADV_DOFORK |
| 415 |
#. Currently, copy-on-write may change the physical address of |
| 416 |
#. a page even if the user requested that the page is pinned in |
| 417 |
#. memory (either by mlock or by get_user_pages). This happens |
| 418 |
#. if the process forks meanwhile, and the parent writes to that |
| 419 |
#. page. As a result, the page is orphaned: in case of |
| 420 |
#. get_user_pages, the application will never see any data hardware |
| 421 |
#. DMA's into this page after the COW. In case of mlock'd memory, |
| 422 |
#. the parent is not getting the realtime/security benefits of mlock. |
| 423 |
#. In particular, this affects the Infiniband modules which do DMA from |
| 424 |
#. and into user pages all the time. |
| 425 |
#. This patch adds madvise options to control whether memory range is |
| 426 |
#. inherited across fork. Useful, e.g., for when hardware is doing DMA |
| 427 |
#. from/into these pages. Could also be useful to an application |
| 428 |
#. wanting to speed up its forks by cutting large areas out of |
| 429 |
#. consideration. |
| 430 |
#. SEE ALSO: http://lwn.net/Articles/171941/ |
| 431 |
#. "Tweaks to madvise() and posix_fadvise()", 14 Feb 2006 |
| 432 |
#. type: Plain text |
| 433 |
#. #-#-#-#-# fedora-44: madvise.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 434 |
#. commit f822566165dd46ff5de9bf895cfa6c51f53bb0c4 |
| 435 |
#. See http://lwn.net/Articles/171941/ |
| 436 |
#. [PATCH] madvise MADV_DONTFORK/MADV_DOFORK |
| 437 |
#. Currently, copy-on-write may change the physical address of |
| 438 |
#. a page even if the user requested that the page is pinned in |
| 439 |
#. memory (either by mlock or by get_user_pages). This happens |
| 440 |
#. if the process forks meanwhile, and the parent writes to that |
| 441 |
#. page. As a result, the page is orphaned: in case of |
| 442 |
#. get_user_pages, the application will never see any data hardware |
| 443 |
#. DMA's into this page after the COW. In case of mlock'd memory, |
| 444 |
#. the parent is not getting the realtime/security benefits of mlock. |
| 445 |
#. In particular, this affects the Infiniband modules which do DMA from |
| 446 |
#. and into user pages all the time. |
| 447 |
#. This patch adds madvise options to control whether memory range is |
| 448 |
#. inherited across fork. Useful e.g. for when hardware is doing DMA |
| 449 |
#. from/into these pages. Could also be useful to an application |
| 450 |
#. wanting to speed up its forks by cutting large areas out of |
| 451 |
#. consideration. |
| 452 |
#. SEE ALSO: http://lwn.net/Articles/171941/ |
| 453 |
#. "Tweaks to madvise() and posix_fadvise()", 14 Feb 2006 |
| 454 |
#. type: Plain text |
| 455 |
#. #-#-#-#-# fedora-rawhide: madvise.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 456 |
#. commit f822566165dd46ff5de9bf895cfa6c51f53bb0c4 |
| 457 |
#. See http://lwn.net/Articles/171941/ |
| 458 |
#. [PATCH] madvise MADV_DONTFORK/MADV_DOFORK |
| 459 |
#. Currently, copy-on-write may change the physical address of |
| 460 |
#. a page even if the user requested that the page is pinned in |
| 461 |
#. memory (either by mlock or by get_user_pages). This happens |
| 462 |
#. if the process forks meanwhile, and the parent writes to that |
| 463 |
#. page. As a result, the page is orphaned: in case of |
| 464 |
#. get_user_pages, the application will never see any data hardware |
| 465 |
#. DMA's into this page after the COW. In case of mlock'd memory, |
| 466 |
#. the parent is not getting the realtime/security benefits of mlock. |
| 467 |
#. In particular, this affects the Infiniband modules which do DMA from |
| 468 |
#. and into user pages all the time. |
| 469 |
#. This patch adds madvise options to control whether memory range is |
| 470 |
#. inherited across fork. Useful e.g. for when hardware is doing DMA |
| 471 |
#. from/into these pages. Could also be useful to an application |
| 472 |
#. wanting to speed up its forks by cutting large areas out of |
| 473 |
#. consideration. |
| 474 |
#. SEE ALSO: http://lwn.net/Articles/171941/ |
| 475 |
#. "Tweaks to madvise() and posix_fadvise()", 14 Feb 2006 |
| 476 |
#. type: Plain text |
| 477 |
#. #-#-#-#-# mageia-cauldron: madvise.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 478 |
#. commit f822566165dd46ff5de9bf895cfa6c51f53bb0c4 |
| 479 |
#. See http://lwn.net/Articles/171941/ |
| 480 |
#. [PATCH] madvise MADV_DONTFORK/MADV_DOFORK |
| 481 |
#. Currently, copy-on-write may change the physical address of |
| 482 |
#. a page even if the user requested that the page is pinned in |
| 483 |
#. memory (either by mlock or by get_user_pages). This happens |
| 484 |
#. if the process forks meanwhile, and the parent writes to that |
| 485 |
#. page. As a result, the page is orphaned: in case of |
| 486 |
#. get_user_pages, the application will never see any data hardware |
| 487 |
#. DMA's into this page after the COW. In case of mlock'd memory, |
| 488 |
#. the parent is not getting the realtime/security benefits of mlock. |
| 489 |
#. In particular, this affects the Infiniband modules which do DMA from |
| 490 |
#. and into user pages all the time. |
| 491 |
#. This patch adds madvise options to control whether memory range is |
| 492 |
#. inherited across fork. Useful, e.g., for when hardware is doing DMA |
| 493 |
#. from/into these pages. Could also be useful to an application |
| 494 |
#. wanting to speed up its forks by cutting large areas out of |
| 495 |
#. consideration. |
| 496 |
#. SEE ALSO: http://lwn.net/Articles/171941/ |
| 497 |
#. "Tweaks to madvise() and posix_fadvise()", 14 Feb 2006 |
| 498 |
#. type: Plain text |
| 499 |
#. #-#-#-#-# opensuse-leap-16-1: madvise.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 500 |
#. commit f822566165dd46ff5de9bf895cfa6c51f53bb0c4 |
| 501 |
#. See http://lwn.net/Articles/171941/ |
| 502 |
#. [PATCH] madvise MADV_DONTFORK/MADV_DOFORK |
| 503 |
#. Currently, copy-on-write may change the physical address of |
| 504 |
#. a page even if the user requested that the page is pinned in |
| 505 |
#. memory (either by mlock or by get_user_pages). This happens |
| 506 |
#. if the process forks meanwhile, and the parent writes to that |
| 507 |
#. page. As a result, the page is orphaned: in case of |
| 508 |
#. get_user_pages, the application will never see any data hardware |
| 509 |
#. DMA's into this page after the COW. In case of mlock'd memory, |
| 510 |
#. the parent is not getting the realtime/security benefits of mlock. |
| 511 |
#. In particular, this affects the Infiniband modules which do DMA from |
| 512 |
#. and into user pages all the time. |
| 513 |
#. This patch adds madvise options to control whether memory range is |
| 514 |
#. inherited across fork. Useful, e.g., for when hardware is doing DMA |
| 515 |
#. from/into these pages. Could also be useful to an application |
| 516 |
#. wanting to speed up its forks by cutting large areas out of |
| 517 |
#. consideration. |
| 518 |
#. SEE ALSO: http://lwn.net/Articles/171941/ |
| 519 |
#. "Tweaks to madvise() and posix_fadvise()", 14 Feb 2006 |
| 520 |
#. type: Plain text |
| 521 |
#. #-#-#-#-# opensuse-tumbleweed: madvise.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 522 |
#. commit f822566165dd46ff5de9bf895cfa6c51f53bb0c4 |
| 523 |
#. See http://lwn.net/Articles/171941/ |
| 524 |
#. [PATCH] madvise MADV_DONTFORK/MADV_DOFORK |
| 525 |
#. Currently, copy-on-write may change the physical address of |
| 526 |
#. a page even if the user requested that the page is pinned in |
| 527 |
#. memory (either by mlock or by get_user_pages). This happens |
| 528 |
#. if the process forks meanwhile, and the parent writes to that |
| 529 |
#. page. As a result, the page is orphaned: in case of |
| 530 |
#. get_user_pages, the application will never see any data hardware |
| 531 |
#. DMA's into this page after the COW. In case of mlock'd memory, |
| 532 |
#. the parent is not getting the realtime/security benefits of mlock. |
| 533 |
#. In particular, this affects the Infiniband modules which do DMA from |
| 534 |
#. and into user pages all the time. |
| 535 |
#. This patch adds madvise options to control whether memory range is |
| 536 |
#. inherited across fork. Useful, e.g., for when hardware is doing DMA |
| 537 |
#. from/into these pages. Could also be useful to an application |
| 538 |
#. wanting to speed up its forks by cutting large areas out of |
| 539 |
#. consideration. |
| 540 |
#. SEE ALSO: http://lwn.net/Articles/171941/ |
| 541 |
#. "Tweaks to madvise() and posix_fadvise()", 14 Feb 2006 |
| 542 |
#. type: Plain text |
| 543 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 544 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 545 |
msgid "" |
| 546 |
"Do not make the pages in this range available to the child after a " |
| 547 |
"B<fork>(2). This is useful to prevent copy-on-write semantics from changing " |
| 548 |
"the physical location of a page if the parent writes to it after a " |
| 549 |
"B<fork>(2). (Such page relocations cause problems for hardware that DMAs " |
| 550 |
"into the page.)" |
| 551 |
msgstr "" |
| 552 |
|
| 553 |
#. type: TP |
| 554 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 555 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 556 |
#, no-wrap |
| 557 |
msgid "B<MADV_DOFORK> (since Linux 2.6.16)" |
| 558 |
msgstr "" |
| 559 |
|
| 560 |
#. type: Plain text |
| 561 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 562 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 563 |
msgid "" |
| 564 |
"Undo the effect of B<MADV_DONTFORK>, restoring the default behavior, whereby " |
| 565 |
"a mapping is inherited across B<fork>(2)." |
| 566 |
msgstr "" |
| 567 |
|
| 568 |
#. type: TP |
| 569 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 570 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 571 |
#, no-wrap |
| 572 |
msgid "B<MADV_HWPOISON> (since Linux 2.6.32)" |
| 573 |
msgstr "" |
| 574 |
|
| 575 |
#. commit 9893e49d64a4874ea67849ee2cfbf3f3d6817573 |
| 576 |
#. type: Plain text |
| 577 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 578 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 579 |
msgid "" |
| 580 |
"Poison the pages in the range specified by I<addr> and I<size> and handle " |
| 581 |
"subsequent references to those pages like a hardware memory corruption. " |
| 582 |
"This operation is available only for privileged (B<CAP_SYS_ADMIN>) " |
| 583 |
"processes. This operation may result in the calling process receiving a " |
| 584 |
"B<SIGBUS> and the page being unmapped." |
| 585 |
msgstr "" |
| 586 |
|
| 587 |
#. type: Plain text |
| 588 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 589 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 590 |
msgid "" |
| 591 |
"This feature is intended for testing of memory error-handling code; it is " |
| 592 |
"available only if the kernel was configured with B<CONFIG_MEMORY_FAILURE>." |
| 593 |
msgstr "" |
| 594 |
|
| 595 |
#. type: TP |
| 596 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 597 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 598 |
#, no-wrap |
| 599 |
msgid "B<MADV_MERGEABLE> (since Linux 2.6.32)" |
| 600 |
msgstr "" |
| 601 |
|
| 602 |
#. commit f8af4da3b4c14e7267c4ffb952079af3912c51c5 |
| 603 |
#. type: Plain text |
| 604 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 605 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 606 |
msgid "" |
| 607 |
"Enable Kernel Samepage Merging (KSM) for the pages in the range specified by " |
| 608 |
"I<addr> and I<size>. The kernel regularly scans those areas of user memory " |
| 609 |
"that have been marked as mergeable, looking for pages with identical " |
| 610 |
"content. These are replaced by a single write-protected page (which is " |
| 611 |
"automatically copied if a process later wants to update the content of the " |
| 612 |
"page). KSM merges only private anonymous pages (see B<mmap>(2))." |
| 613 |
msgstr "" |
| 614 |
|
| 615 |
#. type: Plain text |
| 616 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 617 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 618 |
msgid "" |
| 619 |
"The KSM feature is intended for applications that generate many instances of " |
| 620 |
"the same data (e.g., virtualization systems such as KVM). It can consume a " |
| 621 |
"lot of processing power; use with care. See the Linux kernel source file " |
| 622 |
"I<Documentation/admin-guide/mm/ksm.rst> for more details." |
| 623 |
msgstr "" |
| 624 |
|
| 625 |
#. type: Plain text |
| 626 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 627 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 628 |
msgid "" |
| 629 |
"The B<MADV_MERGEABLE> and B<MADV_UNMERGEABLE> operations are available only " |
| 630 |
"if the kernel was configured with B<CONFIG_KSM>." |
| 631 |
msgstr "" |
| 632 |
|
| 633 |
#. type: TP |
| 634 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 635 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 636 |
#, no-wrap |
| 637 |
msgid "B<MADV_UNMERGEABLE> (since Linux 2.6.32)" |
| 638 |
msgstr "" |
| 639 |
|
| 640 |
#. type: Plain text |
| 641 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 642 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 643 |
msgid "" |
| 644 |
"Undo the effect of an earlier B<MADV_MERGEABLE> operation on the specified " |
| 645 |
"address range; KSM unmerges whatever pages it had merged in the address " |
| 646 |
"range specified by I<addr> and I<size>." |
| 647 |
msgstr "" |
| 648 |
|
| 649 |
#. type: TP |
| 650 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 651 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 652 |
#, no-wrap |
| 653 |
msgid "B<MADV_SOFT_OFFLINE> (since Linux 2.6.33)" |
| 654 |
msgstr "" |
| 655 |
|
| 656 |
#. commit afcf938ee0aac4ef95b1a23bac704c6fbeb26de6 |
| 657 |
#. type: Plain text |
| 658 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 659 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 660 |
msgid "" |
| 661 |
"Soft offline the pages in the range specified by I<addr> and I<size>. The " |
| 662 |
"memory of each page in the specified range is preserved (i.e., when next " |
| 663 |
"accessed, the same content will be visible, but in a new physical page " |
| 664 |
"frame), and the original page is offlined (i.e., no longer used, and taken " |
| 665 |
"out of normal memory management). The effect of the B<MADV_SOFT_OFFLINE> " |
| 666 |
"operation is invisible to (i.e., does not change the semantics of) the " |
| 667 |
"calling process." |
| 668 |
msgstr "" |
| 669 |
|
| 670 |
#. type: TP |
| 671 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 672 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 673 |
#, no-wrap |
| 674 |
msgid "B<MADV_HUGEPAGE> (since Linux 2.6.38)" |
| 675 |
msgstr "" |
| 676 |
|
| 677 |
#. commit 0af4e98b6b095c74588af04872f83d333c958c32 |
| 678 |
#. http://lwn.net/Articles/358904/ |
| 679 |
#. https://lwn.net/Articles/423584/ |
| 680 |
#. type: Plain text |
| 681 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 682 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 683 |
msgid "" |
| 684 |
"Enable Transparent Huge Pages (THP) for pages in the range specified by " |
| 685 |
"I<addr> and I<size>. The kernel will regularly scan the areas marked as " |
| 686 |
"huge page candidates to replace them with huge pages. The kernel will also " |
| 687 |
"allocate huge pages directly when the region is naturally aligned to the " |
| 688 |
"huge page size (see B<posix_memalign>(2))." |
| 689 |
msgstr "" |
| 690 |
|
| 691 |
#. type: Plain text |
| 692 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 693 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 694 |
msgid "" |
| 695 |
"This feature is primarily aimed at applications that use large mappings of " |
| 696 |
"data and access large regions of that memory at a time (e.g., virtualization " |
| 697 |
"systems such as QEMU). It can very easily waste memory (e.g., a 2\\ MB " |
| 698 |
"mapping that only ever accesses 1 byte will result in 2\\ MB of wired memory " |
| 699 |
"instead of one 4\\ KB page). See the Linux kernel source file " |
| 700 |
"I<Documentation/admin-guide/mm/transhuge.rst> for more details." |
| 701 |
msgstr "" |
| 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 |
"Most common kernels configurations provide B<MADV_HUGEPAGE>-style behavior " |
| 708 |
"by default, and thus B<MADV_HUGEPAGE> is normally not necessary. It is " |
| 709 |
"mostly intended for embedded systems, where B<MADV_HUGEPAGE>-style behavior " |
| 710 |
"may not be enabled by default in the kernel. On such systems, this flag can " |
| 711 |
"be used in order to selectively enable THP. Whenever B<MADV_HUGEPAGE> is " |
| 712 |
"used, it should always be in regions of memory with an access pattern that " |
| 713 |
"the developer knows in advance won't risk to increase the memory footprint " |
| 714 |
"of the application when transparent hugepages are enabled." |
| 715 |
msgstr "" |
| 716 |
|
| 717 |
#. commit 99cb0dbd47a15d395bf3faa78dc122bc5efe3fc0 |
| 718 |
#. type: Plain text |
| 719 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 720 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 721 |
msgid "" |
| 722 |
"Since Linux 5.4, automatic scan of eligible areas and replacement by huge " |
| 723 |
"pages works with private anonymous pages (see B<mmap>(2)), shmem pages, and " |
| 724 |
"file-backed pages. For all memory types, memory may only be replaced by " |
| 725 |
"huge pages on hugepage-aligned boundaries. For file-mapped memory \\" |
| 726 |
"[em]including tmpfs (see B<tmpfs>(2))\\[em] the mapping must also be " |
| 727 |
"naturally hugepage-aligned within the file. Additionally, for file-backed, " |
| 728 |
"non-tmpfs memory, the file must not be open for write and the mapping must " |
| 729 |
"be executable." |
| 730 |
msgstr "" |
| 731 |
|
| 732 |
#. type: Plain text |
| 733 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 734 |
#: opensuse-tumbleweed |
| 735 |
msgid "" |
| 736 |
"The VMA must not be marked B<VM_NOHUGEPAGE>, B<VM_HUGETLB>, B<VM_IO>, " |
| 737 |
"B<VM_DONTEXPAND>, B<VM_MIXEDMAP>, or B<VM_PFNMAP>, nor can it be stack " |
| 738 |
"memory or backed by a DAX-enabled device (unless the DAX device is hot-" |
| 739 |
"plugged as System RAM). The process can have B<PR_SET_THP_DISABLE> set only " |
| 740 |
"if B<PR_THP_DISABLE_EXCEPT_ADVISED> is set (see B<prctl>(2))." |
| 741 |
msgstr "" |
| 742 |
|
| 743 |
#. type: Plain text |
| 744 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 745 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 746 |
msgid "" |
| 747 |
"The B<MADV_HUGEPAGE>, B<MADV_NOHUGEPAGE>, and B<MADV_COLLAPSE> operations " |
| 748 |
"are available only if the kernel was configured with " |
| 749 |
"B<CONFIG_TRANSPARENT_HUGEPAGE> and file/shmem memory is only supported if " |
| 750 |
"the kernel was configured with B<CONFIG_READ_ONLY_THP_FOR_FS>." |
| 751 |
msgstr "" |
| 752 |
|
| 753 |
#. type: TP |
| 754 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 755 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 756 |
#, no-wrap |
| 757 |
msgid "B<MADV_NOHUGEPAGE> (since Linux 2.6.38)" |
| 758 |
msgstr "" |
| 759 |
|
| 760 |
#. type: Plain text |
| 761 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 762 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 763 |
msgid "" |
| 764 |
"Ensures that memory in the address range specified by I<addr> and I<size> " |
| 765 |
"will not be backed by transparent hugepages." |
| 766 |
msgstr "" |
| 767 |
|
| 768 |
#. type: TP |
| 769 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 770 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 771 |
#, no-wrap |
| 772 |
msgid "B<MADV_COLLAPSE> (since Linux 6.1)" |
| 773 |
msgstr "" |
| 774 |
|
| 775 |
#. commit 7d8faaf155454f8798ec56404faca29a82689c77 |
| 776 |
#. commit 34488399fa08faaf664743fa54b271eb6f9e1321 |
| 777 |
#. type: Plain text |
| 778 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 779 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 780 |
msgid "" |
| 781 |
"Perform a best-effort synchronous collapse of the native pages mapped by the " |
| 782 |
"memory range into Transparent Huge Pages (THPs). B<MADV_COLLAPSE> operates " |
| 783 |
"on the current state of memory of the calling process and makes no " |
| 784 |
"persistent changes or guarantees on how pages will be mapped, constructed, " |
| 785 |
"or faulted in the future." |
| 786 |
msgstr "" |
| 787 |
|
| 788 |
#. type: Plain text |
| 789 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 790 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 791 |
msgid "" |
| 792 |
"B<MADV_COLLAPSE> supports private anonymous pages (see B<mmap>(2)), shmem " |
| 793 |
"pages, and file-backed pages. See B<MADV_HUGEPAGE> for general information " |
| 794 |
"on memory requirements for THP. If the range provided spans multiple VMAs, " |
| 795 |
"the semantics of the collapse over each VMA is independent from the others. " |
| 796 |
"If collapse of a given huge page-aligned/sized region fails, the operation " |
| 797 |
"may continue to attempt collapsing the remainder of the specified memory. " |
| 798 |
"B<MADV_COLLAPSE> will automatically clamp the provided range to be hugepage-" |
| 799 |
"aligned." |
| 800 |
msgstr "" |
| 801 |
|
| 802 |
#. type: Plain text |
| 803 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 804 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 805 |
msgid "" |
| 806 |
"All non-resident pages covered by the range will first be swapped/faulted-" |
| 807 |
"in, before being copied onto a freshly allocated hugepage. If the native " |
| 808 |
"pages compose the same PTE-mapped hugepage, and are suitably aligned, " |
| 809 |
"allocation of a new hugepage may be elided and collapse may happen in-" |
| 810 |
"place. Unmapped pages will have their data directly initialized to 0 in the " |
| 811 |
"new hugepage. However, for every eligible hugepage-aligned/sized region to " |
| 812 |
"be collapsed, at least one page must currently be backed by physical memory." |
| 813 |
msgstr "" |
| 814 |
|
| 815 |
#. type: Plain text |
| 816 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 817 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 818 |
msgid "" |
| 819 |
"B<MADV_COLLAPSE> is independent of any sysfs (see B<sysfs>(5)) setting " |
| 820 |
"under I</sys/kernel/mm/transparent_hugepage>, both in terms of determining " |
| 821 |
"THP eligibility, and allocation semantics. See Linux kernel source file " |
| 822 |
"I<Documentation/admin-guide/mm/transhuge.rst> for more information. " |
| 823 |
"B<MADV_COLLAPSE> also ignores B<huge=> tmpfs mount when operating on tmpfs " |
| 824 |
"files. Allocation for the new hugepage may enter direct reclaim and/or " |
| 825 |
"compaction, regardless of VMA flags (though B<VM_NOHUGEPAGE> is still " |
| 826 |
"respected)." |
| 827 |
msgstr "" |
| 828 |
|
| 829 |
#. type: Plain text |
| 830 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 831 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 832 |
msgid "" |
| 833 |
"When the system has multiple NUMA nodes, the hugepage will be allocated from " |
| 834 |
"the node providing the most native pages." |
| 835 |
msgstr "" |
| 836 |
|
| 837 |
#. type: Plain text |
| 838 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 839 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 840 |
msgid "" |
| 841 |
"If all hugepage-sized/aligned regions covered by the provided range were " |
| 842 |
"either successfully collapsed, or were already PMD-mapped THPs, this " |
| 843 |
"operation will be deemed successful. Note that this doesn't guarantee " |
| 844 |
"anything about other possible mappings of the memory. In the event multiple " |
| 845 |
"hugepage-aligned/sized areas fail to collapse, only the most-recently\\" |
| 846 |
"[en]failed code will be set in I<errno>." |
| 847 |
msgstr "" |
| 848 |
|
| 849 |
#. type: TP |
| 850 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 851 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 852 |
#, no-wrap |
| 853 |
msgid "B<MADV_DONTDUMP> (since Linux 3.4)" |
| 854 |
msgstr "" |
| 855 |
|
| 856 |
#. commit 909af768e88867016f427264ae39d27a57b6a8ed |
| 857 |
#. commit accb61fe7bb0f5c2a4102239e4981650f9048519 |
| 858 |
#. type: Plain text |
| 859 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 860 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 861 |
msgid "" |
| 862 |
"Exclude from a core dump those pages in the range specified by I<addr> and " |
| 863 |
"I<size>. This is useful in applications that have large areas of memory " |
| 864 |
"that are known not to be useful in a core dump. The effect of " |
| 865 |
"B<MADV_DONTDUMP> takes precedence over the bit mask that is set via the I</" |
| 866 |
"proc/>pidI</coredump_filter> file (see B<core>(5))." |
| 867 |
msgstr "" |
| 868 |
|
| 869 |
#. type: TP |
| 870 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 871 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 872 |
#, no-wrap |
| 873 |
msgid "B<MADV_DODUMP> (since Linux 3.4)" |
| 874 |
msgstr "" |
| 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 "Undo the effect of an earlier B<MADV_DONTDUMP>." |
| 880 |
msgstr "" |
| 881 |
|
| 882 |
#. type: TP |
| 883 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 884 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 885 |
#, no-wrap |
| 886 |
msgid "B<MADV_FREE> (since Linux 4.5)" |
| 887 |
msgstr "" |
| 888 |
|
| 889 |
#. type: Plain text |
| 890 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 891 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 892 |
msgid "" |
| 893 |
"The application no longer requires the pages in the range specified by " |
| 894 |
"I<addr> and I<size>. The kernel can thus free these pages, but the freeing " |
| 895 |
"could be delayed until memory pressure occurs. For each of the pages that " |
| 896 |
"has been marked to be freed but has not yet been freed, the free operation " |
| 897 |
"will be canceled if the caller writes into the page. After a successful " |
| 898 |
"B<MADV_FREE> operation, any stale data (i.e., dirty, unwritten pages) will " |
| 899 |
"be lost when the kernel frees the pages. However, subsequent writes to " |
| 900 |
"pages in the range will succeed and then kernel cannot free those dirtied " |
| 901 |
"pages, so that the caller can always see just written data. If there is no " |
| 902 |
"subsequent write, the kernel can free the pages at any time. Once pages in " |
| 903 |
"the range have been freed, the caller will see zero-fill-on-demand pages " |
| 904 |
"upon subsequent page references." |
| 905 |
msgstr "" |
| 906 |
|
| 907 |
#. commit 93e06c7a645343d222c9a838834a51042eebbbf7 |
| 908 |
#. type: Plain text |
| 909 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 910 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 911 |
msgid "" |
| 912 |
"The B<MADV_FREE> operation can be applied only to private anonymous pages " |
| 913 |
"(see B<mmap>(2)). Before Linux 4.12, when freeing pages on a swapless " |
| 914 |
"system, the pages in the given range are freed instantly, regardless of " |
| 915 |
"memory pressure." |
| 916 |
msgstr "" |
| 917 |
|
| 918 |
#. type: TP |
| 919 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 920 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 921 |
#, no-wrap |
| 922 |
msgid "B<MADV_WIPEONFORK> (since Linux 4.14)" |
| 923 |
msgstr "" |
| 924 |
|
| 925 |
#. commit d2cd9ede6e193dd7d88b6d27399e96229a551b19 |
| 926 |
#. type: Plain text |
| 927 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 928 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 929 |
msgid "" |
| 930 |
"Present the child process with zero-filled memory in this range after a " |
| 931 |
"B<fork>(2). This is useful in forking servers in order to ensure that " |
| 932 |
"sensitive per-process data (for example, PRNG seeds, cryptographic secrets, " |
| 933 |
"and so on) is not handed to child processes." |
| 934 |
msgstr "" |
| 935 |
|
| 936 |
#. type: Plain text |
| 937 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 938 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 939 |
msgid "" |
| 940 |
"The B<MADV_WIPEONFORK> operation can be applied only to private anonymous " |
| 941 |
"pages (see B<mmap>(2))." |
| 942 |
msgstr "" |
| 943 |
|
| 944 |
#. type: Plain text |
| 945 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 946 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 947 |
msgid "" |
| 948 |
"Within the child created by B<fork>(2), the B<MADV_WIPEONFORK> setting " |
| 949 |
"remains in place on the specified address range. This setting is cleared " |
| 950 |
"during B<execve>(2)." |
| 951 |
msgstr "" |
| 952 |
|
| 953 |
#. type: TP |
| 954 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 955 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 956 |
#, no-wrap |
| 957 |
msgid "B<MADV_KEEPONFORK> (since Linux 4.14)" |
| 958 |
msgstr "" |
| 959 |
|
| 960 |
#. commit d2cd9ede6e193dd7d88b6d27399e96229a551b19 |
| 961 |
#. type: Plain text |
| 962 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 963 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 964 |
msgid "Undo the effect of an earlier B<MADV_WIPEONFORK>." |
| 965 |
msgstr "" |
| 966 |
|
| 967 |
#. type: TP |
| 968 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 969 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 970 |
#, no-wrap |
| 971 |
msgid "B<MADV_COLD> (since Linux 5.4)" |
| 972 |
msgstr "" |
| 973 |
|
| 974 |
#. commit 9c276cc65a58faf98be8e56962745ec99ab87636 |
| 975 |
#. type: Plain text |
| 976 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 977 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 978 |
msgid "" |
| 979 |
"Deactivate a given range of pages. This will make the pages a more probable " |
| 980 |
"reclaim target should there be a memory pressure. This is a nondestructive " |
| 981 |
"operation. The advice might be ignored for some pages in the range when it " |
| 982 |
"is not applicable." |
| 983 |
msgstr "" |
| 984 |
|
| 985 |
#. type: TP |
| 986 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 987 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 988 |
#, no-wrap |
| 989 |
msgid "B<MADV_PAGEOUT> (since Linux 5.4)" |
| 990 |
msgstr "" |
| 991 |
|
| 992 |
#. commit 1a4e58cce84ee88129d5d49c064bd2852b481357 |
| 993 |
#. type: Plain text |
| 994 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 995 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 996 |
msgid "" |
| 997 |
"Reclaim a given range of pages. This is done to free up memory occupied by " |
| 998 |
"these pages. If a page is anonymous, it will be swapped out. If a page is " |
| 999 |
"file-backed and dirty, it will be written back to the backing storage. The " |
| 1000 |
"advice might be ignored for some pages in the range when it is not " |
| 1001 |
"applicable." |
| 1002 |
msgstr "" |
| 1003 |
|
| 1004 |
#. type: TP |
| 1005 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1006 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1007 |
#, no-wrap |
| 1008 |
msgid "B<MADV_POPULATE_READ> (since Linux 5.14)" |
| 1009 |
msgstr "" |
| 1010 |
|
| 1011 |
#. type: Plain text |
| 1012 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1013 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1014 |
msgid "" |
| 1015 |
"\"Populate (prefault) page tables readable, faulting in all pages in the " |
| 1016 |
"range just as if manually reading from each page; however, avoid the actual " |
| 1017 |
"memory access that would have been performed after handling the fault." |
| 1018 |
msgstr "" |
| 1019 |
|
| 1020 |
#. type: Plain text |
| 1021 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1022 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1023 |
msgid "" |
| 1024 |
"In contrast to B<MAP_POPULATE>, B<MADV_POPULATE_READ> does not hide errors, " |
| 1025 |
"can be applied to (parts of) existing mappings and will always populate " |
| 1026 |
"(prefault) page tables readable. One example use case is prefaulting a file " |
| 1027 |
"mapping, reading all file content from disk; however, pages won't be dirtied " |
| 1028 |
"and consequently won't have to be written back to disk when evicting the " |
| 1029 |
"pages from memory." |
| 1030 |
msgstr "" |
| 1031 |
|
| 1032 |
#. type: Plain text |
| 1033 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1034 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1035 |
msgid "" |
| 1036 |
"Depending on the underlying mapping, map the shared zeropage, preallocate " |
| 1037 |
"memory or read the underlying file; files with holes might or might not " |
| 1038 |
"preallocate blocks. If populating fails, a B<SIGBUS> signal is not " |
| 1039 |
"generated; instead, an error is returned." |
| 1040 |
msgstr "" |
| 1041 |
|
| 1042 |
#. type: Plain text |
| 1043 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1044 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1045 |
msgid "" |
| 1046 |
"If B<MADV_POPULATE_READ> succeeds, all page tables have been populated " |
| 1047 |
"(prefaulted) readable once. If B<MADV_POPULATE_READ> fails, some page " |
| 1048 |
"tables might have been populated." |
| 1049 |
msgstr "" |
| 1050 |
|
| 1051 |
#. type: Plain text |
| 1052 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1053 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1054 |
msgid "" |
| 1055 |
"B<MADV_POPULATE_READ> cannot be applied to mappings without read permissions " |
| 1056 |
"and special mappings, for example, mappings marked with kernel-internal " |
| 1057 |
"flags such as B<VM_PFNMAP> or B<VM_IO>, or secret memory regions created " |
| 1058 |
"using B<memfd_secret(2)>." |
| 1059 |
msgstr "" |
| 1060 |
|
| 1061 |
#. type: Plain text |
| 1062 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1063 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1064 |
msgid "" |
| 1065 |
"Note that with B<MADV_POPULATE_READ>, the process can be killed at any " |
| 1066 |
"moment when the system runs out of memory." |
| 1067 |
msgstr "" |
| 1068 |
|
| 1069 |
#. type: TP |
| 1070 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1071 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1072 |
#, no-wrap |
| 1073 |
msgid "B<MADV_POPULATE_WRITE> (since Linux 5.14)" |
| 1074 |
msgstr "" |
| 1075 |
|
| 1076 |
#. type: Plain text |
| 1077 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1078 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1079 |
msgid "" |
| 1080 |
"Populate (prefault) page tables writable, faulting in all pages in the range " |
| 1081 |
"just as if manually writing to each each page; however, avoid the actual " |
| 1082 |
"memory access that would have been performed after handling the fault." |
| 1083 |
msgstr "" |
| 1084 |
|
| 1085 |
#. type: Plain text |
| 1086 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1087 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1088 |
msgid "" |
| 1089 |
"In contrast to B<MAP_POPULATE>, MADV_POPULATE_WRITE does not hide errors, " |
| 1090 |
"can be applied to (parts of) existing mappings and will always populate " |
| 1091 |
"(prefault) page tables writable. One example use case is preallocating " |
| 1092 |
"memory, breaking any CoW (Copy on Write)." |
| 1093 |
msgstr "" |
| 1094 |
|
| 1095 |
#. type: Plain text |
| 1096 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1097 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1098 |
msgid "" |
| 1099 |
"Depending on the underlying mapping, preallocate memory or read the " |
| 1100 |
"underlying file; files with holes will preallocate blocks. If populating " |
| 1101 |
"fails, a B<SIGBUS> signal is not generated; instead, an error is returned." |
| 1102 |
msgstr "" |
| 1103 |
|
| 1104 |
#. type: Plain text |
| 1105 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1106 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1107 |
msgid "" |
| 1108 |
"If B<MADV_POPULATE_WRITE> succeeds, all page tables have been populated " |
| 1109 |
"(prefaulted) writable once. If B<MADV_POPULATE_WRITE> fails, some page " |
| 1110 |
"tables might have been populated." |
| 1111 |
msgstr "" |
| 1112 |
|
| 1113 |
#. type: Plain text |
| 1114 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1115 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1116 |
msgid "" |
| 1117 |
"B<MADV_POPULATE_WRITE> cannot be applied to mappings without write " |
| 1118 |
"permissions and special mappings, for example, mappings marked with kernel-" |
| 1119 |
"internal flags such as B<VM_PFNMAP> or B<VM_IO>, or secret memory regions " |
| 1120 |
"created using B<memfd_secret(2)>." |
| 1121 |
msgstr "" |
| 1122 |
|
| 1123 |
#. type: Plain text |
| 1124 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1125 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1126 |
msgid "" |
| 1127 |
"Note that with B<MADV_POPULATE_WRITE>, the process can be killed at any " |
| 1128 |
"moment when the system runs out of memory." |
| 1129 |
msgstr "" |
| 1130 |
|
| 1131 |
#. type: TP |
| 1132 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1133 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1134 |
#, no-wrap |
| 1135 |
msgid "B<MADV_GUARD_INSTALL> (since Linux 6.13)" |
| 1136 |
msgstr "" |
| 1137 |
|
| 1138 |
#. type: Plain text |
| 1139 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1140 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1141 |
msgid "" |
| 1142 |
"Install a lightweight guard region into the range specified by I<addr> and " |
| 1143 |
"I<size>, causing any read or write in the range to result in a B<SIGSEGV> " |
| 1144 |
"signal being raised." |
| 1145 |
msgstr "" |
| 1146 |
|
| 1147 |
#. type: Plain text |
| 1148 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1149 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1150 |
msgid "" |
| 1151 |
"If the region maps memory pages those mappings will be replaced as part of " |
| 1152 |
"the operation, though if B<MADV_GUARD_INSTALL> is applied to regions " |
| 1153 |
"containing pre-existing lightweight guard regions, they are left in place." |
| 1154 |
msgstr "" |
| 1155 |
|
| 1156 |
#. type: Plain text |
| 1157 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1158 |
#: opensuse-tumbleweed |
| 1159 |
msgid "" |
| 1160 |
"Prior to Linux 6.15, this operation was supported only for writable " |
| 1161 |
"anonymous private mappings. Since Linux 6.15, both anonymous and file-" |
| 1162 |
"backed mappings are supported, including read-only mappings." |
| 1163 |
msgstr "" |
| 1164 |
|
| 1165 |
#. type: Plain text |
| 1166 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1167 |
#: opensuse-tumbleweed |
| 1168 |
msgid "" |
| 1169 |
"The mapping must not be mlock'd, map hugetlb ranges, nor contain special " |
| 1170 |
"mappings. For example, mappings marked with kernel-internal flags such as " |
| 1171 |
"B<VM_PFNMAP> or B<VM_IO>, or secret memory regions created using " |
| 1172 |
"B<memfd_secret>(2)." |
| 1173 |
msgstr "" |
| 1174 |
|
| 1175 |
#. type: Plain text |
| 1176 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1177 |
#: opensuse-tumbleweed |
| 1178 |
msgid "" |
| 1179 |
"An B<EINVAL> error is returned if it is attempted on any other kind of " |
| 1180 |
"mapping." |
| 1181 |
msgstr "" |
| 1182 |
|
| 1183 |
#. type: Plain text |
| 1184 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1185 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1186 |
msgid "" |
| 1187 |
"This operation is more efficient than mapping a new region of memory " |
| 1188 |
"B<PROT_NONE>, as it does not require the establishment of new mappings. " |
| 1189 |
"Instead, regions of an existing mapping simply have their page tables " |
| 1190 |
"manipulated to establish the desired behavior. No additional memory is used." |
| 1191 |
msgstr "" |
| 1192 |
|
| 1193 |
#. type: Plain text |
| 1194 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1195 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1196 |
msgid "" |
| 1197 |
"Lightweight guard regions remain on fork (except for any parts which have " |
| 1198 |
"had B<MADV_WIPEONFORK> applied to them), and are not removed by " |
| 1199 |
"B<MADV_DONTNEED>, B<MADV_FREE>, B<MADV_PAGEOUT>, or B<MADV_COLD>." |
| 1200 |
msgstr "" |
| 1201 |
|
| 1202 |
#. type: Plain text |
| 1203 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1204 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1205 |
msgid "" |
| 1206 |
"Attempting to B<mlock>(2) lightweight guard regions will fail, as will " |
| 1207 |
"B<MADV_POPULATE_READ> or B<MADV_POPULATE_WRITE>." |
| 1208 |
msgstr "" |
| 1209 |
|
| 1210 |
#. type: Plain text |
| 1211 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1212 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1213 |
msgid "" |
| 1214 |
"If the mapping has its attributes changed, or is split or partially " |
| 1215 |
"unmapped, any existing guard regions remain in place (except if they are " |
| 1216 |
"unmapped)." |
| 1217 |
msgstr "" |
| 1218 |
|
| 1219 |
#. type: Plain text |
| 1220 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1221 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1222 |
msgid "" |
| 1223 |
"If a mapping is moved using B<mremap>(2), lightweight guard regions are " |
| 1224 |
"moved with it." |
| 1225 |
msgstr "" |
| 1226 |
|
| 1227 |
#. type: Plain text |
| 1228 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1229 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1230 |
msgid "" |
| 1231 |
"Lightweight guard regions are removed when unmapped, on process teardown, or " |
| 1232 |
"when the B<MADV_GUARD_REMOVE> operation is applied to them." |
| 1233 |
msgstr "" |
| 1234 |
|
| 1235 |
#. type: TP |
| 1236 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1237 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1238 |
#, no-wrap |
| 1239 |
msgid "B<MADV_GUARD_REMOVE> (since Linux 6.13)" |
| 1240 |
msgstr "" |
| 1241 |
|
| 1242 |
#. type: Plain text |
| 1243 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1244 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1245 |
msgid "" |
| 1246 |
"Remove any lightweight guard regions which exist in the range specified by " |
| 1247 |
"I<addr> and I<size>." |
| 1248 |
msgstr "" |
| 1249 |
|
| 1250 |
#. type: Plain text |
| 1251 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1252 |
#: opensuse-tumbleweed |
| 1253 |
msgid "" |
| 1254 |
"All mappings in the range other than lightweight guard regions are left in " |
| 1255 |
"place. The operation is supported on those mappings permitted by " |
| 1256 |
"B<MADV_GUARD_INSTALL> in addition to mlock()'d mappings, returning an " |
| 1257 |
"B<EINVAL> error otherwise." |
| 1258 |
msgstr "" |
| 1259 |
|
| 1260 |
#. type: Plain text |
| 1261 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1262 |
#: opensuse-tumbleweed |
| 1263 |
msgid "" |
| 1264 |
"When lightweight guard regions are removed, they act as empty regions of the " |
| 1265 |
"containing mapping. Therefore, anonymous private mappings become zero-fill-" |
| 1266 |
"on-demand pages, and file-backed mappings are repopulated with the memory " |
| 1267 |
"contents from the up-to-date contents of the underlying mapped file." |
| 1268 |
msgstr "" |
| 1269 |
|
| 1270 |
#. type: Plain text |
| 1271 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1272 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1273 |
msgid "" |
| 1274 |
"If any transparent huge pages are encountered in the operation, they are " |
| 1275 |
"left in place." |
| 1276 |
msgstr "" |
| 1277 |
|
| 1278 |
#. type: SH |
| 1279 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1280 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1281 |
#, no-wrap |
| 1282 |
msgid "RETURN VALUE" |
| 1283 |
msgstr "" |
| 1284 |
|
| 1285 |
#. type: Plain text |
| 1286 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1287 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1288 |
msgid "" |
| 1289 |
"On success, B<madvise>() returns zero. On error, it returns -1 and " |
| 1290 |
"I<errno> is set to indicate the error." |
| 1291 |
msgstr "" |
| 1292 |
|
| 1293 |
#. type: SH |
| 1294 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1295 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1296 |
#, no-wrap |
| 1297 |
msgid "ERRORS" |
| 1298 |
msgstr "" |
| 1299 |
|
| 1300 |
#. type: TP |
| 1301 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1302 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1303 |
#, no-wrap |
| 1304 |
msgid "B<EACCES>" |
| 1305 |
msgstr "" |
| 1306 |
|
| 1307 |
#. type: Plain text |
| 1308 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1309 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1310 |
msgid "" |
| 1311 |
"I<advice> is B<MADV_REMOVE>, but the specified address range is not a shared " |
| 1312 |
"writable mapping." |
| 1313 |
msgstr "" |
| 1314 |
|
| 1315 |
#. type: TP |
| 1316 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1317 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1318 |
#, no-wrap |
| 1319 |
msgid "B<EAGAIN>" |
| 1320 |
msgstr "" |
| 1321 |
|
| 1322 |
#. type: Plain text |
| 1323 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1324 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1325 |
msgid "A kernel resource was temporarily unavailable." |
| 1326 |
msgstr "" |
| 1327 |
|
| 1328 |
#. type: TP |
| 1329 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1330 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1331 |
#, no-wrap |
| 1332 |
msgid "B<EBADF>" |
| 1333 |
msgstr "" |
| 1334 |
|
| 1335 |
#. type: Plain text |
| 1336 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1337 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1338 |
msgid "The map exists, but the area maps something that isn't a file." |
| 1339 |
msgstr "" |
| 1340 |
|
| 1341 |
#. type: TP |
| 1342 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1343 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1344 |
#, no-wrap |
| 1345 |
msgid "B<EBUSY>" |
| 1346 |
msgstr "" |
| 1347 |
|
| 1348 |
#. type: Plain text |
| 1349 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1350 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1351 |
msgid "" |
| 1352 |
"(for B<MADV_COLLAPSE>) Could not charge hugepage to cgroup: cgroup limit " |
| 1353 |
"exceeded." |
| 1354 |
msgstr "" |
| 1355 |
|
| 1356 |
#. type: Plain text |
| 1357 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1358 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1359 |
msgid "" |
| 1360 |
"(for B<MADV_SOFT_OFFLINE>) Any pages within the specified address range " |
| 1361 |
"could not be offlined. This might occur if the page is currently in use or " |
| 1362 |
"locked." |
| 1363 |
msgstr "" |
| 1364 |
|
| 1365 |
#. type: TP |
| 1366 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1367 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1368 |
#, no-wrap |
| 1369 |
msgid "B<EFAULT>" |
| 1370 |
msgstr "" |
| 1371 |
|
| 1372 |
#. type: Plain text |
| 1373 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1374 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1375 |
msgid "" |
| 1376 |
"I<advice> is B<MADV_POPULATE_READ> or B<MADV_POPULATE_WRITE>, and populating " |
| 1377 |
"(prefaulting) page tables failed because a B<SIGBUS> would have been " |
| 1378 |
"generated on actual memory access and the reason is not a HW poisoned page " |
| 1379 |
"(HW poisoned pages can, for example, be created using the B<MADV_HWPOISON> " |
| 1380 |
"flag described elsewhere in this page)." |
| 1381 |
msgstr "" |
| 1382 |
|
| 1383 |
#. type: TP |
| 1384 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1385 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1386 |
#, no-wrap |
| 1387 |
msgid "B<EINVAL>" |
| 1388 |
msgstr "" |
| 1389 |
|
| 1390 |
#. .I size |
| 1391 |
#. is zero, |
| 1392 |
#. type: Plain text |
| 1393 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1394 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1395 |
msgid "I<addr> is not page-aligned or I<size> is negative." |
| 1396 |
msgstr "" |
| 1397 |
|
| 1398 |
#. type: Plain text |
| 1399 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1400 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1401 |
msgid "I<advice> is not a valid." |
| 1402 |
msgstr "" |
| 1403 |
|
| 1404 |
#. type: Plain text |
| 1405 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1406 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1407 |
msgid "" |
| 1408 |
"I<advice> is B<MADV_COLD> or B<MADV_PAGEOUT> and the specified address range " |
| 1409 |
"includes locked, Huge TLB pages, or B<VM_PFNMAP> pages." |
| 1410 |
msgstr "" |
| 1411 |
|
| 1412 |
#. type: Plain text |
| 1413 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1414 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1415 |
msgid "" |
| 1416 |
"I<advice> is B<MADV_DONTNEED> or B<MADV_REMOVE> and the specified address " |
| 1417 |
"range includes locked, Huge TLB pages, or B<VM_PFNMAP> pages." |
| 1418 |
msgstr "" |
| 1419 |
|
| 1420 |
#. type: Plain text |
| 1421 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1422 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1423 |
msgid "" |
| 1424 |
"I<advice> is B<MADV_MERGEABLE> or B<MADV_UNMERGEABLE>, but the kernel was " |
| 1425 |
"not configured with B<CONFIG_KSM>." |
| 1426 |
msgstr "" |
| 1427 |
|
| 1428 |
#. type: Plain text |
| 1429 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1430 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1431 |
msgid "" |
| 1432 |
"I<advice> is B<MADV_FREE> or B<MADV_WIPEONFORK> but the specified address " |
| 1433 |
"range includes file, Huge TLB, B<MAP_SHARED>, or B<VM_PFNMAP> ranges." |
| 1434 |
msgstr "" |
| 1435 |
|
| 1436 |
#. type: Plain text |
| 1437 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1438 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1439 |
msgid "" |
| 1440 |
"I<advice> is B<MADV_POPULATE_READ> or B<MADV_POPULATE_WRITE>, but the " |
| 1441 |
"specified address range includes ranges with insufficient permissions or " |
| 1442 |
"special mappings, for example, mappings marked with kernel-internal flags " |
| 1443 |
"such a B<VM_IO> or B<VM_PFNMAP>, or secret memory regions created using " |
| 1444 |
"B<memfd_secret(2)>." |
| 1445 |
msgstr "" |
| 1446 |
|
| 1447 |
#. type: Plain text |
| 1448 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1449 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1450 |
msgid "" |
| 1451 |
"I<advice> is B<MADV_GUARD_INSTALL> or B<MADV_GUARD_REMOVE>, but the " |
| 1452 |
"specified address range contains an unsupported mapping." |
| 1453 |
msgstr "" |
| 1454 |
|
| 1455 |
#. type: TP |
| 1456 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1457 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1458 |
#, no-wrap |
| 1459 |
msgid "B<EIO>" |
| 1460 |
msgstr "" |
| 1461 |
|
| 1462 |
#. type: Plain text |
| 1463 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1464 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1465 |
msgid "" |
| 1466 |
"(for B<MADV_WILLNEED>) Paging in this area would exceed the process's " |
| 1467 |
"maximum resident set size." |
| 1468 |
msgstr "" |
| 1469 |
|
| 1470 |
#. type: TP |
| 1471 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1472 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1473 |
#, no-wrap |
| 1474 |
msgid "B<ENOMEM>" |
| 1475 |
msgstr "" |
| 1476 |
|
| 1477 |
#. type: Plain text |
| 1478 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1479 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1480 |
msgid "(for B<MADV_WILLNEED>) Not enough memory: paging in failed." |
| 1481 |
msgstr "" |
| 1482 |
|
| 1483 |
#. type: Plain text |
| 1484 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1485 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1486 |
msgid "(for B<MADV_COLLAPSE>) Not enough memory: could not allocate hugepage." |
| 1487 |
msgstr "" |
| 1488 |
|
| 1489 |
#. type: Plain text |
| 1490 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1491 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1492 |
msgid "" |
| 1493 |
"Addresses in the specified range are not currently mapped, or are outside " |
| 1494 |
"the address space of the process." |
| 1495 |
msgstr "" |
| 1496 |
|
| 1497 |
#. type: Plain text |
| 1498 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1499 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1500 |
msgid "" |
| 1501 |
"I<advice> is B<MADV_POPULATE_READ> or B<MADV_POPULATE_WRITE>, and populating " |
| 1502 |
"(prefaulting) page tables failed because there was not enough memory." |
| 1503 |
msgstr "" |
| 1504 |
|
| 1505 |
#. type: TP |
| 1506 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1507 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1508 |
#, no-wrap |
| 1509 |
msgid "B<EPERM>" |
| 1510 |
msgstr "" |
| 1511 |
|
| 1512 |
#. type: Plain text |
| 1513 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1514 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1515 |
msgid "" |
| 1516 |
"I<advice> is B<MADV_HWPOISON>, but the caller does not have the " |
| 1517 |
"B<CAP_SYS_ADMIN> capability." |
| 1518 |
msgstr "" |
| 1519 |
|
| 1520 |
#. type: TP |
| 1521 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1522 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1523 |
#, no-wrap |
| 1524 |
msgid "B<EHWPOISON>" |
| 1525 |
msgstr "" |
| 1526 |
|
| 1527 |
#. type: Plain text |
| 1528 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1529 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1530 |
msgid "" |
| 1531 |
"I<advice> is B<MADV_POPULATE_READ> or B<MADV_POPULATE_WRITE>, and populating " |
| 1532 |
"(prefaulting) page tables failed because a HW poisoned page (HW poisoned " |
| 1533 |
"pages can, for example, be created using the B<MADV_HWPOISON> flag described " |
| 1534 |
"elsewhere in this page) was encountered." |
| 1535 |
msgstr "" |
| 1536 |
|
| 1537 |
#. type: SH |
| 1538 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1539 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1540 |
#, no-wrap |
| 1541 |
msgid "VERSIONS" |
| 1542 |
msgstr "" |
| 1543 |
|
| 1544 |
#. type: Plain text |
| 1545 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1546 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1547 |
msgid "" |
| 1548 |
"Versions of this system call, implementing a wide variety of I<advice> " |
| 1549 |
"values, exist on many other implementations. Other implementations " |
| 1550 |
"typically implement at least the flags listed above under I<Conventional " |
| 1551 |
"advice flags>, albeit with some variation in semantics." |
| 1552 |
msgstr "" |
| 1553 |
|
| 1554 |
#. type: Plain text |
| 1555 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1556 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1557 |
msgid "" |
| 1558 |
"POSIX.1-2001 describes B<posix_madvise>(3) with constants " |
| 1559 |
"B<POSIX_MADV_NORMAL>, B<POSIX_MADV_RANDOM>, B<POSIX_MADV_SEQUENTIAL>, " |
| 1560 |
"B<POSIX_MADV_WILLNEED>, and B<POSIX_MADV_DONTNEED>, and so on, with behavior " |
| 1561 |
"close to the similarly named flags listed above." |
| 1562 |
msgstr "" |
| 1563 |
|
| 1564 |
#. type: SS |
| 1565 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1566 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1567 |
#, no-wrap |
| 1568 |
msgid "Linux" |
| 1569 |
msgstr "" |
| 1570 |
|
| 1571 |
#. type: Plain text |
| 1572 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1573 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1574 |
msgid "" |
| 1575 |
"The Linux implementation requires that the address I<addr> be page-aligned, " |
| 1576 |
"and allows I<size> to be zero. If there are some parts of the specified " |
| 1577 |
"address range that are not mapped, the Linux version of B<madvise>() " |
| 1578 |
"ignores them and applies the call to the rest (but returns B<ENOMEM> from " |
| 1579 |
"the system call, as it should)." |
| 1580 |
msgstr "" |
| 1581 |
|
| 1582 |
#. type: Plain text |
| 1583 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1584 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1585 |
msgid "" |
| 1586 |
"I<madvise(0,\\ 0,\\ advice)> will return zero iff I<advice> is supported by " |
| 1587 |
"the kernel and can be relied on to probe for support." |
| 1588 |
msgstr "" |
| 1589 |
|
| 1590 |
#. type: SH |
| 1591 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1592 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1593 |
#, no-wrap |
| 1594 |
msgid "STANDARDS" |
| 1595 |
msgstr "" |
| 1596 |
|
| 1597 |
#. type: Plain text |
| 1598 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1599 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1600 |
msgid "None." |
| 1601 |
msgstr "" |
| 1602 |
|
| 1603 |
#. type: SH |
| 1604 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1605 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1606 |
#, no-wrap |
| 1607 |
msgid "HISTORY" |
| 1608 |
msgstr "" |
| 1609 |
|
| 1610 |
#. type: Plain text |
| 1611 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1612 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1613 |
msgid "First appeared in 4.4BSD." |
| 1614 |
msgstr "" |
| 1615 |
|
| 1616 |
#. commit d3ac21cacc24790eb45d735769f35753f5b56ceb |
| 1617 |
#. type: Plain text |
| 1618 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1619 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1620 |
msgid "" |
| 1621 |
"Since Linux 3.18, support for this system call is optional, depending on the " |
| 1622 |
"setting of the B<CONFIG_ADVISE_SYSCALLS> configuration option." |
| 1623 |
msgstr "" |
| 1624 |
|
| 1625 |
#. type: SH |
| 1626 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1627 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1628 |
#, no-wrap |
| 1629 |
msgid "SEE ALSO" |
| 1630 |
msgstr "" |
| 1631 |
|
| 1632 |
#. type: Plain text |
| 1633 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1634 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1635 |
msgid "" |
| 1636 |
"B<getrlimit>(2), B<memfd_secret>(2), B<mincore>(2), B<mmap>(2), " |
| 1637 |
"B<mprotect>(2), B<msync>(2), B<munmap>(2), B<prctl>(2), " |
| 1638 |
"B<process_madvise>(2), B<posix_madvise>(3), B<core>(5)" |
| 1639 |
msgstr "" |
| 1640 |
|
| 1641 |
#. type: TH |
| 1642 |
#: debian-trixie |
| 1643 |
#, no-wrap |
| 1644 |
msgid "2024-05-02" |
| 1645 |
msgstr "" |
| 1646 |
|
| 1647 |
#. type: TH |
| 1648 |
#: debian-trixie |
| 1649 |
#, no-wrap |
| 1650 |
msgid "Linux man-pages 6.9.1" |
| 1651 |
msgstr "" |
| 1652 |
|
| 1653 |
#. type: Plain text |
| 1654 |
#: debian-trixie |
| 1655 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 1656 |
msgstr "" |
| 1657 |
|
| 1658 |
#. type: Plain text |
| 1659 |
#: debian-trixie |
| 1660 |
#, no-wrap |
| 1661 |
msgid "B<int madvise(void >I<addr>B<[.>I<length>B<], size_t >I<length>B<, int >I<advice>B<);>\n" |
| 1662 |
msgstr "" |
| 1663 |
|
| 1664 |
#. type: Plain text |
| 1665 |
#: debian-trixie |
| 1666 |
msgid "" |
| 1667 |
"The B<madvise>() system call is used to give advice or directions to the " |
| 1668 |
"kernel about the address range beginning at address I<addr> and with size " |
| 1669 |
"I<length>. B<madvise>() only operates on whole pages, therefore I<addr> " |
| 1670 |
"must be page-aligned. The value of I<length> is rounded up to a multiple of " |
| 1671 |
"page size. In most cases, the goal of such advice is to improve system or " |
| 1672 |
"application performance." |
| 1673 |
msgstr "" |
| 1674 |
|
| 1675 |
# |
| 1676 |
#. ====================================================================== |
| 1677 |
#. type: Plain text |
| 1678 |
#: debian-trixie |
| 1679 |
msgid "" |
| 1680 |
"Support for Huge TLB pages was added in Linux v5.18. Addresses within a " |
| 1681 |
"mapping backed by Huge TLB pages must be aligned to the underlying Huge TLB " |
| 1682 |
"page size, and the range length is rounded up to a multiple of the " |
| 1683 |
"underlying Huge TLB page size." |
| 1684 |
msgstr "" |
| 1685 |
|
| 1686 |
#. type: Plain text |
| 1687 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1688 |
msgid "Support for the Huge TLB filesystem was added in Linux v4.3." |
| 1689 |
msgstr "" |
| 1690 |
|
| 1691 |
#. commit 9893e49d64a4874ea67849ee2cfbf3f3d6817573 |
| 1692 |
#. type: Plain text |
| 1693 |
#: debian-trixie |
| 1694 |
msgid "" |
| 1695 |
"Poison the pages in the range specified by I<addr> and I<length> and handle " |
| 1696 |
"subsequent references to those pages like a hardware memory corruption. " |
| 1697 |
"This operation is available only for privileged (B<CAP_SYS_ADMIN>) " |
| 1698 |
"processes. This operation may result in the calling process receiving a " |
| 1699 |
"B<SIGBUS> and the page being unmapped." |
| 1700 |
msgstr "" |
| 1701 |
|
| 1702 |
#. commit f8af4da3b4c14e7267c4ffb952079af3912c51c5 |
| 1703 |
#. type: Plain text |
| 1704 |
#: debian-trixie |
| 1705 |
msgid "" |
| 1706 |
"Enable Kernel Samepage Merging (KSM) for the pages in the range specified by " |
| 1707 |
"I<addr> and I<length>. The kernel regularly scans those areas of user " |
| 1708 |
"memory that have been marked as mergeable, looking for pages with identical " |
| 1709 |
"content. These are replaced by a single write-protected page (which is " |
| 1710 |
"automatically copied if a process later wants to update the content of the " |
| 1711 |
"page). KSM merges only private anonymous pages (see B<mmap>(2))." |
| 1712 |
msgstr "" |
| 1713 |
|
| 1714 |
#. type: Plain text |
| 1715 |
#: debian-trixie |
| 1716 |
msgid "" |
| 1717 |
"Undo the effect of an earlier B<MADV_MERGEABLE> operation on the specified " |
| 1718 |
"address range; KSM unmerges whatever pages it had merged in the address " |
| 1719 |
"range specified by I<addr> and I<length>." |
| 1720 |
msgstr "" |
| 1721 |
|
| 1722 |
#. commit afcf938ee0aac4ef95b1a23bac704c6fbeb26de6 |
| 1723 |
#. type: Plain text |
| 1724 |
#: debian-trixie |
| 1725 |
msgid "" |
| 1726 |
"Soft offline the pages in the range specified by I<addr> and I<length>. The " |
| 1727 |
"memory of each page in the specified range is preserved (i.e., when next " |
| 1728 |
"accessed, the same content will be visible, but in a new physical page " |
| 1729 |
"frame), and the original page is offlined (i.e., no longer used, and taken " |
| 1730 |
"out of normal memory management). The effect of the B<MADV_SOFT_OFFLINE> " |
| 1731 |
"operation is invisible to (i.e., does not change the semantics of) the " |
| 1732 |
"calling process." |
| 1733 |
msgstr "" |
| 1734 |
|
| 1735 |
#. commit 0af4e98b6b095c74588af04872f83d333c958c32 |
| 1736 |
#. http://lwn.net/Articles/358904/ |
| 1737 |
#. https://lwn.net/Articles/423584/ |
| 1738 |
#. type: Plain text |
| 1739 |
#: debian-trixie |
| 1740 |
msgid "" |
| 1741 |
"Enable Transparent Huge Pages (THP) for pages in the range specified by " |
| 1742 |
"I<addr> and I<length>. The kernel will regularly scan the areas marked as " |
| 1743 |
"huge page candidates to replace them with huge pages. The kernel will also " |
| 1744 |
"allocate huge pages directly when the region is naturally aligned to the " |
| 1745 |
"huge page size (see B<posix_memalign>(2))." |
| 1746 |
msgstr "" |
| 1747 |
|
| 1748 |
#. type: Plain text |
| 1749 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1750 |
msgid "" |
| 1751 |
"The VMA must not be marked B<VM_NOHUGEPAGE>, B<VM_HUGETLB>, B<VM_IO>, " |
| 1752 |
"B<VM_DONTEXPAND>, B<VM_MIXEDMAP>, or B<VM_PFNMAP>, nor can it be stack " |
| 1753 |
"memory or backed by a DAX-enabled device (unless the DAX device is hot-" |
| 1754 |
"plugged as System RAM). The process must also not have " |
| 1755 |
"B<PR_SET_THP_DISABLE> set (see B<prctl>(2))." |
| 1756 |
msgstr "" |
| 1757 |
|
| 1758 |
#. type: Plain text |
| 1759 |
#: debian-trixie |
| 1760 |
msgid "" |
| 1761 |
"Ensures that memory in the address range specified by I<addr> and I<length> " |
| 1762 |
"will not be backed by transparent hugepages." |
| 1763 |
msgstr "" |
| 1764 |
|
| 1765 |
#. commit 909af768e88867016f427264ae39d27a57b6a8ed |
| 1766 |
#. commit accb61fe7bb0f5c2a4102239e4981650f9048519 |
| 1767 |
#. type: Plain text |
| 1768 |
#: debian-trixie |
| 1769 |
msgid "" |
| 1770 |
"Exclude from a core dump those pages in the range specified by I<addr> and " |
| 1771 |
"I<length>. This is useful in applications that have large areas of memory " |
| 1772 |
"that are known not to be useful in a core dump. The effect of " |
| 1773 |
"B<MADV_DONTDUMP> takes precedence over the bit mask that is set via the I</" |
| 1774 |
"proc/>pidI</coredump_filter> file (see B<core>(5))." |
| 1775 |
msgstr "" |
| 1776 |
|
| 1777 |
#. type: Plain text |
| 1778 |
#: debian-trixie |
| 1779 |
msgid "" |
| 1780 |
"The application no longer requires the pages in the range specified by " |
| 1781 |
"I<addr> and I<len>. The kernel can thus free these pages, but the freeing " |
| 1782 |
"could be delayed until memory pressure occurs. For each of the pages that " |
| 1783 |
"has been marked to be freed but has not yet been freed, the free operation " |
| 1784 |
"will be canceled if the caller writes into the page. After a successful " |
| 1785 |
"B<MADV_FREE> operation, any stale data (i.e., dirty, unwritten pages) will " |
| 1786 |
"be lost when the kernel frees the pages. However, subsequent writes to " |
| 1787 |
"pages in the range will succeed and then kernel cannot free those dirtied " |
| 1788 |
"pages, so that the caller can always see just written data. If there is no " |
| 1789 |
"subsequent write, the kernel can free the pages at any time. Once pages in " |
| 1790 |
"the range have been freed, the caller will see zero-fill-on-demand pages " |
| 1791 |
"upon subsequent page references." |
| 1792 |
msgstr "" |
| 1793 |
|
| 1794 |
#. .I length |
| 1795 |
#. is zero, |
| 1796 |
#. type: Plain text |
| 1797 |
#: debian-trixie |
| 1798 |
msgid "I<addr> is not page-aligned or I<length> is negative." |
| 1799 |
msgstr "" |
| 1800 |
|
| 1801 |
#. type: Plain text |
| 1802 |
#: debian-trixie |
| 1803 |
msgid "" |
| 1804 |
"The Linux implementation requires that the address I<addr> be page-aligned, " |
| 1805 |
"and allows I<length> to be zero. If there are some parts of the specified " |
| 1806 |
"address range that are not mapped, the Linux version of B<madvise>() " |
| 1807 |
"ignores them and applies the call to the rest (but returns B<ENOMEM> from " |
| 1808 |
"the system call, as it should)." |
| 1809 |
msgstr "" |
| 1810 |
|
| 1811 |
#. type: TH |
| 1812 |
#: fedora-44 fedora-rawhide |
| 1813 |
#, no-wrap |
| 1814 |
msgid "2024-12-23" |
| 1815 |
msgstr "" |
| 1816 |
|
| 1817 |
#. type: TH |
| 1818 |
#: fedora-44 fedora-rawhide |
| 1819 |
#, no-wrap |
| 1820 |
msgid "Linux man-pages 6.13" |
| 1821 |
msgstr "" |
| 1822 |
|
| 1823 |
#. type: Plain text |
| 1824 |
#: fedora-44 fedora-rawhide |
| 1825 |
#, no-wrap |
| 1826 |
msgid "B<int madvise(void >I<addr>B<[.>I<size>B<], size_t >I<size>B<, int >I<advice>B<);>\n" |
| 1827 |
msgstr "" |
| 1828 |
|
| 1829 |
# |
| 1830 |
#. ====================================================================== |
| 1831 |
#. type: Plain text |
| 1832 |
#: fedora-44 fedora-rawhide |
| 1833 |
msgid "" |
| 1834 |
"Support for Huge TLB pages was added in Linux v5.18. Addresses within a " |
| 1835 |
"mapping backed by Huge TLB pages must be aligned to the underlying Huge TLB " |
| 1836 |
"page size, and the range size is rounded up to a multiple of the underlying " |
| 1837 |
"Huge TLB page size." |
| 1838 |
msgstr "" |
| 1839 |
|
| 1840 |
#. type: Plain text |
| 1841 |
#: fedora-44 fedora-rawhide |
| 1842 |
msgid "" |
| 1843 |
"This operation is supported only for writable anonymous private mappings " |
| 1844 |
"which have not been mlock'd. An B<EINVAL> error is returned if it is " |
| 1845 |
"attempted on any other kind of mapping." |
| 1846 |
msgstr "" |
| 1847 |
|
| 1848 |
#. type: Plain text |
| 1849 |
#: fedora-44 fedora-rawhide |
| 1850 |
msgid "" |
| 1851 |
"All mappings in the range other than lightweight guard regions are left in " |
| 1852 |
"place (including mlock'd mappings). The operation is, however, valid only " |
| 1853 |
"for writable anonymous private mappings, returning an B<EINVAL> error " |
| 1854 |
"otherwise." |
| 1855 |
msgstr "" |
| 1856 |
|
| 1857 |
#. type: Plain text |
| 1858 |
#: fedora-44 fedora-rawhide |
| 1859 |
msgid "" |
| 1860 |
"When lightweight guard regions are removed, they act as empty regions of the " |
| 1861 |
"containing mapping. Since only writable anonymous private mappings are " |
| 1862 |
"supported, they therefore become zero-fill-on-demand pages." |
| 1863 |
msgstr "" |
| 1864 |
|
| 1865 |
#. type: TH |
| 1866 |
#: mageia-cauldron |
| 1867 |
#, no-wrap |
| 1868 |
msgid "Linux man-pages 6.17" |
| 1869 |
msgstr "" |
| 1870 |
|
| 1871 |
#. type: TH |
| 1872 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1873 |
#, no-wrap |
| 1874 |
msgid "Linux man-pages (unreleased)" |
| 1875 |
msgstr "" |