Home
last modified time | relevance | path

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

/external/linux-kselftest/tools/testing/selftests/vm/
Dcompaction_test.c86 char nr_hugepages[10] = {0}; in check_compaction() local
120 if (read(fd, nr_hugepages, sizeof(nr_hugepages)) <= 0) { in check_compaction()
127 compaction_index = mem_free/(atoi(nr_hugepages) * hugepage_size); in check_compaction()
131 (atoi(nr_hugepages))); in check_compaction()
138 (atoi(nr_hugepages))); in check_compaction()
/external/linux-kselftest/tools/testing/selftests/memfd/
Drun_tests.sh29 nr_hugepgs=`cat /proc/sys/vm/nr_hugepages`
33 echo $(( $hpages_needed + $nr_hugepgs )) > /proc/sys/vm/nr_hugepages
52 echo $nr_hugepgs > /proc/sys/vm/nr_hugepages
68 echo $nr_hugepgs > /proc/sys/vm/nr_hugepages
/external/ltp/testcases/kernel/mem/hugetlb/hugemmap/
Dhugemmap05.c73 static long hugepagesize, nr_hugepages, nr_overcommit_hugepages; variable
192 tst_res(TINFO, "restore nr_hugepages to %ld.", nr_hugepages); in cleanup()
193 SAFE_FILE_PRINTF(path, "%ld", nr_hugepages); in cleanup()
234 SAFE_FILE_SCANF(path, "%ld", &nr_hugepages); in setup()
235 tst_res(TINFO, "original nr_hugepages is %ld", nr_hugepages); in setup()
/external/linux-kselftest/android/patches/
D0013-ANDROID-build-vm-tests.patch38 -#set proper nr_hugepages
40 - nr_hugepgs=`cat /proc/sys/vm/nr_hugepages`
46 - echo $(( $lackpgs + $nr_hugepgs )) > /proc/sys/vm/nr_hugepages
152 -echo $nr_hugepgs > /proc/sys/vm/nr_hugepages
174 +##set proper nr_hugepages
176 +# nr_hugepgs=`cat /proc/sys/vm/nr_hugepages`
182 +# echo $(( $lackpgs + $nr_hugepgs )) > /proc/sys/vm/nr_hugepages
290 +#echo $nr_hugepgs > /proc/sys/vm/nr_hugepages
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_memory_test/
Dcpuset_memory_testset.sh181 save_nr_hugepages=$(cat /proc/sys/vm/nr_hugepages)
182 echo $((2*$nr_mems)) > /proc/sys/vm/nr_hugepages
190 echo $save_nr_hugepages > /proc/sys/vm/nr_hugepages
191 if [ $(cat /proc/sys/vm/nr_hugepages) -ne $save_nr_hugepages ]; then
220 save_nr_hugepages=$(cat /proc/sys/vm/nr_hugepages)
221 echo $((2*$nr_mems)) > /proc/sys/vm/nr_hugepages
229 echo $save_nr_hugepages > /proc/sys/vm/nr_hugepages
230 if [ $(cat /proc/sys/vm/nr_hugepages) -ne $save_nr_hugepages ]; then
/external/ltp/testcases/kernel/controllers/memcg/functional/
Dmemcg_lib.sh354 nr_hugepages=`cat /proc/sys/vm/nr_hugepages`
359 echo $1 > /proc/sys/vm/nr_hugepages
395 echo $nr_hugepages > /proc/sys/vm/nr_hugepages
/external/ltp/testcases/kernel/numa/
Dnuma01.sh430 Ori_hpgs=$(cat ${Sys_node}/node${node}/hugepages/hugepages-${HPAGE_SIZE}kB/nr_hugepages)
432 echo $New_hpgs >${Sys_node}/node${node}/hugepages/hugepages-${HPAGE_SIZE}kB/nr_hugepages
434 Chk_hpgs=$(cat ${Sys_node}/node${node}/hugepages/hugepages-${HPAGE_SIZE}kB/nr_hugepages)
451 echo $Ori_hpgs >${Sys_node}/node${node}/hugepages/hugepages-${HPAGE_SIZE}kB/nr_hugepages
456 echo $Ori_hpgs >${Sys_node}/node${node}/hugepages/hugepages-${HPAGE_SIZE}kB/nr_hugepages
/external/autotest/client/tests/libhugetlbfs/
Dlibhugetlbfs.py20 nr_hugepages = utils.read_one_line('/proc/sys/vm/nr_hugepages')
21 pages_available = int(nr_hugepages)
/external/fio/
DHOWTO1478 :file:`/proc/sys/vm/nr_hugepages` on a Linux system. Fio assumes a huge page
1484 number in `nr_hugepages`, using **mmaphuge** or **shmhuge** will fail. Also