Linux command
memtester 命令
安全
权限或系统影响较大,执行前请核对目标。
常用示例
Test 1GB of memory
sudo memtester [1G] [1]
Test 512MB with 5 iterations
sudo memtester [512M] [5]
Test memory at a physical address
sudo memtester -p [0x10000000] [256M] [1]
Run infinite test
sudo memtester [1G] [0]
Test 2GB of memory
sudo memtester [2G] [3]
说明
memtester is a userspace utility for stress-testing memory subsystems. It allocates the specified amount of memory and runs a series of pattern tests to detect faults in RAM, including stuck address bits, coupling faults, and bit flips. The tests include: stuck address, random value, compare XOR, compare SUB, compare MUL, compare DIV, compare OR, compare AND, sequential increment, solid bits, block sequential, checkerboard, bit spread, bit flip, walking ones, and walking zeroes. memtester runs in userspace and tests virtual memory. For testing physical RAM at specific addresses (e.g., to confirm hardware faults), use the -p option with the physical address.
参数
- -p _PHYSADDR_
- Test memory starting at physical address PHYSADDR.
FAQ
What is the memtester command used for?
memtester is a userspace utility for stress-testing memory subsystems. It allocates the specified amount of memory and runs a series of pattern tests to detect faults in RAM, including stuck address bits, coupling faults, and bit flips. The tests include: stuck address, random value, compare XOR, compare SUB, compare MUL, compare DIV, compare OR, compare AND, sequential increment, solid bits, block sequential, checkerboard, bit spread, bit flip, walking ones, and walking zeroes. memtester runs in userspace and tests virtual memory. For testing physical RAM at specific addresses (e.g., to confirm hardware faults), use the -p option with the physical address.
How do I run a basic memtester example?
Run `sudo memtester [1G] [1]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -p _PHYSADDR_ do in memtester?
Test memory starting at physical address PHYSADDR.