diff options
Diffstat (limited to 'Documentation/vm/hugetlbpage.txt')
-rw-r--r-- | Documentation/vm/hugetlbpage.txt | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/Documentation/vm/hugetlbpage.txt b/Documentation/vm/hugetlbpage.txt index 4ac359b7aa17..bdd4bb97fff7 100644 --- a/Documentation/vm/hugetlbpage.txt +++ b/Documentation/vm/hugetlbpage.txt | |||
@@ -165,6 +165,7 @@ which function as described above for the default huge page-sized case. | |||
165 | 165 | ||
166 | 166 | ||
167 | Interaction of Task Memory Policy with Huge Page Allocation/Freeing | 167 | Interaction of Task Memory Policy with Huge Page Allocation/Freeing |
168 | =================================================================== | ||
168 | 169 | ||
169 | Whether huge pages are allocated and freed via the /proc interface or | 170 | Whether huge pages are allocated and freed via the /proc interface or |
170 | the /sysfs interface using the nr_hugepages_mempolicy attribute, the NUMA | 171 | the /sysfs interface using the nr_hugepages_mempolicy attribute, the NUMA |
@@ -229,6 +230,7 @@ resulting effect on persistent huge page allocation is as follows: | |||
229 | of huge pages over all on-lines nodes with memory. | 230 | of huge pages over all on-lines nodes with memory. |
230 | 231 | ||
231 | Per Node Hugepages Attributes | 232 | Per Node Hugepages Attributes |
233 | ============================= | ||
232 | 234 | ||
233 | A subset of the contents of the root huge page control directory in sysfs, | 235 | A subset of the contents of the root huge page control directory in sysfs, |
234 | described above, will be replicated under each the system device of each | 236 | described above, will be replicated under each the system device of each |
@@ -258,6 +260,7 @@ applied, from which node the huge page allocation will be attempted. | |||
258 | 260 | ||
259 | 261 | ||
260 | Using Huge Pages | 262 | Using Huge Pages |
263 | ================ | ||
261 | 264 | ||
262 | If the user applications are going to request huge pages using mmap system | 265 | If the user applications are going to request huge pages using mmap system |
263 | call, then it is required that system administrator mount a file system of | 266 | call, then it is required that system administrator mount a file system of |
@@ -296,20 +299,16 @@ calls, though the mount of filesystem will be required for using mmap calls | |||
296 | without MAP_HUGETLB. For an example of how to use mmap with MAP_HUGETLB see | 299 | without MAP_HUGETLB. For an example of how to use mmap with MAP_HUGETLB see |
297 | map_hugetlb.c. | 300 | map_hugetlb.c. |
298 | 301 | ||
299 | ******************************************************************* | 302 | Examples |
303 | ======== | ||
300 | 304 | ||
301 | /* | 305 | 1) map_hugetlb: see tools/testing/selftests/vm/map_hugetlb.c |
302 | * map_hugetlb: see tools/testing/selftests/vm/map_hugetlb.c | ||
303 | */ | ||
304 | 306 | ||
305 | ******************************************************************* | 307 | 2) hugepage-shm: see tools/testing/selftests/vm/hugepage-shm.c |
306 | 308 | ||
307 | /* | 309 | 3) hugepage-mmap: see tools/testing/selftests/vm/hugepage-mmap.c |
308 | * hugepage-shm: see tools/testing/selftests/vm/hugepage-shm.c | ||
309 | */ | ||
310 | 310 | ||
311 | ******************************************************************* | 311 | 4) The libhugetlbfs (http://libhugetlbfs.sourceforge.net) library provides a |
312 | 312 | wide range of userspace tools to help with huge page usability, environment | |
313 | /* | 313 | setup, and control. Furthermore it provides useful test cases that should be |
314 | * hugepage-mmap: see tools/testing/selftests/vm/hugepage-mmap.c | 314 | used when modifying code to ensure no regressions are introduced. |
315 | */ | ||