Exclude areas not assigned to Mckernel from direct map of all phys. memory
It's enabled by adding -s to mcreboot.sh. Cherry-pick of the following commit: commit b5c13ce51a5a4926c2cf11c817cd0d369ac4402d Author: Katsuya Horigome <katsuya.horigome.rj@ps.hitachi-solutions.com> Date: Mon Nov 20 09:40:41 2017 +0900 Include measures to prevent memory destruction on Linux side (This is rebase commit for merging to development+hfi)
This commit is contained in:
committed by
Masamichi Takagi
parent
221ce34da2
commit
38c3b2358a
16
test/mem_dest_prev/utils/gen_mem_chunks.sh
Executable file
16
test/mem_dest_prev/utils/gen_mem_chunks.sh
Executable file
@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
|
||||
NUMAS=$1
|
||||
MEM_SIZE=$2
|
||||
REP=$3
|
||||
CHUNKS=""
|
||||
|
||||
for numa in ${NUMAS}
|
||||
do
|
||||
for rep in `seq 1 ${REP}`
|
||||
do
|
||||
CHUNKS="${CHUNKS}${MEM_SIZE}@${numa},"
|
||||
done
|
||||
done
|
||||
|
||||
echo ${CHUNKS%,}
|
||||
10
test/mem_dest_prev/utils/kill_mcexec.sh
Executable file
10
test/mem_dest_prev/utils/kill_mcexec.sh
Executable file
@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
count=`pgrep -c -f 'mcexec '`
|
||||
if [ ${count} -gt 0 ]
|
||||
then
|
||||
echo "kill process :" ${count}
|
||||
pgrep -l -f 'mcexec '
|
||||
pgrep -f 'mcexec ' | xargs kill -9
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user