• Around The HomeToggle Menu

    • Entertainment
    • Productivity
    • Smart Home
  • FamilyToggle Menu

    • Parenting
    • Toys
    • Pets
    • Travel
  • Product ReviewsToggle Menu

    • Phones
    • Tablets
    • Laptops
    • Desktops
    • Wearables
    • Audio
    • Cameras
    • Headphones
    • Printers
    • Smart Home
    • TVs
    • Gaming and Video
  • One Cool ThingToggle Menu

    • Frugal Tech
    • Kickstarters
    • Videos
Techwalla
  1. Home
  2. Around The Home
  3. Productivity
  4. How to Test the RAM on Linux

How to Test the RAM on Linux

By: Kristen Waters
  • Share
  • Share on Facebook

Faulty RAM memory can slow your computer to a crawl and cause programs to hang or close unexpectedly. The Memtester utility runs on Linux computers to stress test the memory directly from the operating system. Run the Memtester tool as a root user to properly lock the memory before carrying out the test. The utility's exit code will tell you if the memory is working properly or, if not, which portion of the test failed.

Reading important information
Woman looking at her computer in her office at night.
credit: DragonImages/iStock/Getty Images

Step

Open a Terminal or Konsole window. You can find these programs under the main programs menu or by right-clicking the desktop.

Step

Type the command "which memtester" to check if the memtester utility is installed on the computer.

Step

Install the memtester utility from the software repository, if it is not already installed. Ubuntu and Linux Mint users type "sudo apt-get install memtester" at the command line. Fedora users type "yum install memtester" at the command line.

Video of the Day

Step

Type the command "su -" to become the root user. Ubuntu and Linux Mint users type "sudo" immediately before the memtester command.

Step

Type the command "memtester 100 5" to test the memory. Replace "100" with the size, in megabytes, of the RAM installed on the computer. Replace "5" with the number of times you want to run the test.

Step

Type the command "echo $?" to show the exit code when you see a command prompt again. If the output is "0" the memory is working properly. The other possible outcomes are:

x01: Error allocating or locking memory, or invocation error x02: Error during stuck address test x04: Error during one of the other tests.

Step

Type the command "exit" to close the root session.

Show Comments

Related Articles

How to Build a Server

How to Build a Server

Around The Home
Productivity
By: Contributing Writer
How to Connect Ubuntu to Windows With a Crossover Cable

How to Connect Ubuntu to Windows With a Crossover Cable

Around The Home
Productivity
By: Andrea Helaine
How to Use VNC Viewer in Ubuntu

How to Use VNC Viewer in Ubuntu

Around The Home
Productivity
By: Kristen Waters
How to Read PDF File in Java

How to Read PDF File in Java

Around The Home
Productivity
By: James Cooper
How to Install an Operating System on a Computer

How to Install an Operating System on a Computer

Around The Home
Productivity
By: David Wayne
How to Find the Amount of RAM in Your System

How to Find the Amount of RAM in Your System

Around The Home
Productivity
By: Kim Linton
  • HOW WE SCORE
  • ABOUT US
  • CONTACT US
  • TERMS
  • PRIVACY POLICY
  • COPYRIGHT POLICY
  • Advertise

An error occurred. Try again later.

Thanks for signing up!
© 2019 Leaf Group Ltd. Leaf Group Media

Get great tech advice delivered to your inbox.

Keep your family productive, connected, entertained, and safe.

Please enter a valid email.