- 下载地址
http://pyropus.ca/software/memtester/
- 下载
wget http://pyropus.ca/software/memtester/old-versions/memtester-4.5.1.tar.gz
- 解压
tar -zxvf memtester-4.5.1.tar.gz
- 编译安装
make && make install
执行过程如下
( cat warn-auto.sh; \
echo CC=\'`head -1 conf-cc`\'; \
echo LD=\'`head -1 conf-ld`\' \
) > auto-ccld.sh
cat auto-ccld.sh make-compile.sh > make-compile
chmod 755 make-compile
cat auto-ccld.sh find-systype.sh > find-systype
chmod 755 find-systype
./find-systype > systype
( cat warn-auto.sh; ./make-compile "`cat systype`" ) > \
compile
chmod 755 compile
./compile memtester.c
./compile tests.c
cat auto-ccld.sh make-load.sh > make-load
chmod 755 make-load
( cat warn-auto.sh; ./make-load "`cat systype`" ) > load
chmod 755 load
./extra-libs.sh "`cat systype`" >extra-libs
./load memtester tests.o `cat extra-libs`
mkdir -m 755 -p /usr/local/bin
install -m 755 memtester /usr/local/bin/
mkdir -m 755 -p /usr/local/man/man8
gzip -c memtester.8 >memtester.8.gz ; install -m 644 memtester.8.gz /usr/local/man/man8/
- 测试 申请1G内存,测试一次
memtester 1G 1