Searched refs:orig_shmmax (Results 1 – 2 of 2) sorted by relevance
31 static long orig_shmmax = -1, new_shmmax; variable91 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()
44 orig_shmmax=168 orig_shmmax=$(cat /proc/sys/kernel/shmmax)169 if [ $(echo "$orig_shmmax < $HUGEPAGESIZE" | bc) -eq 1 ]; then176 if [ -n "$orig_shmmax" ]; then177 echo "$orig_shmmax" > /proc/sys/kernel/shmmax