Home
last modified time | relevance | path

Searched refs:nr_hugepages (Results 1 – 10 of 10) sorted by relevance

/linux/tools/testing/selftests/mm/
H A Dcompaction_test.c91 char nr_hugepages[20] = {0}; in check_compaction() local
119 if (read(fd, nr_hugepages, sizeof(nr_hugepages)) <= 0) { in check_compaction()
127 nr_hugepages_ul = strtoul(nr_hugepages, NULL, 10); in check_compaction()
164 char nr_hugepages[20] = {0}; in set_zero_hugepages() local
172 if (read(fd, nr_hugepages, sizeof(nr_hugepages)) <= 0) { in set_zero_hugepages()
187 *initial_nr_hugepages = strtoul(nr_hugepages, NULL, 10); in set_zero_hugepages()
H A Drun_vmtests.sh165 # set proper nr_hugepages
167 nr_hugepgs=$(cat /proc/sys/vm/nr_hugepages)
173 if ! echo $((lackpgs + nr_hugepgs)) > /proc/sys/vm/nr_hugepages; then
272 nr_hugepages_tmp=$(cat /proc/sys/vm/nr_hugepages)
274 echo 1 > /proc/sys/vm/nr_hugepages
278 echo "$nr_hugepages_tmp" > /proc/sys/vm/nr_hugepages
312 echo "$nr_hugepgs" > /proc/sys/vm/nr_hugepages
337 nr_hugepages_tmp=$(cat /proc/sys/vm/nr_hugepages)
339 echo 8 > /proc/sys/vm/nr_hugepages
341 echo "$nr_hugepages_tmp" > /proc/sys/vm/nr_hugepages
[all...]
H A Dcharge_reserved_hugetlb.sh14 nr_hugepgs=$(cat /proc/sys/vm/nr_hugepages)
68 echo 0 >/proc/sys/vm/nr_hugepages
275 local nr_hugepages="$6"
287 echo nr hugepages = "$nr_hugepages"
288 echo "$nr_hugepages" >/proc/sys/vm/nr_hugepages
323 local nr_hugepages="${11}"
340 echo nr hugepages = "$nr_hugepages"
341 echo "$nr_hugepages" >/proc/sys/vm/nr_hugepages
588 echo "$nr_hugepgs" > /proc/sys/vm/nr_hugepages
H A Dhugetlb_reparenting_test.sh14 nr_hugepgs=$(cat /proc/sys/vm/nr_hugepages)
59 echo 0 >/proc/sys/vm/nr_hugepages
129 echo 100 >/proc/sys/vm/nr_hugepages
257 echo "$nr_hugepgs" > /proc/sys/vm/nr_hugepages
H A Dhugetlb-soft-offline.c104 unsigned long *nr_hugepages) in read_nr_hugepages() argument
124 *nr_hugepages = atoll(buffer); in read_nr_hugepages()
/linux/tools/testing/selftests/memfd/
H A Drun_hugetlbfs_test.sh26 nr_hugepgs=`cat /proc/sys/vm/nr_hugepages`
35 echo $(( $hpages_needed + $nr_hugepgs )) > /proc/sys/vm/nr_hugepages
50 echo $nr_hugepgs > /proc/sys/vm/nr_hugepages
67 echo $nr_hugepgs > /proc/sys/vm/nr_hugepages
/linux/tools/testing/selftests/kvm/x86_64/
H A Dnx_huge_pages_test.sh14 HUGE_PAGES=$(cat /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages)
43 sudo_echo "$(( $HUGE_PAGES + 3 ))" /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages
67 sudo_echo "$HUGE_PAGES" /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages
/linux/Documentation/ABI/testing/
H A Dsysfs-kernel-mm-hugepages11 - nr_hugepages
/linux/Documentation/admin-guide/sysctl/
H A Dvm.rst56 - nr_hugepages
611 nr_hugepages chapter
635 never explicitly allocating HugeTLB pages with 'nr_hugepages' but only set
649 pages, you can set "nr_hugepages" to 0 first and then disable this. Note that
650 writing 0 to nr_hugepages will make any "in use" HugeTLB pages become surplus
669 nr_hugepages + nr_overcommit_hugepages.
/linux/mm/
H A Dhugetlb.c4000 HSTATE_ATTR(nr_hugepages);