Bugfix: Failed memtester

This commit is contained in:
Sandino Araico Sanchez 2016-12-21 22:52:38 -06:00
parent 034f9e79f6
commit 10f79be654
4 changed files with 4 additions and 4 deletions

View file

@ -3,5 +3,5 @@ GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="quiet elevator=noop"
GRUB_CMDLINE_LINUX="elevator=noop"
GRUB_DISABLE_RECOVERY="true"

View file

@ -84,7 +84,7 @@ fi
# Hardcoded 13 GiB for debug
#MEM_TESTABLE=13631488
# Hardcoded 13 MiB for debug
#MEM_TESTABLE=16384
MEM_TESTABLE=16384
# Hardcoded 130 MiB for debug
#MEM_TESTABLE=163840
export MEM_TESTABLE

View file

@ -31,6 +31,7 @@ if [[ -f $OUTPUT_DIR/memtester.pass ]] ; then
fi
FAIL=0
if [[ $SUMMARY == 0 ]] ; then
if [[ -f $OUTPUT_DIR/memtester.fail ]] ; then
echo "Previuos failed test faound on "
@ -53,7 +54,6 @@ if [[ $SUMMARY == 0 ]] ; then
done
rm -f /run/memtester.waiting
FAIL=0
for (( PROC=1; PROC<=$CONCURRENCY; PROC=PROC+1 )) ; do
if [[ -f $OUTPUT_DIR/memtester_$PROC.ret ]] ; then
RET=`cat $OUTPUT_DIR/memtester_$PROC.ret | sed 's/[^0-9]//g'`

View file

@ -42,7 +42,7 @@ fi
#TPATTERN=0x55
TPATTERN=0xaa
#LST_BLCK=10000000 # TODO: Debug limit. Comment out for production
LST_BLCK=10000000 # TODO: Debug limit. Comment out for production
#SMARTLOG=15
SMARTLOG=300 # check every 5 min
BLK_SIZE=`cat /sys/block/$DISK/queue/physical_block_size`