Running only specific tests in Memtester

Panucci uses memtester to run a pattern RAM test. All well and good, but some of these tests take forever – unfortunately, time is of the essence here. Fortunately, memtester offers a way to run only certain tests. From the documentation:

-add ability to run only specified tests by setting the environment
variable MEMTESTER_TEST_MASK to a bitmask of the indexes of the tests to be
run. Thanks: Ian Alexander.

This means that you can configure which tests run by adding a simple environment variable.

Things don’t work normally when you run using *sudo*, though, so we need to add it to /etc/environment, like this:

MEMTESTER_TEST_MASK=xxxxx

To generate the mask, look at the list of tests memtester runs:

Stuck Address : ok
Random Value : ok
Compare XOR : ok
Compare SUB : ok
Compare MUL : ok
Compare DIV : ok
Compare OR : ok
Compare AND : ok
Sequential Increment: ok
Solid Bits : ok
Block Sequential : ok
Checkerboard : ok
Bit Spread : ok
Bit Flip : ok
Walking Ones : ok
Walking Zeroes : ok
8-bit Writes : ok
16-bit Writes : ok

Simple create a binary number, with the most significant digit being the bottom of the list (i.e., 16-bit writes) and turning a test on with a 1 or off with a 0, being sure to leave out that “top” test, Stuck Address, since it runs no matter what. Take the full number and convert it to decimal, put it into the environment file, and run memtester again.

Stuck Address : ok
Random Value : ok
Compare XOR : ok
Compare SUB : ok
Compare MUL : ok
Compare DIV : ok
Compare OR : ok
Compare AND : ok
Sequential Increment: ok
Checkerboard : ok
Bit Flip : ok
Walking Ones : ok
8-bit Writes : ok
16-bit Writes : ok

Leave a Reply

Your email address will not be published. Required fields are marked *