| 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 "mbind" |
| 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 "mbind - set memory policy for a memory range" |
| 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 "" |
| 63 |
"NUMA (Non-Uniform Memory Access) policy library (I<libnuma>,\\ I<-lnuma>)" |
| 64 |
msgstr "" |
| 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 "SYNOPSIS" |
| 71 |
msgstr "" |
| 72 |
|
| 73 |
#. type: Plain text |
| 74 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 75 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 76 |
#, no-wrap |
| 77 |
msgid "B<#include E<lt>numaif.hE<gt>>\n" |
| 78 |
msgstr "" |
| 79 |
|
| 80 |
#. type: Plain text |
| 81 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 82 |
#: opensuse-tumbleweed |
| 83 |
#, no-wrap |
| 84 |
msgid "" |
| 85 |
"B<long mbind(>unsigned long size, unsigned long maxnode;\n" |
| 86 |
"B< void >I<addr>B<[>I<size>B<], unsigned long >I<size>B<, int >I<mode>B<,>\n" |
| 87 |
"B< const unsigned long >I<nodemask>B<[(>I<maxnode>B< + ULONG_WIDTH - 1)>\n" |
| 88 |
"B</ ULONG_WIDTH],>\n" |
| 89 |
"B< unsigned long >I<maxnode>B<, unsigned int >I<flags>B<);>\n" |
| 90 |
msgstr "" |
| 91 |
|
| 92 |
#. type: SH |
| 93 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 94 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 95 |
#, no-wrap |
| 96 |
msgid "DESCRIPTION" |
| 97 |
msgstr "" |
| 98 |
|
| 99 |
#. type: Plain text |
| 100 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 101 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 102 |
msgid "" |
| 103 |
"B<mbind>() sets the NUMA memory policy, which consists of a policy mode and " |
| 104 |
"zero or more nodes, for the memory range starting with I<addr> and " |
| 105 |
"continuing for I<size> bytes. The memory policy defines from which node " |
| 106 |
"memory is allocated." |
| 107 |
msgstr "" |
| 108 |
|
| 109 |
#. type: Plain text |
| 110 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 111 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 112 |
msgid "" |
| 113 |
"If the memory range specified by the I<addr> and I<size> arguments includes " |
| 114 |
"an \"anonymous\" region of memory\\[em]that is a region of memory created " |
| 115 |
"using the B<mmap>(2) system call with the B<MAP_ANONYMOUS>\\[em]or a memory-" |
| 116 |
"mapped file, mapped using the B<mmap>(2) system call with the " |
| 117 |
"B<MAP_PRIVATE> flag, pages will be allocated only according to the specified " |
| 118 |
"policy when the application writes (stores) to the page. For anonymous " |
| 119 |
"regions, an initial read access will use a shared page in the kernel " |
| 120 |
"containing all zeros. For a file mapped with B<MAP_PRIVATE>, an initial " |
| 121 |
"read access will allocate pages according to the memory policy of the thread " |
| 122 |
"that causes the page to be allocated. This may not be the thread that " |
| 123 |
"called B<mbind>()." |
| 124 |
msgstr "" |
| 125 |
|
| 126 |
#. type: Plain text |
| 127 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 128 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 129 |
msgid "" |
| 130 |
"The specified policy will be ignored for any B<MAP_SHARED> mappings in the " |
| 131 |
"specified memory range. Rather the pages will be allocated according to the " |
| 132 |
"memory policy of the thread that caused the page to be allocated. Again, " |
| 133 |
"this may not be the thread that called B<mbind>()." |
| 134 |
msgstr "" |
| 135 |
|
| 136 |
#. type: Plain text |
| 137 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 138 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 139 |
msgid "" |
| 140 |
"If the specified memory range includes a shared memory region created using " |
| 141 |
"the B<shmget>(2) system call and attached using the B<shmat>(2) system " |
| 142 |
"call, pages allocated for the anonymous or shared memory region will be " |
| 143 |
"allocated according to the policy specified, regardless of which process " |
| 144 |
"attached to the shared memory segment causes the allocation. If, however, " |
| 145 |
"the shared memory region was created with the B<SHM_HUGETLB> flag, the huge " |
| 146 |
"pages will be allocated according to the policy specified only if the page " |
| 147 |
"allocation is caused by the process that calls B<mbind>() for that region." |
| 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 |
"By default, B<mbind>() has an effect only for new allocations; if the pages " |
| 155 |
"inside the range have been already touched before setting the policy, then " |
| 156 |
"the policy has no effect. This default behavior may be overridden by the " |
| 157 |
"B<MPOL_MF_MOVE> and B<MPOL_MF_MOVE_ALL> flags described below." |
| 158 |
msgstr "" |
| 159 |
|
| 160 |
#. type: Plain text |
| 161 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 162 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 163 |
msgid "" |
| 164 |
"The I<mode> argument must specify one of B<MPOL_DEFAULT>, B<MPOL_BIND>, " |
| 165 |
"B<MPOL_INTERLEAVE>, B<MPOL_WEIGHTED_INTERLEAVE>, B<MPOL_PREFERRED>, " |
| 166 |
"B<MPOL_PREFERRED_MANY>, or B<MPOL_LOCAL> (which are described in detail " |
| 167 |
"below). All policy modes except B<MPOL_DEFAULT> require the caller to " |
| 168 |
"specify the node or nodes to which the mode applies, via the I<nodemask> " |
| 169 |
"argument." |
| 170 |
msgstr "" |
| 171 |
|
| 172 |
#. type: Plain text |
| 173 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 174 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 175 |
msgid "" |
| 176 |
"The I<mode> argument may also include an optional I<mode flag>. The " |
| 177 |
"supported I<mode flags> are:" |
| 178 |
msgstr "" |
| 179 |
|
| 180 |
#. type: TP |
| 181 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 182 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 183 |
#, no-wrap |
| 184 |
msgid "B<MPOL_F_NUMA_BALANCING> (since Linux 5.15)" |
| 185 |
msgstr "" |
| 186 |
|
| 187 |
#. commit bda420b985054a3badafef23807c4b4fa38a3dff |
| 188 |
#. commit 6d2aec9e123bb9c49cb5c7fc654f25f81e688e8c |
| 189 |
#. type: Plain text |
| 190 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 191 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 192 |
msgid "" |
| 193 |
"When I<mode> is B<MPOL_BIND>, enable the kernel NUMA balancing for the task " |
| 194 |
"if it is supported by the kernel. If the flag isn't supported by the " |
| 195 |
"kernel, or is used with I<mode> other than B<MPOL_BIND>, -1 is returned and " |
| 196 |
"I<errno> is set to B<EINVAL>." |
| 197 |
msgstr "" |
| 198 |
|
| 199 |
#. type: TP |
| 200 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 201 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 202 |
#, no-wrap |
| 203 |
msgid "B<MPOL_F_STATIC_NODES> (since Linux-2.6.26)" |
| 204 |
msgstr "" |
| 205 |
|
| 206 |
#. type: Plain text |
| 207 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 208 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 209 |
msgid "" |
| 210 |
"A nonempty I<nodemask> specifies physical node IDs. Linux does not remap " |
| 211 |
"the I<nodemask> when the thread moves to a different cpuset context, nor " |
| 212 |
"when the set of nodes allowed by the thread's current cpuset context changes." |
| 213 |
msgstr "" |
| 214 |
|
| 215 |
#. type: TP |
| 216 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 217 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 218 |
#, no-wrap |
| 219 |
msgid "B<MPOL_F_RELATIVE_NODES> (since Linux-2.6.26)" |
| 220 |
msgstr "" |
| 221 |
|
| 222 |
#. type: Plain text |
| 223 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 224 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 225 |
msgid "" |
| 226 |
"A nonempty I<nodemask> specifies node IDs that are relative to the set of " |
| 227 |
"node IDs allowed by the thread's current cpuset." |
| 228 |
msgstr "" |
| 229 |
|
| 230 |
#. type: Plain text |
| 231 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 232 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 233 |
msgid "" |
| 234 |
"I<nodemask> points to a bit mask of nodes containing up to I<maxnode> bits. " |
| 235 |
"The bit mask size is rounded to the next multiple of I<sizeof(unsigned " |
| 236 |
"long)>, but the kernel will use bits only up to I<maxnode>. A NULL value of " |
| 237 |
"I<nodemask> or a I<maxnode> value of zero specifies the empty set of nodes. " |
| 238 |
"If the value of I<maxnode> is zero, the I<nodemask> argument is ignored. " |
| 239 |
"Where a I<nodemask> is required, it must contain at least one node that is " |
| 240 |
"on-line, allowed by the thread's current cpuset context (unless the " |
| 241 |
"B<MPOL_F_STATIC_NODES> mode flag is specified), and contains memory." |
| 242 |
msgstr "" |
| 243 |
|
| 244 |
#. type: Plain text |
| 245 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 246 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 247 |
msgid "The I<mode> argument must include one of the following values:" |
| 248 |
msgstr "" |
| 249 |
|
| 250 |
#. type: TP |
| 251 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 252 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 253 |
#, no-wrap |
| 254 |
msgid "B<MPOL_DEFAULT>" |
| 255 |
msgstr "" |
| 256 |
|
| 257 |
#. type: Plain text |
| 258 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 259 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 260 |
msgid "" |
| 261 |
"This mode requests that any nondefault policy be removed, restoring default " |
| 262 |
"behavior. When applied to a range of memory via B<mbind>(), this means to " |
| 263 |
"use the thread memory policy, which may have been set with " |
| 264 |
"B<set_mempolicy>(2). If the mode of the thread memory policy is also " |
| 265 |
"B<MPOL_DEFAULT>, the system-wide default policy will be used. The system-" |
| 266 |
"wide default policy allocates pages on the node of the CPU that triggers the " |
| 267 |
"allocation. For B<MPOL_DEFAULT>, the I<nodemask> and I<maxnode> arguments " |
| 268 |
"must be specify the empty set of nodes." |
| 269 |
msgstr "" |
| 270 |
|
| 271 |
#. type: TP |
| 272 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 273 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 274 |
#, no-wrap |
| 275 |
msgid "B<MPOL_BIND>" |
| 276 |
msgstr "" |
| 277 |
|
| 278 |
#. commit 19770b32609b6bf97a3dece2529089494cbfc549 |
| 279 |
#. type: Plain text |
| 280 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 281 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 282 |
msgid "" |
| 283 |
"This mode specifies a strict policy that restricts memory allocation to the " |
| 284 |
"nodes specified in I<nodemask>. If I<nodemask> specifies more than one " |
| 285 |
"node, page allocations will come from the node with sufficient free memory " |
| 286 |
"that is closest to the node where the allocation takes place. Pages will " |
| 287 |
"not be allocated from any node not specified in the IR nodemask . (Before " |
| 288 |
"Linux 2.6.26, page allocations came from the node with the lowest numeric " |
| 289 |
"node ID first, until that node contained no free memory. Allocations then " |
| 290 |
"came from the node with the next highest node ID specified in I<nodemask> " |
| 291 |
"and so forth, until none of the specified nodes contained free memory.)" |
| 292 |
msgstr "" |
| 293 |
|
| 294 |
#. type: TP |
| 295 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 296 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 297 |
#, no-wrap |
| 298 |
msgid "B<MPOL_INTERLEAVE>" |
| 299 |
msgstr "" |
| 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 |
"This mode specifies that page allocations be interleaved across the set of " |
| 306 |
"nodes specified in I<nodemask>. This optimizes for bandwidth instead of " |
| 307 |
"latency by spreading out pages and memory accesses to those pages across " |
| 308 |
"multiple nodes. To be effective the memory area should be fairly large, at " |
| 309 |
"least 1\\ MB or bigger with a fairly uniform access pattern. Accesses to a " |
| 310 |
"single page of the area will still be limited to the memory bandwidth of a " |
| 311 |
"single node." |
| 312 |
msgstr "" |
| 313 |
|
| 314 |
#. type: TP |
| 315 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 316 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 317 |
#, no-wrap |
| 318 |
msgid "B<MPOL_WEIGHTED_INTERLEAVE> (since Linux 6.9)" |
| 319 |
msgstr "" |
| 320 |
|
| 321 |
#. commit fa3bea4e1f8202d787709b7e3654eb0a99aed758 |
| 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 |
"This mode interleaves page allocations across the nodes specified in " |
| 327 |
"I<nodemask> according to the weights in I</sys/kernel/mm/mempolicy/" |
| 328 |
"weighted_interleave>. For example, if bits 0, 2, and 5 are set in " |
| 329 |
"I<nodemask>, and the contents of I</sys/kernel/mm/mempolicy/" |
| 330 |
"weighted_interleave/node0>, I</sys/>.\\|.\\|.I</node2>, and I</sys/>.\\|." |
| 331 |
"\\|.I</node5> are 4, 7, and 9, respectively, then pages in this region will " |
| 332 |
"be allocated on nodes 0, 2, and 5 in a 4:7:9 ratio." |
| 333 |
msgstr "" |
| 334 |
|
| 335 |
#. type: TP |
| 336 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 337 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 338 |
#, no-wrap |
| 339 |
msgid "B<MPOL_PREFERRED>" |
| 340 |
msgstr "" |
| 341 |
|
| 342 |
#. type: Plain text |
| 343 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 344 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 345 |
msgid "" |
| 346 |
"This mode sets the preferred node for allocation. The kernel will try to " |
| 347 |
"allocate pages from this node first and fall back to other nodes if the " |
| 348 |
"preferred nodes is low on free memory. If I<nodemask> specifies more than " |
| 349 |
"one node ID, the first node in the mask will be selected as the preferred " |
| 350 |
"node. If the I<nodemask> and I<maxnode> arguments specify the empty set, " |
| 351 |
"then the memory is allocated on the node of the CPU that triggered the " |
| 352 |
"allocation." |
| 353 |
msgstr "" |
| 354 |
|
| 355 |
#. type: TP |
| 356 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 357 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 358 |
#, no-wrap |
| 359 |
msgid "B<MPOL_PREFERRED_MANY> (since Linux 5.15)" |
| 360 |
msgstr "" |
| 361 |
|
| 362 |
#. commit b27abaccf8e8b012f126da0c2a1ab32723ec8b9f |
| 363 |
#. type: Plain text |
| 364 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 365 |
#: opensuse-tumbleweed |
| 366 |
msgid "Specifies a set of nodes for allocation; see B<set_mempolicy>(2)." |
| 367 |
msgstr "" |
| 368 |
|
| 369 |
#. type: TP |
| 370 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 371 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 372 |
#, no-wrap |
| 373 |
msgid "B<MPOL_LOCAL> (since Linux 3.8)" |
| 374 |
msgstr "" |
| 375 |
|
| 376 |
#. commit 479e2802d09f1e18a97262c4c6f8f17ae5884bd8 |
| 377 |
#. commit f2a07f40dbc603c15f8b06e6ec7f768af67b424f |
| 378 |
#. type: Plain text |
| 379 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 380 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 381 |
msgid "" |
| 382 |
"This mode specifies \"local allocation\"; the memory is allocated on the " |
| 383 |
"node of the CPU that triggered the allocation (the \"local node\"). The " |
| 384 |
"I<nodemask> and I<maxnode> arguments must specify the empty set. If the " |
| 385 |
"\"local node\" is low on free memory, the kernel will try to allocate memory " |
| 386 |
"from other nodes. The kernel will allocate memory from the \"local node\" " |
| 387 |
"whenever memory for this node is available. If the \"local node\" is not " |
| 388 |
"allowed by the thread's current cpuset context, the kernel will try to " |
| 389 |
"allocate memory from other nodes. The kernel will allocate memory from the " |
| 390 |
"\"local node\" whenever it becomes allowed by the thread's current cpuset " |
| 391 |
"context. By contrast, B<MPOL_DEFAULT> reverts to the memory policy of the " |
| 392 |
"thread (which may be set via B<set_mempolicy>(2)); that policy may be " |
| 393 |
"something other than \"local allocation\"." |
| 394 |
msgstr "" |
| 395 |
|
| 396 |
#. According to the kernel code, the following is not true |
| 397 |
#. --Lee Schermerhorn |
| 398 |
#. In Linux 2.6.16 or later the kernel will also try to move pages |
| 399 |
#. to the requested node with this flag. |
| 400 |
#. type: Plain text |
| 401 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 402 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 403 |
msgid "" |
| 404 |
"If B<MPOL_MF_STRICT> is passed in I<flags> and I<mode> is not " |
| 405 |
"B<MPOL_DEFAULT>, then the call fails with the error B<EIO> if the existing " |
| 406 |
"pages in the memory range don't follow the policy." |
| 407 |
msgstr "" |
| 408 |
|
| 409 |
#. type: Plain text |
| 410 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 411 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 412 |
msgid "" |
| 413 |
"If B<MPOL_MF_MOVE> is specified in I<flags>, then the kernel will attempt to " |
| 414 |
"move all the existing pages in the memory range so that they follow the " |
| 415 |
"policy. Pages that are shared with other processes will not be moved. If " |
| 416 |
"B<MPOL_MF_STRICT> is also specified, then the call fails with the error " |
| 417 |
"B<EIO> if some pages could not be moved. If the B<MPOL_INTERLEAVE> policy " |
| 418 |
"was specified, pages already residing on the specified nodes will not be " |
| 419 |
"moved such that they are interleaved." |
| 420 |
msgstr "" |
| 421 |
|
| 422 |
#. --------------------------------------------------------------- |
| 423 |
#. type: Plain text |
| 424 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 425 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 426 |
msgid "" |
| 427 |
"If B<MPOL_MF_MOVE_ALL> is passed in I<flags>, then the kernel will attempt " |
| 428 |
"to move all existing pages in the memory range regardless of whether other " |
| 429 |
"processes use the pages. The calling thread must be privileged " |
| 430 |
"(B<CAP_SYS_NICE>) to use this flag. If B<MPOL_MF_STRICT> is also " |
| 431 |
"specified, then the call fails with the error B<EIO> if some pages could not " |
| 432 |
"be moved. If the B<MPOL_INTERLEAVE> policy was specified, pages already " |
| 433 |
"residing on the specified nodes will not be moved such that they are " |
| 434 |
"interleaved." |
| 435 |
msgstr "" |
| 436 |
|
| 437 |
#. type: SH |
| 438 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 439 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 440 |
#, no-wrap |
| 441 |
msgid "RETURN VALUE" |
| 442 |
msgstr "" |
| 443 |
|
| 444 |
#. --------------------------------------------------------------- |
| 445 |
#. type: Plain text |
| 446 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 447 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 448 |
msgid "" |
| 449 |
"On success, B<mbind>() returns 0; on error, -1 is returned and I<errno> is " |
| 450 |
"set to indicate the error." |
| 451 |
msgstr "" |
| 452 |
|
| 453 |
#. type: SH |
| 454 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 455 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 456 |
#, no-wrap |
| 457 |
msgid "ERRORS" |
| 458 |
msgstr "" |
| 459 |
|
| 460 |
#. type: TP |
| 461 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 462 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 463 |
#, no-wrap |
| 464 |
msgid "B<EFAULT>" |
| 465 |
msgstr "" |
| 466 |
|
| 467 |
#. type: Plain text |
| 468 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 469 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 470 |
msgid "" |
| 471 |
"Part or all of the memory range specified by I<nodemask> and I<maxnode> " |
| 472 |
"points outside your accessible address space. Or, there was an unmapped " |
| 473 |
"hole in the specified memory range specified by I<addr> and I<size>." |
| 474 |
msgstr "" |
| 475 |
|
| 476 |
#. type: TP |
| 477 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 478 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 479 |
#, no-wrap |
| 480 |
msgid "B<EINVAL>" |
| 481 |
msgstr "" |
| 482 |
|
| 483 |
#. As at 2.6.23, this limit is "a page worth of bits", e.g., |
| 484 |
#. 8 * 4096 bits, assuming a 4kB page size. |
| 485 |
#. type: Plain text |
| 486 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 487 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 488 |
msgid "" |
| 489 |
"An invalid value was specified for I<flags> or I<mode>; or I<addr + size> " |
| 490 |
"was less than I<addr>; or I<addr> is not a multiple of the system page " |
| 491 |
"size. Or, I<mode> is B<MPOL_DEFAULT> and I<nodemask> specified a nonempty " |
| 492 |
"set; or I<mode> is B<MPOL_BIND> or B<MPOL_INTERLEAVE> and I<nodemask> is " |
| 493 |
"empty. Or, I<maxnode> exceeds a kernel-imposed limit. Or, I<nodemask> " |
| 494 |
"specifies one or more node IDs that are greater than the maximum supported " |
| 495 |
"node ID. Or, none of the node IDs specified by I<nodemask> are on-line and " |
| 496 |
"allowed by the thread's current cpuset context, or none of the specified " |
| 497 |
"nodes contain memory. Or, the I<mode> argument specified both " |
| 498 |
"B<MPOL_F_STATIC_NODES> and B<MPOL_F_RELATIVE_NODES>." |
| 499 |
msgstr "" |
| 500 |
|
| 501 |
#. type: TP |
| 502 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 503 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 504 |
#, no-wrap |
| 505 |
msgid "B<EIO>" |
| 506 |
msgstr "" |
| 507 |
|
| 508 |
#. type: Plain text |
| 509 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 510 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 511 |
msgid "" |
| 512 |
"B<MPOL_MF_STRICT> was specified and an existing page was already on a node " |
| 513 |
"that does not follow the policy; or B<MPOL_MF_MOVE> or B<MPOL_MF_MOVE_ALL> " |
| 514 |
"was specified and the kernel was unable to move all existing pages in the " |
| 515 |
"range." |
| 516 |
msgstr "" |
| 517 |
|
| 518 |
#. type: TP |
| 519 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 520 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 521 |
#, no-wrap |
| 522 |
msgid "B<ENOMEM>" |
| 523 |
msgstr "" |
| 524 |
|
| 525 |
#. type: Plain text |
| 526 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 527 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 528 |
msgid "Insufficient kernel memory was available." |
| 529 |
msgstr "" |
| 530 |
|
| 531 |
#. type: TP |
| 532 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 533 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 534 |
#, no-wrap |
| 535 |
msgid "B<EPERM>" |
| 536 |
msgstr "" |
| 537 |
|
| 538 |
#. --------------------------------------------------------------- |
| 539 |
#. type: Plain text |
| 540 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 541 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 542 |
msgid "" |
| 543 |
"The I<flags> argument included the B<MPOL_MF_MOVE_ALL> flag and the caller " |
| 544 |
"does not have the B<CAP_SYS_NICE> privilege." |
| 545 |
msgstr "" |
| 546 |
|
| 547 |
#. type: SH |
| 548 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 549 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 550 |
#, no-wrap |
| 551 |
msgid "STANDARDS" |
| 552 |
msgstr "" |
| 553 |
|
| 554 |
#. type: Plain text |
| 555 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 556 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 557 |
msgid "Linux." |
| 558 |
msgstr "" |
| 559 |
|
| 560 |
#. type: SH |
| 561 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 562 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 563 |
#, no-wrap |
| 564 |
msgid "HISTORY" |
| 565 |
msgstr "" |
| 566 |
|
| 567 |
#. type: Plain text |
| 568 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 569 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 570 |
msgid "Linux 2.6.7." |
| 571 |
msgstr "" |
| 572 |
|
| 573 |
#. type: Plain text |
| 574 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 575 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 576 |
msgid "" |
| 577 |
"Support for huge page policy was added with Linux 2.6.16. For interleave " |
| 578 |
"policy to be effective on huge page mappings the policied memory needs to be " |
| 579 |
"tens of megabytes or larger." |
| 580 |
msgstr "" |
| 581 |
|
| 582 |
#. commit dcf1763546d76c372f3136c8d6b2b6e77f140cf0 |
| 583 |
#. type: Plain text |
| 584 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 585 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 586 |
msgid "Before Linux 5.7. B<MPOL_MF_STRICT> was ignored on huge page mappings." |
| 587 |
msgstr "" |
| 588 |
|
| 589 |
#. type: Plain text |
| 590 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 591 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 592 |
msgid "" |
| 593 |
"B<MPOL_MF_MOVE> and B<MPOL_MF_MOVE_ALL> are available only on Linux 2.6.16 " |
| 594 |
"and later." |
| 595 |
msgstr "" |
| 596 |
|
| 597 |
#. type: SH |
| 598 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 599 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 600 |
#, no-wrap |
| 601 |
msgid "NOTES" |
| 602 |
msgstr "" |
| 603 |
|
| 604 |
#. type: Plain text |
| 605 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 606 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 607 |
msgid "For information on library support, see B<numa>(7)." |
| 608 |
msgstr "" |
| 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 |
"NUMA policy is not supported on a memory-mapped file range that was mapped " |
| 615 |
"with the B<MAP_SHARED> flag." |
| 616 |
msgstr "" |
| 617 |
|
| 618 |
#. type: Plain text |
| 619 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 620 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 621 |
msgid "" |
| 622 |
"The B<MPOL_DEFAULT> mode can have different effects for B<mbind>() and " |
| 623 |
"B<set_mempolicy>(2). When B<MPOL_DEFAULT> is specified for " |
| 624 |
"B<set_mempolicy>(2), the thread's memory policy reverts to the system " |
| 625 |
"default policy or local allocation. When B<MPOL_DEFAULT> is specified for a " |
| 626 |
"range of memory using B<mbind>(), any pages subsequently allocated for that " |
| 627 |
"range will use the thread's memory policy, as set by B<set_mempolicy>(2). " |
| 628 |
"This effectively removes the explicit policy from the specified range, " |
| 629 |
"\"falling back\" to a possibly nondefault policy. To select explicit " |
| 630 |
"\"local allocation\" for a memory range, specify a I<mode> of B<MPOL_LOCAL> " |
| 631 |
"or B<MPOL_PREFERRED> with an empty set of nodes. This method will work for " |
| 632 |
"B<set_mempolicy>(2), as well." |
| 633 |
msgstr "" |
| 634 |
|
| 635 |
#. type: SH |
| 636 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 637 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 638 |
#, no-wrap |
| 639 |
msgid "SEE ALSO" |
| 640 |
msgstr "" |
| 641 |
|
| 642 |
#. type: Plain text |
| 643 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 644 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 645 |
msgid "" |
| 646 |
"B<get_mempolicy>(2), B<getcpu>(2), B<mmap>(2), B<set_mempolicy>(2), " |
| 647 |
"B<shmat>(2), B<shmget>(2), B<numa>(3), B<cpuset>(7), B<numa>(7), " |
| 648 |
"B<numactl>(8)" |
| 649 |
msgstr "" |
| 650 |
|
| 651 |
#. type: TH |
| 652 |
#: debian-trixie |
| 653 |
#, no-wrap |
| 654 |
msgid "2024-05-02" |
| 655 |
msgstr "" |
| 656 |
|
| 657 |
#. type: TH |
| 658 |
#: debian-trixie |
| 659 |
#, no-wrap |
| 660 |
msgid "Linux man-pages 6.9.1" |
| 661 |
msgstr "" |
| 662 |
|
| 663 |
#. type: Plain text |
| 664 |
#: debian-trixie |
| 665 |
msgid "NUMA (Non-Uniform Memory Access) policy library (I<libnuma>, I<-lnuma>)" |
| 666 |
msgstr "" |
| 667 |
|
| 668 |
#. type: Plain text |
| 669 |
#: debian-trixie |
| 670 |
#, no-wrap |
| 671 |
msgid "" |
| 672 |
"B<long mbind(void >I<addr>B<[.>I<len>B<], unsigned long >I<len>B<, int >I<mode>B<,>\n" |
| 673 |
"B< const unsigned long >I<nodemask>B<[(.>I<maxnode>B< + ULONG_WIDTH - 1)>\n" |
| 674 |
"B</ ULONG_WIDTH],>\n" |
| 675 |
"B< unsigned long >I<maxnode>B<, unsigned int >I<flags>B<);>\n" |
| 676 |
msgstr "" |
| 677 |
|
| 678 |
#. type: Plain text |
| 679 |
#: debian-trixie |
| 680 |
msgid "" |
| 681 |
"B<mbind>() sets the NUMA memory policy, which consists of a policy mode and " |
| 682 |
"zero or more nodes, for the memory range starting with I<addr> and " |
| 683 |
"continuing for I<len> bytes. The memory policy defines from which node " |
| 684 |
"memory is allocated." |
| 685 |
msgstr "" |
| 686 |
|
| 687 |
#. type: Plain text |
| 688 |
#: debian-trixie |
| 689 |
msgid "" |
| 690 |
"If the memory range specified by the I<addr> and I<len> arguments includes " |
| 691 |
"an \"anonymous\" region of memory\\[em]that is a region of memory created " |
| 692 |
"using the B<mmap>(2) system call with the B<MAP_ANONYMOUS>\\[em]or a memory-" |
| 693 |
"mapped file, mapped using the B<mmap>(2) system call with the " |
| 694 |
"B<MAP_PRIVATE> flag, pages will be allocated only according to the specified " |
| 695 |
"policy when the application writes (stores) to the page. For anonymous " |
| 696 |
"regions, an initial read access will use a shared page in the kernel " |
| 697 |
"containing all zeros. For a file mapped with B<MAP_PRIVATE>, an initial " |
| 698 |
"read access will allocate pages according to the memory policy of the thread " |
| 699 |
"that causes the page to be allocated. This may not be the thread that " |
| 700 |
"called B<mbind>()." |
| 701 |
msgstr "" |
| 702 |
|
| 703 |
#. type: Plain text |
| 704 |
#: debian-trixie |
| 705 |
msgid "" |
| 706 |
"The I<mode> argument must specify one of B<MPOL_DEFAULT>, B<MPOL_BIND>, " |
| 707 |
"B<MPOL_INTERLEAVE>, B<MPOL_WEIGHTED_INTERLEAVE>, B<MPOL_PREFERRED>, or " |
| 708 |
"B<MPOL_LOCAL> (which are described in detail below). All policy modes " |
| 709 |
"except B<MPOL_DEFAULT> require the caller to specify the node or nodes to " |
| 710 |
"which the mode applies, via the I<nodemask> argument." |
| 711 |
msgstr "" |
| 712 |
|
| 713 |
#. type: Plain text |
| 714 |
#: debian-trixie |
| 715 |
msgid "" |
| 716 |
"Part or all of the memory range specified by I<nodemask> and I<maxnode> " |
| 717 |
"points outside your accessible address space. Or, there was an unmapped " |
| 718 |
"hole in the specified memory range specified by I<addr> and I<len>." |
| 719 |
msgstr "" |
| 720 |
|
| 721 |
#. As at 2.6.23, this limit is "a page worth of bits", e.g., |
| 722 |
#. 8 * 4096 bits, assuming a 4kB page size. |
| 723 |
#. type: Plain text |
| 724 |
#: debian-trixie |
| 725 |
msgid "" |
| 726 |
"An invalid value was specified for I<flags> or I<mode>; or I<addr + len> was " |
| 727 |
"less than I<addr>; or I<addr> is not a multiple of the system page size. " |
| 728 |
"Or, I<mode> is B<MPOL_DEFAULT> and I<nodemask> specified a nonempty set; or " |
| 729 |
"I<mode> is B<MPOL_BIND> or B<MPOL_INTERLEAVE> and I<nodemask> is empty. Or, " |
| 730 |
"I<maxnode> exceeds a kernel-imposed limit. Or, I<nodemask> specifies one or " |
| 731 |
"more node IDs that are greater than the maximum supported node ID. Or, none " |
| 732 |
"of the node IDs specified by I<nodemask> are on-line and allowed by the " |
| 733 |
"thread's current cpuset context, or none of the specified nodes contain " |
| 734 |
"memory. Or, the I<mode> argument specified both B<MPOL_F_STATIC_NODES> and " |
| 735 |
"B<MPOL_F_RELATIVE_NODES>." |
| 736 |
msgstr "" |
| 737 |
|
| 738 |
#. type: TH |
| 739 |
#: fedora-44 fedora-rawhide |
| 740 |
#, no-wrap |
| 741 |
msgid "2025-02-21" |
| 742 |
msgstr "" |
| 743 |
|
| 744 |
#. type: TH |
| 745 |
#: fedora-44 fedora-rawhide |
| 746 |
#, no-wrap |
| 747 |
msgid "Linux man-pages 6.13" |
| 748 |
msgstr "" |
| 749 |
|
| 750 |
#. type: Plain text |
| 751 |
#: fedora-44 fedora-rawhide |
| 752 |
#, no-wrap |
| 753 |
msgid "" |
| 754 |
"B<long mbind(void >I<addr>B<[.>I<size>B<], unsigned long >I<size>B<, int >I<mode>B<,>\n" |
| 755 |
"B< const unsigned long >I<nodemask>B<[(.>I<maxnode>B< + ULONG_WIDTH - 1)>\n" |
| 756 |
"B</ ULONG_WIDTH],>\n" |
| 757 |
"B< unsigned long >I<maxnode>B<, unsigned int >I<flags>B<);>\n" |
| 758 |
msgstr "" |
| 759 |
|
| 760 |
#. commit b27abaccf8e8b012f126da0c2a1ab32723ec8b9f |
| 761 |
#. type: Plain text |
| 762 |
#: fedora-44 fedora-rawhide |
| 763 |
msgid "Specifies a set of nodes for allocation; see B<set_mempolicy>(2)" |
| 764 |
msgstr "" |
| 765 |
|
| 766 |
#. type: TH |
| 767 |
#: mageia-cauldron |
| 768 |
#, no-wrap |
| 769 |
msgid "Linux man-pages 6.17" |
| 770 |
msgstr "" |
| 771 |
|
| 772 |
#. type: TH |
| 773 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 774 |
#, no-wrap |
| 775 |
msgid "Linux man-pages (unreleased)" |
| 776 |
msgstr "" |