Linux диагностика оперативной памяти

How to check for errors in RAM via Ubuntu?

I have Ubuntu 11 running off a 3.6GB USB flash/stick drive. System has 4GB RAM and blank hard disk (wiped using DBAN tool). How do I check if there are no errors in my RAM? Is there a guaranteed way to check that via some Linux command? If not, it would be great to know why.

You can use memtester once booted into linux.. e.g. sudo memtester 1024 5 This should allocate 1024MB of memory, and repeat the test 5 times.

6 Answers 6

By installing the memtester package, you can check your system for errors while it’s still running. No need for a restart, just run that application.

To install it, open a terminal and type:

sudo apt install memtester 

You can then use it like so:

This should allocate 1024MB of memory, and repeat the test 5 times.

Update

  • If you have more RAM like 4GB or 8GB, it is up to you how much memory you want to allocate for testing.
  • As your operating system, current running process might take some amount of RAM, Please check available free RAM and assign that too memtester.
  • If you are using a 32 Bit System, you can’t test more than 4 GB even though you have more RAM (32 bit systems doesn’t support more than 3.5 GB RAM).
  • If your system is very busy and you still assigned higher than available amount of RAM, then the test might get your system into a deadlock, and leads to system to halt, be aware of this.
  • Run the memtester as root user, so that memtester process can malloc the memory, once its gets hold on that memory it will try to apply lock. if specified memory is not available, it will try to reduce required RAM automatically and try to lock it with mlock.
  • If you run it as a regular user, it can’t auto reduce the required amount of RAM, so it can’t lock it, it tries to get hold on that specified memory and starts exhausting all system resources.

Does this somehow mean that only a part of the memory is tested, and the rest remains untested? How can I make sure that all of the memory is tested?

Upvoted, but unless I’ve missed something it is not possible to do a thorough test of the entire memory using memtester as the system becomes totally unresponsive (or even memtester fails to claim the full extent of memory you are asking for). So I guess memtester ‘s use case is when you are trying to test a particular area of memory using some advanced arguments which I haven’t explored. Otherwise for a through scan use UNetbootin that runs before loading the operating system and any user programs (so the responsiveness issues becomes moot).

Читайте также:  Linux ubuntu чем лучше windows

Источник

Как запустить Memtest в Ubuntu 20.04

Оперативная память или ОЗУ — важная часть любой компьютерной системы. Если вы настраиваете новую среду Ubuntu или VPS (виртуальный частный сервер) и не имеете представления о деталях внутренней памяти вашей системы, например о том, сколько оперативной памяти установлено и используется в вашей системе, вы можете легко протестировать все информация о памяти вашего компьютера с помощью программы memtest. Memtests — это утилиты для тестирования памяти, предназначенные для проверки оперативной памяти вашего компьютера на наличие ошибок. По умолчанию в большинство дистрибутивов Linux, включая Ubuntu 20, включены более 86 программ memtest.04. Если программа memtest не включена в ваш дистрибутив, вы можете создать переносной тестовый диск с USB-накопителя, с которого будет загружаться и запускаться memtest. Эта утилита записывает тестовые шаблоны адресов памяти, считывает данные и сравнивает ошибки.

Эта статья покажет вам, как запустить memtest в Ubuntu 20.04. В статье также будет рассказано больше об утилитах командной строки memtester, которые можно использовать для проверки ошибок ОЗУ.

Предварительные условия

Чтобы выполнить тест памяти, показанный в этой статье, Ubuntu 20.04 должен быть установлен в вашей системе, а опция memtest86 + должна быть доступна в меню GRUB.

Как запустить Memtest86 + в Ubuntu 20.04

Выполнить тест памяти в Ubuntu легко по сравнению с другими дистрибутивами. Выполните следующие шаги, чтобы запустить memtest на вашем Ubuntu 20.04 система.

Шаг 1. Войдите в меню GRUB

Как вы знаете, Memtest86 + работает без операционной системы. Следовательно, у вас должен быть доступ к меню GRUB в Ubuntu. Включите или перезапустите вашу систему и удерживайте клавишу Shift, чтобы получить доступ к меню GRUB. При запуске системы отобразится следующее окно:

Шаг 2: выберите Memtest86+

Следующий список параметров будет отображаться в меню GRUB. Используя клавиши со стрелками, выберите опцию Memtest86 +, отмеченную стрелкой на изображении ниже:

Нажмите клавишу Enter, чтобы запустить программу Memtest86 +.

Шаг 3: Выйти из теста

Тест начнется автоматически в вашей системе и будет продолжаться до тех пор, пока вы не выйдете из текущего процесса, нажав клавишу «Esc». Лучше всего запускать тест за один полный проход. В окне вывода, показанном на следующем изображении, сведения о тесте выделены красным цветом.

Теперь вы успешно выполнили memtest в своей системе Ubuntu. Это похоже на игру, чтобы проверить, не обнаружены ли какие-либо ошибки или перезагружается ли ваша система. Рекомендуется запускать memtest для нескольких проходов, потому что иногда ошибка может быть обнаружена только на втором проходе. Каждый проход может занять много часов или дней, в зависимости от того, сколько памяти установлено в вашей системе. Итак, рекомендуется запускать тест памяти в конце дня, чтобы получить наилучшие результаты. Если ваша система имеет большой объем памяти и сбои случаются нечасто, то может быть хорошей идеей запустить тест на выходных. Если у вас есть память с кодом исправления ошибок (ECC), вы можете легко получить ошибки, выполнив только один проход. Он исправит все ошибки самостоятельно. Если у вас есть время выполнить второй проход для обнаружения ошибок, в этом случае мы рекомендуем вам это сделать.

Читайте также:  Scanning software for linux

Запустите тест памяти с помощью утилиты Memtester

Memtester — это утилита командной строки, которую можно использовать для проверки оперативной памяти на наличие ошибок.

Установить Memtester

Утилита memtester по умолчанию не установлена ​​в системе Ubuntu. Но вы можете установить утилиту с помощью следующей команды:

$ sudo apt установить memtester

Проверьте ошибки с помощью Memtester

После того, как memtester установлен в вашей системе, вы можете запустить команду memtester в своей системе, чтобы проверить оперативную память на наличие ошибок. Используйте следующий синтаксис для запуска команды memtester:

$ sudo memtester size итерация

В приведенной выше команде «размер» — это объем памяти, который вы хотите выделить, а «итерация» — это количество раз, когда команда запускается для проверки на наличие ошибок, или количество проходов.

Например, чтобы запустить команду memtester для памяти размером 200 МБ на 1 итерацию, приведенная выше команда изменится на следующий формат:

После ввода указанной выше команды на терминале должен отобразиться следующий вывод:

Заключение

Из информации, представленной в этой статье, вы узнали, как запустить Memtest86 + в Ubuntu 20.04. Эта функция может быть полезна, если ваша система много раз ломалась. Прежде чем отправлять отчет об ошибке, сначала следует выполнить тест памяти. Кроме того, вы также узнали, как запустить тест памяти с помощью утилиты командной строки memtester. Надеюсь, после прочтения этой статьи вы теперь можете выполнить тест памяти для своей собственной системы.

Как изменить направление прокрутки мыши и сенсорной панели в Windows 10

Мышь

Мышь а также Сенсорная панельs не только упрощают вычисления, но и делают их более эффективными и требуют меньше времени. Мы не можем представить себе.

Как изменить указатель мыши и размер курсора, цвет и схему в Windows 10

Мышь

Указатель мыши и курсор в Windows 10 — очень важные аспекты операционной системы. То же самое можно сказать и о других операционных системах, так что.

Бесплатные движки с открытым исходным кодом для разработки игр для Linux

Игры

В этой статье будет рассмотрен список бесплатных игровых движков с открытым исходным кодом, которые можно использовать для разработки 2D- и 3D-игр в L.

Свежие статьи об операционных системах. Множество интересных гайдов и полезных советов. Почувствуйте себя своим в мире современных технологий

Источник

How to Run Memtest in Ubuntu 22.04

Memtest is a computer software that is designed to test the computer’s RAM for errors. RAM is a random-access memory of a computer. This program writes the test patterns, reads the data and then checks for errors.

By default, there are 86+ Memtest programs in a Linux distribution’s system. Usually, you need to access GRUB menu for Memtest. However, Ubuntu 22.04 provides an additional tool to run Memtest.

How to Run Memtest in Ubuntu 22.04

Memtest is a memory test utility program that is used to write the test pattern to check errors for Computer’s RAM. There are two procedures to run the Memtest in Ubuntu 22.04.

  • How to run Memtest on Ubuntu 22.04 using Memtester
  • How to run Memtest on Ubuntu 22.04 using GRUB menu
Читайте также:  Все о linux freebsd

Method 1: How to Run Memtest on Ubuntu 22.04 using Memtester

The Memtester program provides the command line interface to run the Memtest on Ubuntu 22.04. Follow the below mentioned step-by-step guide to run Memtest in Ubuntu 22.04 using the Memtester.

Step 1: Install Memtester

Memtester is a command line program that is used to run Memtest utility on Ubuntu 22.04. Therefore, to install the Memtester on Ubuntu 22.04, run the following command in the Ubuntu’s terminal:

$ sudo apt install memtester 

The Memtester is installed successfully.

Step 2: Check for errors in RAM

After the successful installation of Memtester, you can check RAM for errors. To check the errors using Memtester, type and execute the following command in the terminal:

$ sudo memtester size iteration 

In the above-mentioned command, the ‘size’ and ‘iteration’ are used. Here, the size is the amount of allocated memory that is to be tested while the iteration is the number of repetitions(passes).

A user can set the size and iteration according to their choice. The following command is executed to run a Memtest where the value of size is set to 100M and the number of passes would be 1.

The output showed that RAM is checked for errors and the only iteration (as the number of passes were set to 1) shows that the RAM is in normal state.

Method 2: How to Run Memtest in Ubuntu 22.04 using GRUB menu

A user can also run the Memtest on Ubuntu 22.04 through accessing the GRUB menu. To run the Memtest in Ubuntu 22.04 via GRUB menu, follow the upcoming steps to perform Memtest using the GRUB menu.

To access the GRUB menu, restart the Ubuntu system and press the Shift key. It will open the following interface. Use the arrow key to move to memtest86+.elf and hit enter.

Note: We opted for the 2nd option because Memtest86 is the standard test used for 86-64 architectures.

Press the F1 to enter the Fail-Safe Mode. the Fail-Safe Mode skips the memory spaces and detects the type of memory.

If you don’t press F1, it automatically starts the procedure.

After that, the memory test will be started as shown in the following image.

The output shows that the Memtester is checking the RAM for errors. Here, Pass represents the iterations while Test represents the patterns.

Now, you are quite able to perform a memory test on Ubuntu 22.04.

Conclusion

Memtest can be run in Ubuntu 22.04 via GRUB menu or Memtester. Memtest is a memory test utility program that is used to test the computer’s RAM for errors. This tutorial illustrates the detailed knowledge with deep insight on how to run Memtest in Ubuntu 22.04. You have learned to run Memtest on Ubuntu 22.04 via the GRUB menu and the memtested (a command line utility to perform memtest on UBuntu).

TUTORIALS ON LINUX, PROGRAMMING & TECHNOLOGY

Источник

Оцените статью
Adblock
detector