Home
last modified time | relevance | path

Searched refs:orig_shmmax (Results 1 – 2 of 2) sorted by relevance

/third_party/ltp/testcases/kernel/mem/hugetlb/hugeshmat/
Dhugeshmat04.c31 static long orig_shmmax = -1, new_shmmax; variable
91 SAFE_FILE_SCANF(PATH_SHMMAX, "%ld", &orig_shmmax); in setup()
111 if (orig_shmmax != -1) in cleanup()
112 SAFE_FILE_PRINTF(PATH_SHMMAX, "%ld", orig_shmmax); in cleanup()
/third_party/ltp/testcases/kernel/controllers/memcg/functional/
Dmemcg_lib.sh44 orig_shmmax=
168 orig_shmmax=$(cat /proc/sys/kernel/shmmax)
169 if [ $(echo "$orig_shmmax < $HUGEPAGESIZE" | bc) -eq 1 ]; then
176 if [ -n "$orig_shmmax" ]; then
177 echo "$orig_shmmax" > /proc/sys/kernel/shmmax