[PATCH] perform maintenance on Documentation/vm/hugetlbpage.txt
Updates to Documentation/vm/hugetlbpage.txt: - there's no need to select HUGETLB_PAGE manually and it's no longer under the processor menu. Update the text accordingly. - fix typos and trim trailing whitespace. Signed-Off-By: Muli Ben-Yehuda <mulix@mulix.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
385fd4c59d
commit
5c7ad5104d
@ -13,9 +13,10 @@ This optimization is more critical now as bigger and bigger physical memories
|
|||||||
Users can use the huge page support in Linux kernel by either using the mmap
|
Users can use the huge page support in Linux kernel by either using the mmap
|
||||||
system call or standard SYSv shared memory system calls (shmget, shmat).
|
system call or standard SYSv shared memory system calls (shmget, shmat).
|
||||||
|
|
||||||
First the Linux kernel needs to be built with CONFIG_HUGETLB_PAGE (present
|
First the Linux kernel needs to be built with the CONFIG_HUGETLBFS
|
||||||
under Processor types and feature) and CONFIG_HUGETLBFS (present under file
|
(present under "File systems") and CONFIG_HUGETLB_PAGE (selected
|
||||||
system option on config menu) config options.
|
automatically when CONFIG_HUGETLBFS is selected) configuration
|
||||||
|
options.
|
||||||
|
|
||||||
The kernel built with hugepage support should show the number of configured
|
The kernel built with hugepage support should show the number of configured
|
||||||
hugepages in the system by running the "cat /proc/meminfo" command.
|
hugepages in the system by running the "cat /proc/meminfo" command.
|
||||||
@ -39,7 +40,7 @@ in the kernel.
|
|||||||
/proc/sys/vm/nr_hugepages indicates the current number of configured hugetlb
|
/proc/sys/vm/nr_hugepages indicates the current number of configured hugetlb
|
||||||
pages in the kernel. Super user can dynamically request more (or free some
|
pages in the kernel. Super user can dynamically request more (or free some
|
||||||
pre-configured) hugepages.
|
pre-configured) hugepages.
|
||||||
The allocation( or deallocation) of hugetlb pages is posible only if there are
|
The allocation (or deallocation) of hugetlb pages is possible only if there are
|
||||||
enough physically contiguous free pages in system (freeing of hugepages is
|
enough physically contiguous free pages in system (freeing of hugepages is
|
||||||
possible only if there are enough hugetlb pages free that can be transfered
|
possible only if there are enough hugetlb pages free that can be transfered
|
||||||
back to regular memory pool).
|
back to regular memory pool).
|
||||||
|
Loading…
Reference in New Issue
Block a user