Searched refs:nr_hugepages (Results 1 – 9 of 9) sorted by relevance
/external/linux-kselftest/tools/testing/selftests/vm/ |
D | compaction_test.c | 88 char nr_hugepages[10] = {0}; in check_compaction() local 122 if (read(fd, nr_hugepages, sizeof(nr_hugepages)) <= 0) { in check_compaction() 129 compaction_index = mem_free/(atoi(nr_hugepages) * hugepage_size); in check_compaction() 133 (atoi(nr_hugepages))); in check_compaction() 140 (atoi(nr_hugepages))); in check_compaction()
|
/external/linux-kselftest/tools/testing/selftests/memfd/ |
D | run_tests.sh | 29 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
|
D | run_hugetlbfs_test.sh | 26 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
|
/external/ltp/testcases/kernel/mem/hugetlb/hugemmap/ |
D | hugemmap05.c | 73 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/ |
D | 0013-ANDROID-build-vm-tests.patch | 38 -#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/ |
D | cpuset_memory_testset.sh | 181 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/ |
D | memcg_lib.sh | 362 nr_hugepages=`cat /proc/sys/vm/nr_hugepages` 367 echo $1 > /proc/sys/vm/nr_hugepages 403 echo $nr_hugepages > /proc/sys/vm/nr_hugepages
|
/external/ltp/testcases/kernel/numa/ |
D | numa01.sh | 418 Ori_hpgs=$(cat ${Sys_node}/node${node}/hugepages/hugepages-${HPAGE_SIZE}kB/nr_hugepages) 420 echo $New_hpgs >${Sys_node}/node${node}/hugepages/hugepages-${HPAGE_SIZE}kB/nr_hugepages 422 Chk_hpgs=$(cat ${Sys_node}/node${node}/hugepages/hugepages-${HPAGE_SIZE}kB/nr_hugepages) 439 echo $Ori_hpgs >${Sys_node}/node${node}/hugepages/hugepages-${HPAGE_SIZE}kB/nr_hugepages 444 echo $Ori_hpgs >${Sys_node}/node${node}/hugepages/hugepages-${HPAGE_SIZE}kB/nr_hugepages
|
/external/autotest/client/tests/libhugetlbfs/ |
D | libhugetlbfs.py | 20 nr_hugepages = utils.read_one_line('/proc/sys/vm/nr_hugepages') 21 pages_available = int(nr_hugepages)
|