android_kernel_motorola_sm6375/Documentation/vm
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Nishanth Aravamudan a343787016 hugetlb: new sysfs interface
Provide new hugepages user APIs that are more suited to multiple hstates
in sysfs.  There is a new directory, /sys/kernel/hugepages.  Underneath
that directory there will be a directory per-supported hugepage size,
e.g.:

/sys/kernel/hugepages/hugepages-64kB
/sys/kernel/hugepages/hugepages-16384kB
/sys/kernel/hugepages/hugepages-16777216kB

corresponding to 64k, 16m and 16g respectively.  Within each
hugepages-size directory there are a number of files, corresponding to the
tracked counters in the hstate, e.g.:

/sys/kernel/hugepages/hugepages-64/nr_hugepages
/sys/kernel/hugepages/hugepages-64/nr_overcommit_hugepages
/sys/kernel/hugepages/hugepages-64/free_hugepages
/sys/kernel/hugepages/hugepages-64/resv_hugepages
/sys/kernel/hugepages/hugepages-64/surplus_hugepages

Of these files, the first two are read-write and the latter three are
read-only.  The size of the hugepage being manipulated is trivially
deducible from the enclosing directory and is always expressed in kB (to
match meminfo).

[[email protected]: fix build]
[[email protected]: hugetlb: hang off of /sys/kernel/mm rather than /sys/kernel]
[[email protected]: hugetlb: remove CONFIG_SYSFS dependency]
Acked-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Nishanth Aravamudan <[email protected]>
Signed-off-by: Nick Piggin <[email protected]>
Cc: Dave Hansen <[email protected]>
Signed-off-by: Nishanth Aravamudan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2008-07-24 10:47:17 -07:00
..
00-INDEX doc: move vm/00-INDEX to Documentation/vm 2007-10-17 08:43:05 -07:00
balance
hugetlbpage.txt hugetlb: new sysfs interface 2008-07-24 10:47:17 -07:00
locking [PATCH] swap: swap_lock replace list+device 2005-09-05 00:05:42 -07:00
numa Documentation: remove duplicated words 2006-10-03 22:57:56 +02:00
numa_memory_policy.txt mempolicy: use MPOL_F_LOCAL to Indicate Preferred Local Policy 2008-04-28 08:58:24 -07:00
overcommit-accounting
page_migration [PATCH] page migration: sys_move_pages(): support moving of individual pages 2006-06-23 07:42:53 -07:00
pagemap.txt pagemap: add documentation for pagemap 2008-06-06 11:29:14 -07:00
slabinfo.c Christoph has moved 2008-07-04 10:40:04 -07:00
slub.txt Christoph has moved 2008-07-04 10:40:04 -07:00