Lines Matching full:proc
139 # get huge pagesize and freepages from /proc/meminfo
147 done < /proc/meminfo
165 nr_hugepgs=$(cat /proc/sys/vm/nr_hugepages)
170 echo 3 > /proc/sys/vm/drop_caches
171 if ! echo $((lackpgs + nr_hugepgs)) > /proc/sys/vm/nr_hugepages; then
179 done < /proc/meminfo
220 echo 3 > /proc/sys/vm/drop_caches
222 echo 1 > /proc/sys/vm/compact_memory
256 shmmax=$(cat /proc/sys/kernel/shmmax)
257 shmall=$(cat /proc/sys/kernel/shmall)
258 echo 268435456 > /proc/sys/kernel/shmmax
259 echo 4194304 > /proc/sys/kernel/shmall
261 echo "$shmmax" > /proc/sys/kernel/shmmax
262 echo "$shmall" > /proc/sys/kernel/shmall
270 nr_hugepages_tmp=$(cat /proc/sys/vm/nr_hugepages)
272 echo 1 > /proc/sys/vm/nr_hugepages
276 echo "$nr_hugepages_tmp" > /proc/sys/vm/nr_hugepages
310 echo "$nr_hugepgs" > /proc/sys/vm/nr_hugepages
335 nr_hugepages_tmp=$(cat /proc/sys/vm/nr_hugepages)
336 enable_soft_offline=$(cat /proc/sys/vm/enable_soft_offline)
337 echo 8 > /proc/sys/vm/nr_hugepages
339 echo "$nr_hugepages_tmp" > /proc/sys/vm/nr_hugepages
340 echo "$enable_soft_offline" > /proc/sys/vm/enable_soft_offline
350 prev_policy=$(cat /proc/sys/vm/overcommit_memory)
351 echo 1 > /proc/sys/vm/overcommit_memory
353 echo $prev_policy > /proc/sys/vm/overcommit_memory
357 prev_nr_hugepages=$(cat /proc/sys/vm/nr_hugepages)
359 echo 6 > /proc/sys/vm/nr_hugepages
363 echo $prev_nr_hugepages > /proc/sys/vm/nr_hugepages
379 (echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope 2>&1) | tap_prefix
403 nr_hugepgs=$(cat /proc/sys/vm/nr_hugepages)
413 echo "$nr_hugepgs" > /proc/sys/vm/nr_hugepages
434 if grep xfs /proc/filesystems &>/dev/null; then