OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / draft / man2 / move_pages.2
1 .\" Hey Emacs! This file is -*- nroff -*- source.
2 .\"
3 .\" This manpage is Copyright (C) 2006 Silicon Graphics, Inc.
4 .\"                               Christoph Lameter
5 .\"
6 .\" Permission is granted to make and distribute verbatim copies of this
7 .\" manual provided the copyright notice and this permission notice are
8 .\" preserved on all copies.
9 .\"
10 .\" Permission is granted to copy and distribute modified versions of this
11 .\" manual under the conditions for verbatim copying, provided that the
12 .\" entire resulting derived work is distributed under the terms of a
13 .\" permission notice identical to this one.
14 .\"
15 .\" FIXME Should programs normally be using this API directly, or should
16 .\" they rather be using interfaces in the numactl package?
17 .\" (e.g., compare with recommendation in mbind(2)).
18 .\" 
19 .\" Japanese Version Copyright (c) 2008  Akihiro MOTOKI
20 .\"         all rights reserved.
21 .\" Translated 2008-10-26, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
22 .\" 
23 .TH MOVE_PAGES 2 2008-10-06 "Linux" "Linux Programmer's Manual"
24 .\"O .SH NAME
25 .SH Ì¾Á°
26 .\"O move_pages \- move individual pages of a process to another node
27 move_pages \- ¤¢¤ë¥×¥í¥»¥¹¤Î¸Ä¡¹¤Î¥Ú¡¼¥¸¤òÊ̤ΥΡ¼¥É¤Ë°ÜÆ°¤¹¤ë
28 .\"O .SH SYNOPSIS
29 .SH ½ñ¼°
30 .nf
31 .B #include <numaif.h>
32 .sp
33 .BI "long move_pages(int " pid ", unsigned long count, void **" pages ,
34 .BI "                const int *" nodes ", int *" status ", int " flags );
35 .fi
36 .\"O .SH DESCRIPTION
37 .SH ÀâÌÀ
38 .\"O .BR move_pages ()
39 .\"O moves the specified
40 .\"O .I pages
41 .\"O of the process
42 .\"O .I pid
43 .\"O to the memory nodes specified by
44 .\"O .IR nodes .
45 .\"O The result of the move is reflected in
46 .\"O .IR status .
47 .\"O The
48 .\"O .I flags
49 .\"O indicate constraints on the pages to be moved.
50 .BR move_pages ()
51 ¤Ï¡¢¥×¥í¥»¥¹
52 .I pid
53 ¤Î»ØÄꤵ¤ì¤¿¥Ú¡¼¥¸
54 .I pages
55 ¤ò
56 .I nodes
57 ¤Ç»ØÄꤵ¤ì¤¿¥á¥â¥ê¥Î¡¼¥É¤Ë°ÜÆ°¤¹¤ë¡£
58 °ÜÆ°¤Î·ë²Ì¤Ï
59 .I status
60 ¤ËÈ¿±Ç¤µ¤ì¤ë¡£
61 .I flags
62 ¤Ç¤Ï°ÜÆ°¤µ¤ì¤ë¥Ú¡¼¥¸¤Ë´Ø¤¹¤ëÀ©Ìó¤ò»ØÄꤹ¤ë¡£
63
64 .\"O .I pid
65 .\"O is the ID of the process in which pages are to be moved.
66 .\"O To move pages in another process,
67 .\"O the caller must be privileged
68 .\"O .RB ( CAP_SYS_NICE )
69 .\"O or the real or effective user ID of the calling process must match the
70 .\"O real or saved-set user ID of the target process.
71 .\"O If
72 .\"O .I pid
73 .\"O is 0 then
74 .\"O .BR move_pages ()
75 .\"O moves pages of the calling process.
76 .I pid
77 ¤Ï¡¢°ÜÆ°¤µ¤ì¤ë¥Ú¡¼¥¸¤¬Â°¤¹¤ë¥×¥í¥»¥¹¤Î ID ¤Ç¤¢¤ë¡£
78 ÊÌ¤Î¥×¥í¥»¥¹¤Î¥Ú¡¼¥¸¤ò°ÜÆ°¤¹¤ë¤¿¤á¤Ë¤Ï¡¢¸Æ¤Ó½Ð¤·¸µ¤¬Æø¢
79 .RB ( CAP_SYS_NICE )
80 ¤ò»ý¤Ã¤Æ¤¤¤ë¤«¡¢¸Æ¤Ó½Ð¤·¤¿¥×¥í¥»¥¹¤Î¼Â¥æ¡¼¥¶ ID ¤«¼Â¸ú¥æ¡¼¥¶ ID ¤¬
81 ¥Ú¡¼¥¸°ÜÆ°ÂÐ¾Ý¤Î¥×¥í¥»¥¹¤Î¼Â¥æ¡¼¥¶ ID ¤«Êݸ set-user-ID ¤Î¤É¤Á¤é¤«¤È
82 °ìÃפ·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
83 .I pid
84 ¤¬ 0 ¤Î¾ì¹ç¡¢
85 .BR move_pages ()
86 ¤Ï¸Æ¤Ó½Ð¤·¤¿¥×¥í¥»¥¹¤Î¥Ú¡¼¥¸¤ò°ÜÆ°¤¹¤ë¡£
87
88 .\"O .I count
89 .\"O is the number of pages to move.
90 .\"O It defines the size of the three arrays
91 .\"O .IR pages ,
92 .\"O .IR nodes ,
93 .\"O and
94 .\"O .IR status .
95 .I count
96 ¤Ï°ÜÆ°¤¹¤ë¥Ú¡¼¥¸¿ô¤Ç¤¢¤ë¡£
97 .I count
98 ¤Ë¤è¤ê
99 .IR pages ,
100 .IR nodes ,
101 .I status
102 ¤Î 3 ¤Ä¤ÎÇÛÎó¤ÎÂ礭¤µ¤¬ÄêµÁ¤µ¤ì¤ë¡£
103
104 .\"O .I pages
105 .\"O is an array of pointers to the pages that should be moved.
106 .\"O These are pointers that should be aligned to page boundaries.
107 .I pages
108 ¤Ï¡¢°ÜÆ°¤¹¤Ù¤­¥Ú¡¼¥¸¤Ø¤Î¥Ý¥¤¥ó¥¿¤ÎÇÛÎó¤Ç¤¢¤ê¡¢
109 ³Æ¥Ý¥¤¥ó¥¿¤Ï¥Ú¡¼¥¸¶­³¦¤Ë·¤¨¤¿Ãͤò»ØÄꤹ¤Ù¤­¤Ç¤¢¤ë¡£
110 .\" FIXME what if they are not aligned?
111 .\"O Addresses are specified as seen by the process specified by
112 .\"O .IR pid .
113 .I pid
114 ¤Ç»ØÄꤵ¤ì¤¿¥×¥í¥»¥¹¤Ç¸«¤¨¤ë¥¢¥É¥ì¥¹¤ò»ØÄꤹ¤ë¡£
115
116 .\"O .I nodes
117 .\"O is an array of integers that specify the desired location for each page.
118 .\"O Each element in the array is a node number.
119 .\"O .I nodes
120 .\"O can also be NULL, in which case
121 .\"O .BR move_pages ()
122 .\"O does not move any pages but instead will return the node
123 .\"O where each page currently resides, in the
124 .\"O .I status
125 .\"O array.
126 .\"O Obtaining the status of each page may be necessary to determine
127 .\"O pages that need to be moved.
128 .I nodes
129 ¤Ï¡¢³Æ¥Ú¡¼¥¸¤Î´õ˾¤Î°ÜÆ°¾ì½ê¤ò¼¨¤¹À°¿ôÃͤÎÇÛÎó¤Ç¤¢¤ê¡¢
130 ÇÛÎó¤Î³ÆÍ×ÁǤϥΡ¼¥ÉÈÖ¹æ¤Ç¤¢¤ë¡£
131 .I nodes
132 ¤Ë¤Ï NULL ¤ò»ØÄꤹ¤ë¤³¤È¤â¤Ç¤­¡¢¤³¤Î¾ì¹ç¤Ë¤Ï
133 .BR move_pages ()
134 ¤Ï¤É¤Î¥Ú¡¼¥¸¤â°ÜÆ°¤·¤Ê¤¤¤¬¡¢³Æ¥Ú¡¼¥¸¤¬¸½ºßÇÛÃÖ¤µ¤ì¤Æ¤¤¤ë¥Î¡¼¥É¤òÇÛÎó
135 .I status
136 ¤Ë³ÊǼ¤·¤ÆÊÖ¤¹¡£¤É¤Î¥Ú¡¼¥¸¤ò°ÜÆ°¤¹¤ëɬÍפ¬¤¢¤ë¤«¤òȽÃǤ¹¤ë¤¿¤á¤Ë¡¢
137 ³Æ¥Ú¡¼¥¸¤Î¾õÂ֤μèÆÀ¤¬É¬Íפʾì¹ç¤â¤¢¤ë¡£
138
139 .\"O .I status
140 .\"O is an array of integers that return the status of each page.
141 .\"O The array only contains valid values if
142 .\"O .BR move_pages ()
143 .\"O did not return an error.
144 .I status
145 ¤Ï¡¢³Æ¥Ú¡¼¥¸¤Î¾õÂÖ¤òɽ¤¹À°¿ôÃͤÎÇÛÎó¤Ç¤¢¤ë¡£
146 ¤³¤ÎÇÛÎó¤ËÍ­¸ú¤ÊÃͤ¬³ÊǼ¤µ¤ì¤ë¤Î¤Ï¡¢
147 .BR move_pages ()
148 ¤¬¥¨¥é¡¼¤òÊÖ¤µ¤Ê¤«¤Ã¤¿¾ì¹ç¤À¤±¤Ç¤¢¤ë¡£
149
150 .\"O .I flags
151 .\"O specify what types of pages to move.
152 .\"O .B MPOL_MF_MOVE
153 .\"O means that only pages that are in exclusive use by the process
154 .\"O are to be moved.
155 .\"O .B MPOL_MF_MOVE_ALL
156 .\"O means that pages shared between multiple processes can also be moved.
157 .\"O The process must be privileged
158 .\"O .RB ( CAP_SYS_NICE )
159 .\"O to use
160 .\"O .BR MPOL_MF_MOVE_ALL .
161 .I flags
162 ¤Ë¤Ï¡¢¤É¤Î¼ïÎà¤Î¥Ú¡¼¥¸¤ò°ÜÆ°¤¹¤ë¤«¤ò»ØÄꤹ¤ë¡£
163 .B MPOL_MF_MOVE
164 ¤Ï¡¢¤½¤Î¥×¥í¥»¥¹¤¬ÇÓ¾Ū¤Ë»ÈÍѤ·¤Æ¤¤¤ë¥Ú¡¼¥¸¤À¤±¤ò°ÜÆ°¤¹¤ë¤³¤È¤ò°ÕÌ£¤¹¤ë¡£
165 .B MPOL_MF_MOVE_ALL
166 ¤Ï¡¢Ê£¿ô¤Î¥×¥í¥»¥¹´Ö¤Ç¶¦Í­¤µ¤ì¤Æ¤¤¤ë¥Ú¡¼¥¸¤â°ÜÆ°¤Ç¤­¤ë¤³¤È¤ò°ÕÌ£¤¹¤ë¡£
167 .B MPOL_MF_MOVE_ALL
168 ¤ò»ÈÍѤ¹¤ë¤¿¤á¤Ë¤Ï¡¢¤½¤Î¥×¥í¥»¥¹¤¬Æø¢
169 .RB ( CAP_SYS_NICE )
170 ¤ò»ý¤Ã¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
171 .\"O .SH Page states in the status array
172 .SH status ÇÛÎó¤Ë³ÊǼ¤µ¤ì¤ë¥Ú¡¼¥¸¾õÂÖ
173 .\"O The following values can be returned in each element of the
174 .\"O .I status
175 .\"O array.
176 .I status
177 ÇÛÎó¤Î³ÆÍ×ÁǤȤ·¤Æ¡¢°Ê²¼¤ÎÃͤ¬ÊÖ¤µ¤ì¤ë¡£
178 .TP
179 .B 0..MAX_NUMNODES
180 .\"O Identifies the node on which the page resides.
181 ¤½¤Î¥Ú¡¼¥¸¤¬ÇÛÃÖ¤µ¤ì¤Æ¤¤¤ë¥Î¡¼¥É¤ò¼¨¤¹¡£
182 .TP
183 .B -EACCES
184 .\"O The page is mapped by multiple processes and can only be moved if
185 .\"O .B MPOL_MF_MOVE_ALL
186 .\"O is specified.
187 ¤½¤Î¥Ú¡¼¥¸¤ÏÊ£¿ô¤Î¥×¥í¥»¥¹¤Ë¤è¤ê¥Þ¥Ã¥×¤µ¤ì¤Æ¤ª¤ê¡¢
188 .B MPOL_MF_MOVE_ALL
189 ¤¬»ØÄꤵ¤ì¤¿¾ì¹ç¤Ë¤Î¤ß°ÜÆ°¤Ç¤­¤ë¡£
190 .TP
191 .B -EBUSY
192 .\"O The page is currently busy and cannot be moved.
193 .\"O Try again later.
194 .\"O This occurs if a page is undergoing I/O or another kernel subsystem
195 .\"O is holding a reference to the page.
196 ¤½¤Î¥Ú¡¼¥¸¤¬¸½ºß¥Ó¥¸¡¼¤Ç¤¢¤ê¡¢°ÜÆ°¤Ç¤­¤Ê¤¤¡£¸å¤Ç¤â¤¦°ìÅٻ¤³¤È¡£
197 ¤³¤Î¾õ¶·¤Ï¡¢¥Ú¡¼¥¸¤¬ I/O ¤Î¼Â¹ÔÃæ¤Ç¤¢¤Ã¤¿¤ê¡¢¥«¡¼¥Í¥ë¤Î¾¤Î¥µ¥Ö¥·¥¹¥Æ¥à
198 ¤¬¤½¤Î¥Ú¡¼¥¸¤Ø¤Î»²¾È¤òÊÝ»ý¤·¤Æ¤¤¤ë¾ì¹ç¤ËȯÀ¸¤¹¤ë¡£
199 .TP
200 .B -EFAULT
201 .\"O This is a zero page or the memory area is not mapped by the process.
202 ¤½¤Î¥Ú¡¼¥¸¤¬ zero page ¤Ç¤¢¤ë¤«¡¢¤½¤Î¥á¥â¥êÎΰè¤Ï¤½¤Î¥×¥í¥»¥¹¤Ë¤è¤ê
203 ¥Þ¥Ã¥×¤µ¤ì¤Æ¤¤¤Ê¤¤¡£
204 .TP
205 .B -EIO
206 .\"O Unable to write back a page.
207 .\"O The page has to be written back
208 .\"O in order to move it since the page is dirty and the file system
209 .\"O does not provide a migration function that would allow the move
210 .\"O of dirty pages.
211 ¥Ú¡¼¥¸¤ò½ñ¤­Ì᤹ (write back) ¤³¤È¤¬¤Ç¤­¤Ê¤¤¡£
212 ¥Ú¡¼¥¸¤¬ dirty ¤Ç¡¢¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤¬ dirty ¤Ê¥Ú¡¼¥¸¤ò°ÜÆ°¤Ç¤­¤ë¤è¤¦¤Ê
213 °ÜÆ°µ¡Ç½¤òÄ󶡤·¤Æ¤¤¤Ê¤¤¤¿¤á¡¢¤½¤Î¥Ú¡¼¥¸¤ò°ÜÆ°¤¹¤ë¤¿¤á¤Ë¤Ï¥Ú¡¼¥¸¤ò
214 ½ñ¤­Ìᤵ¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
215 .TP
216 .B -EINVAL
217 .\"O A dirty page cannot be moved.
218 .\"O The file system does not
219 .\"O provide a migration function and has no ability to write back pages.
220 dirty ¤Ê¥Ú¡¼¥¸¤ò°ÜÆ°¤Ç¤­¤Ê¤¤¡£
221 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤¬ dirty ¤Ê¥Ú¡¼¥¸¤ò°ÜÆ°¤¹¤ë¤¿¤á¤Îµ¡Ç½¤òÄ󶡤·¤Æ¤ª¤é¤º¡¢
222 ¥Ú¡¼¥¸¤ò½ñ¤­Ì᤹ǽÎϤâ¤Ê¤¤¡£
223 .TP
224 .B -ENOENT
225 .\"O The page is not present.
226 ¥Ú¡¼¥¸¤¬Â¸ºß¤·¤Ê¤¤¡£
227 .TP
228 .B -ENOMEM
229 .\"O Unable to allocate memory on target node.
230 °ÜÆ°Àè¤Î¥Î¡¼¥É¤Ç¥á¥â¥ê¤ò³ÎÊݤ¹¤ë¤³¤È¤¬¤Ç¤­¤Ê¤¤¡£
231 .\"O .SH "RETURN VALUE"
232 .SH ÊÖ¤êÃÍ
233 .\"O On success
234 .\"O .BR move_pages ()
235 .\"O returns zero.
236 À®¸ù¤¹¤ë¤È¡¢
237 .BR move_pages ()
238 ¤Ï 0 ¤òÊÖ¤¹¡£
239 .\" FIXME Is the following quite true: does the wrapper in numactl
240 .\" do the right thing?
241 .\"O On error, it returns \-1, and sets
242 .\"O .I errno
243 .\"O to indicate the error.
244 ¥¨¥é¡¼¤Î¾ì¹ç¡¢\-1 ¤òÊÖ¤·¡¢
245 .I errno
246 ¤Ë¥¨¥é¡¼¤ò¼¨¤¹ÃͤòÀßÄꤹ¤ë¡£
247 .\"O .SH ERRORS
248 .SH ¥¨¥é¡¼
249 .TP
250 .B E2BIG
251 .\"O Too many pages to move.
252 °ÜÆ°¤¹¤Ù¤­¥Ú¡¼¥¸¤¬Â¿²á¤®¤ë¡£
253 .TP
254 .B EACCES
255 .\" FIXME Clarify "current cpuset".  Is that the cpuset of the caller
256 .\" or the target?
257 .\"O One of the target nodes is not allowed by the current cpuset.
258 °ÜÆ°Àè¤Î¥Î¡¼¥É¤Î¤¤¤º¤ì¤«¤¬¸½ºß¤Î CPU ½¸¹ç¤Ç¤Ïµö²Ä¤µ¤ì¤Æ¤¤¤Ê¤¤¡£
259 .TP
260 .B EFAULT
261 .\"O Parameter array could not be accessed.
262 ¥Ñ¥é¥á¡¼¥¿ÇÛÎó¤Ë¥¢¥¯¥»¥¹¤Ç¤­¤Ê¤«¤Ã¤¿¡£
263 .TP
264 .B EINVAL
265 .\"O Flags other than
266 .\"O .B MPOL_MF_MOVE
267 .\"O and
268 .\"O .B MPOL_MF_MOVE_ALL
269 .\"O was specified or an attempt was made to migrate pages of a kernel thread.
270 .I flags
271 ¤Ë
272 .B MPOL_MF_MOVE
273 ¤Ç¤â
274 .B MPOL_MF_MOVE_ALL
275 ¤Ç¤â¤Ê¤¤Ãͤ¬»ØÄꤵ¤ì¤¿¤«¡¢¥«¡¼¥Í¥ë¥¹¥ì¥Ã¥É¤Î¥Ú¡¼¥¸¤ò°ÜÆ°¤µ¤»¤è¤¦¤È¤·¤¿¡£
276 .TP
277 .B ENODEV
278 .\"O One of the target nodes is not online.
279 °ÜÆ°Àè¤Î¥Î¡¼¥É¤Î¤¤¤º¤ì¤«¤¬¥ª¥ó¥é¥¤¥ó¤Ç¤Ê¤¤¡£
280 .TP
281 .B ENOENT
282 .\"O No pages were found that require moving.
283 .\"O All pages are either already
284 .\"O on the target node, not present, had an invalid address or could not be
285 .\"O moved because they were mapped by multiple processes.
286 °ÜÆ°¤¬É¬Íפʥڡ¼¥¸¤¬Á´¤¯¸«¤Ä¤«¤é¤Ê¤«¤Ã¤¿¡£
287 »ØÄꤵ¤ì¤¿Á´¤Æ¤Î¥Ú¡¼¥¸¤¬¡¢¤¹¤Ç¤Ë°ÜÆ°Àè¤Î¥Î¡¼¥É¤Ë¸ºß¤¹¤ë¤«¡¢Â¸ºß¤·¤Ê¤¤¤«¡¢
288 ̵¸ú¤Ê¥¢¥É¥ì¥¹¤Ç¤¢¤Ã¤¿¤«¡¢Ê£¿ô¤Î¥×¥í¥»¥¹¤Ë¤è¤Ã¤Æ¥Þ¥Ã¥×¤µ¤ì¤Æ¤¤¤Æ°ÜÆ°¤Ç¤­
289 ¤Ê¤«¤Ã¤¿¤«¡¢¤Î¤¤¤º¤ì¤«¤Ç¤¢¤Ã¤¿¡£
290 .TP
291 .B EPERM
292 .\"O The caller specified
293 .\"O .B MPOL_MF_MOVE_ALL
294 .\"O without sufficient privileges
295 .\"O .RB ( CAP_SYS_NICE ).
296 .\"O Or, the caller attempted to move pages of a process belonging
297 .\"O to another user but did not have privilege to do so
298 .\"O .RB ( CAP_SYS_NICE ).
299 ¸Æ¤Ó½Ð¤·¸µ¤Ï
300 .B MPOL_MF_MOVE_ALL
301 ¤ò»ØÄꤷ¤¿¤¬¡¢½½Ê¬¤ÊÆø¢
302 .RB ( CAP_SYS_NICE )
303 ¤ò»ý¤Ã¤Æ¤¤¤Ê¤¤¡£
304 ¤Þ¤¿¤Ï¡¢¸Æ¤Ó½Ð¤·¸µ¤¬Â¾¤Î¥æ¡¼¥¶¤Ë°¤¹¤ë¥×¥í¥»¥¹¤Î¥Ú¡¼¥¸¤ò°ÜÆ°¤·¤è¤¦¤È¤·¤¿¤¬¡¢
305 ¤½¤ì¤ò¹Ô¤¨¤ë¤À¤±¤ÎÆø¢
306 .RB ( CAP_SYS_NICE )
307 ¤ò»ý¤Ã¤Æ¤¤¤Ê¤«¤Ã¤¿¡£
308 .TP
309 .B ESRCH
310 .\"O Process does not exist.
311 ¥×¥í¥»¥¹¤¬Â¸ºß¤·¤Ê¤¤¡£
312 .\"O .SH VERSIONS
313 .SH ¥Ð¡¼¥¸¥ç¥ó
314 .\"O .BR move_pages ()
315 .\"O first appeared on Linux in version 2.6.18.
316 .BR move_pages ()
317 ¤Ï¡¢¥Ð¡¼¥¸¥ç¥ó 2.6.18 ¤Ç½é¤á¤Æ Linux ¤ËÅо줷¤¿¡£
318 .\"O .SH CONFORMING TO
319 .SH ½àµò
320 .\"O This system call is Linux-specific.
321 ¤³¤Î¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ï Linux ¸ÇÍ­¤Ç¤¢¤ë¡£
322 .\"O .SH "NOTES"
323 .SH Ãí°Õ
324 .\"O For information on library support, see
325 .\"O .BR numa (7).
326 ¥é¥¤¥Ö¥é¥ê¤Ë¤è¤ë¥µ¥Ý¡¼¥È¤Ë¤Ä¤¤¤Æ¤Ï
327 .BR numa (7)
328 ¤ò»²¾È¡£
329
330 .\"O Use
331 .\"O .BR get_mempolicy (2)
332 .\"O with the
333 .\"O .B MPOL_F_MEMS_ALLOWED
334 .\"O flag to obtain the set of nodes that are allowed by
335 .\" FIXME Clarify "current cpuset".  Is that the cpuset of the caller
336 .\" or the target?
337 .\"O the current cpuset.
338 .\"O Note that this information is subject to change at any
339 .\"O time by manual or automatic reconfiguration of the cpuset.
340 ¸½ºß¤Î CPU ½¸¹ç¤Çµö²Ä¤µ¤ì¤Æ¤¤¤ë¥Î¡¼¥É¤Î½¸¹ç¤ò¼èÆÀ¤¹¤ë¤Ë¤Ï¡¢¥Õ¥é¥°
341 .B MPOL_F_MEMS_ALLOWED
342 ¤ò»ØÄꤷ¤Æ
343 .BR get_mempolicy (2)
344 ¤ò»ÈÍѤ¹¤ì¤Ð¤è¤¤¡£
345 ¼èÆÀ¤·¤¿¾ðÊó¤Ï¡¢CPU ½¸¹ç¤Î¼êÆ°¤Þ¤¿¤Ï¼«Æ°¤Ç¤ÎºÆ¹½À®¤Ë¤è¤ê
346 ¤¤¤Ä²¿»þÊѲ½¤·¤Æ¤·¤Þ¤¦¤«Ê¬¤«¤é¤Ê¤¤¡£
347
348 .\"O Use of this function may result in pages whose location
349 .\"O (node) violates the memory policy established for the
350 .\"O specified addresses (See
351 .\"O .BR mbind (2)]
352 .\"O and/or the specified process [See
353 .\"O .BR set_mempolicy (2)).
354 .\"O That is, memory policy does not constrain the destination
355 .\"O nodes used by
356 .\"O .BR move_pages ().
357 ¤³¤Î´Ø¿ô¤ò»ÈÍѤ¹¤ë¤È¡¢¥Ú¡¼¥¸¤Î°ÌÃÖ (¥Î¡¼¥É) ¤¬
358 »ØÄꤵ¤ì¤¿¥¢¥É¥ì¥¹¤ËÂФ·¤ÆÀßÄꤵ¤ì¤¿¥á¥â¥ê¥Ý¥ê¥·¡¼
359 .RB ( mbind (2)
360 »²¾È) ¤ä»ØÄꤵ¤ì¤¿¥×¥í¥»¥¹¤ËÂФ·¤ÆÀßÄꤵ¤ì¤¿¥á¥â¥ê¥Ý¥ê¥·¡¼
361 .RB ( set_mempolicy (2)
362 »²¾È) ¤Ë°ãÈ¿¤·¤Æ¤·¤Þ¤¦²ÄǽÀ­¤¬¤¢¤ë¡£
363 ¤Ä¤Þ¤ê¡¢¥á¥â¥ê¥Ý¥ê¥·¡¼¤Ï
364 .BR move_pages ()
365 ¤Ç»È¤ï¤ì¤ë°ÜÆ°Àè¥Î¡¼¥É¤òÀ©¸Â¤·¤Ê¤¤¤È¤¤¤¦¤³¤È¤Ç¤¢¤ë¡£
366 .\"O .SH "SEE ALSO"
367 .SH ´ØÏ¢¹àÌÜ
368 .BR get_mempolicy (2),
369 .BR mbind (2),
370 .BR set_mempolicy (2),
371 .BR numa (3),
372 .BR numa_maps (5),
373 .BR cpuset (7),
374 .BR numa (7),
375 .BR migratepages (8),
376 .BR numa_stat (8)