Re: Crusoe's performance on linux?

H. Peter Anvin
2003-06-26T04:08:50Z

Followup to: <bddptk$gqc$1@cesium.transmeta.com>
By author: "H. Peter Anvin" <hpa@zytor.com>
In newsgroup: linux.dev.kernel
>
> I have written a script to try to give a consistent compile benchmark;
> however, one still needs to make sure that DMA is turned on (hdparm -d
> /dev/hda); obviously, the compiler etc should not be on NFS.
>

Leave it to me to actually forget the script...

#!/bin/bash -x

KERNEL=/home/mirror/kernel.org/linux/kernel/v2.4/linux-2.4.21.tar.gz

if [ -d /tmp/build ]; then
umount /tmp/build > /dev/null 2>&1
rmdir /tmp/build
fi

mkdir -p /tmp/build
mount -t tmpfs none /tmp/build
cd /tmp/build
tar xfz $KERNEL
cd linux*
cp -f arch/i386/defconfig .config
yes "" | make oldconfig
make dep
start=`date`
time bash -c 'make -j3 bzImage > build.log 2>&1'
end=`date`
echo "Started: $start Ended: $end"

-hpa
--
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
Architectures needed: ia64 m68k mips64 ppc ppc64 s390 s390x sh v850 x86-64