Skip to content

rfjakob/umemtester

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

umemtester - Micro-Memtester

Very simple memory tester - the tiny sibling of memtester.

What it does:

  1. Allocate SIZE_MIB megabytes of RAM and mlockall() it
  2. Fill it with pseudorandom data from rand()
  3. Verify the contents

Usage

./umemtester SIZE_MIB

Example

$ ./umemtester 1000
testing 1000 MiB
warning: could not lock memory: Cannot allocate memory
filling
verifying
ok

Exit Value

  • 0 = ok
  • 1 = usage error
  • 2 = memory corruption