• Home
  • Raw
  • Download

Lines Matching full:pid

29 # $1 - Pid number.
33 local pid=$1
36 echo $(numastat -p $pid |awk '/^Total/ {print $'$node'}')
41 local pid=$1
43 local state=$(awk '{print $3}' /proc/$pid/stat)
79 pid=$!
81 TST_RETRY_FUNC "check_for_support_numa $pid" 0
83 Mem_curr=$(echo "$(extract_numastat_p $pid $node) * $MB" |bc)
87 kill -CONT $pid >/dev/null 2>&1
91 kill -CONT $pid >/dev/null 2>&1
113 pid=$!
115 TST_RETRY_FUNC "check_for_support_numa $pid" 0
117 Mem_curr=$(echo "$(extract_numastat_p $pid $Preferred_node) * $MB" |bc)
121 kill -CONT $pid >/dev/null 2>&1
126 kill -CONT $pid >/dev/null 2>&1
140 pid=$!
142 TST_RETRY_FUNC "check_for_support_numa $pid" 0
145 Mem_curr=$(echo "$(extract_numastat_p $pid $node) * $MB" |bc)
150 kill -CONT $pid >/dev/null 2>&1
155 kill -CONT $pid >/dev/null 2>&1
170 pid=$!
171 var=`awk '{ print $2 }' /proc/$pid/stat`
173 var=`awk '{ print $2 }' /proc/$pid/stat`
176 # Warning !! 39 represents cpu number, on which process pid is currently running and
178 running_on_cpu=$(awk '{ print $39; }' /proc/$pid/stat)
182 ROD kill -INT $pid
186 ROD kill -INT $pid
198 pid=$!
200 TST_RETRY_FUNC "check_for_support_numa $pid" 0
202 Mem_curr=$(echo "$(extract_numastat_p $pid $node) * $MB" |bc)
206 kill -CONT $pid >/dev/null 2>&1
210 kill -CONT $pid >/dev/null 2>&1
229 pid=$!
234 Mem_curr=$(echo "$(extract_numastat_p $pid $node) * $MB" |bc)
239 kill -KILL $pid >/dev/null 2>&1
244 kill -KILL $pid >/dev/null 2>&1
298 pid=$!
300 TST_RETRY_FUNC "check_for_support_numa $pid" 0
302 migratepages $pid $node $Preferred_node
304 Mem_curr=$(echo "$(extract_numastat_p $pid $Preferred_node) * $MB" |bc)
308 kill -CONT $pid >/dev/null 2>&1
313 kill -CONT $pid >/dev/null 2>&1
342 pid=$!
343 TST_RETRY_FUNC "check_for_support_numa $pid" 0
345 Mem_huge=$(echo $(numastat -p $pid |awk '/^Huge/ {print $'$((node+2))'}'))
351 kill -CONT $pid >/dev/null 2>&1
356 kill -CONT $pid >/dev/null 2>&1
384 pid=$!
386 TST_RETRY_FUNC "check_for_support_numa $pid" 0
388 Mem_curr=$(echo "$(extract_numastat_p $pid $Preferred_node) * 1024" |bc)
392 kill -CONT $pid >/dev/null 2>&1
397 kill -CONT $pid >/dev/null 2>&1