aboutsummaryrefslogtreecommitdiff
path: root/system/memtester/README
blob: df134f1b2ee148a3188a7b784e5b52c55a40ef85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
memtester (memory test utility)

memtester is a userspace utility for testing the memory subsystem for
faults. Unlike memtest86, it runs as a process on a running Linux system,
meaning it can't test all of memory the way memtest86 is able to... but
you don't have to reboot to use it.

Note that, by definition, memtester counts as a denial-of-service
(resource exhaustion) attack against the local machine. Be cautious
about using it, and definitely *read its man page* before use.

memtester has traditionally been run as root, so that it can lock the
memory it's testing to prevent swapping and remapping. However, it's
possible to use capabilities to allow it to run correctly as a normal
user. Use something like:

# chown root:console /usr/bin/memtester
# chmod 0750 /usr/bin/memtester
# setcap cap_ipc_lock=ep /usr/bin/memtester

This allows anyone in the "console" group to run memtester. You could
also create a memtester group and use it in the chown command above,
if you'd rather have more fine-grained control.