← 返回命令列表

Linux command

stressapptest 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Run memory stress

stressapptest -s [60]

With specific memory

stressapptest -M [1024] -s [60]

File test

stressapptest -f [/tmp/testfile] -s [60]

Verbose output

stressapptest -v [2] -s [60]

Multiple memory copy threads

stressapptest -m [4] -s [60]

With CPU stress threads

stressapptest -C [4] -s [60]

Direct disk test

stressapptest -d [/dev/sda] -s [60]

说明

stressapptest (Stressful Application Test) is a memory and hardware verification tool developed by Google to find errors in memory subsystems, disk I/O, and other hardware components. It generates realistic high-load patterns that exercise the memory bus, cache hierarchy, and storage pathways to expose intermittent hardware faults. The tool allocates a configurable amount of memory and continuously writes data patterns, reads them back, and verifies correctness. This approach is effective at detecting ECC memory errors, faulty DIMM modules, memory controller issues, and thermal throttling problems. File I/O tests can be included to stress disk and storage controller hardware simultaneously. Stressapptest is particularly useful for qualifying new hardware, burn-in testing servers before production deployment, and diagnosing systems that exhibit intermittent crashes or data corruption under load.

参数

-s _SEC_
Duration seconds.
-M _MB_
Memory in MB.
-m _N_
Number of memory copy threads.
-C _N_
Number of CPU stress threads.
-i _N_
Number of memory invert threads.
-f _FILE_
Add a disk thread with tempfile.
-d _DEV_
Add a direct write disk thread with block device (or file).
-n _IP_
Add a network thread connecting to the specified IP address.
-v _LEVEL_
Verbosity level.
-l _FILE_
Log file.
-W
Use warm copy (memory copy with cache warming).
-A
Run in degraded mode on incompatible systems.

FAQ

What is the stressapptest command used for?

stressapptest (Stressful Application Test) is a memory and hardware verification tool developed by Google to find errors in memory subsystems, disk I/O, and other hardware components. It generates realistic high-load patterns that exercise the memory bus, cache hierarchy, and storage pathways to expose intermittent hardware faults. The tool allocates a configurable amount of memory and continuously writes data patterns, reads them back, and verifies correctness. This approach is effective at detecting ECC memory errors, faulty DIMM modules, memory controller issues, and thermal throttling problems. File I/O tests can be included to stress disk and storage controller hardware simultaneously. Stressapptest is particularly useful for qualifying new hardware, burn-in testing servers before production deployment, and diagnosing systems that exhibit intermittent crashes or data corruption under load.

How do I run a basic stressapptest example?

Run `stressapptest -s [60]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -s _SEC_ do in stressapptest?

Duration seconds.