#1 lmbench-3.0-a3: bugs in scripts/config-run

closed-fixed
None
5
2004-08-05
2004-03-31
tstaudt
No

There are two bugs I found when executing
make results

The first one is in line 115 of scripts/config-run:
MB = $TOTAL_MEM
This causes an error on my SLES8 installation (zLinux).
It works after removing the blanks:
MB=$TOTAL_MEM
I think other Linux distributions might work with the
blanks left in, but the version without blanks should
work everywhere.

The second one is in lines 128ff of scripts/config-run:

echo $ECHON "MB [default $MB] $ECHOC"
read TMP
if [ X$TMP != X ]
then TOTAL_MEM=$TMP
fi
# Certain machines tend to barf when you try and bcopy 8MB.
# Figure out how much we can use.
echo "Checking to see if you have $MB MB; please wait
for a moment..."
AVAILMEM=`../bin/$OS/memsize $MB`
AVAILMEM=`../bin/$OS/memsize $MB`
AVAILMEM=`../bin/$OS/memsize $MB`

TOTAL_MEM is set to the value the user enters, but the
memory check is performed against the $MB value that
the system generates, so the user override never works.
Older versions of LMBench contain the following lines:

if [ X$TMP != X ]
then MB=$TMP
fi

so probably both MB and TOTAL_MEM should be set.

Discussion

  • Carl Staelin

    Carl Staelin - 2004-08-05

    Logged In: YES
    user_id=102874

    This bug has been fixed in the bkbits.net version of LMbench3.
    Thanks for the bug report...

    Carl

     
  • Carl Staelin

    Carl Staelin - 2004-08-05
    • assigned_to: nobody --> staelin
    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks