메뉴 닫기

linux 메모리 테스트

리얼 서버나 가상 서버를 운영할 계획이라면 서버 구축 전에 하드웨어적으로 서버에 문제가 있나 확인 과정을 거쳐야 합니다.

리눅스에서는 memtest86 이라는 툴로 간단히 메모리 상태를 확인 할수 있습니다.

서버 설치후 원인 모를 에러가 발생할시에도 확인차 해당 메모리 테스트 진행하는것도 서버 운영에 도움이 될것입니다.

  • 설치 방법(CentOS)

[root@dicaniu ~]# yum install memtest86+
Loaded plugins: fastestmirror
base                                                     | 3.6 kB     00:00     
extras                                                   | 3.4 kB     00:00     
updates                                                  | 3.4 kB     00:00     
(1/4): base/7/x86_64/group_gz                              | 155 kB   00:00     
(2/4): extras/7/x86_64/primary_db                          | 167 kB   00:00     
(3/4): base/7/x86_64/primary_db                            | 5.6 MB   00:01     
(4/4): updates/7/x86_64/primary_db                         | 5.6 MB   00:45     
Determining fastest mirrors
 * base: centos.mirror.cdnetworks.com
 * extras: centos.mirror.cdnetworks.com
 * updates: centos.mirror.cdnetworks.com
Resolving Dependencies
--> Running transaction check
---> Package memtest86+.x86_64 0:5.01-2.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package             Arch            Version                Repository     Size
================================================================================
Installing:
 memtest86+          x86_64          5.01-2.el7             base           83 k

Transaction Summary
================================================================================
Install  1 Package

Total download size: 83 k
Installed size: 431 k
Is this ok [y/d/N]: y

 

  • 설치 방법(Ubuntu)

root@dicaniu:~# apt install memtest86+
Reading package lists... Done
Building dependency tree 
Reading state information... Done
The following packages were automatically installed and are no longer required:
 linux-headers-4.4.0-59 linux-headers-4.4.0-59-generic
 linux-image-4.4.0-59-generic
Use 'apt autoremove' to remove them.
Suggested packages:
 hwtools memtester kernel-patch-badram memtest86 mtools
The following NEW packages will be installed:
 memtest86+
0 upgraded, 1 newly installed, 0 to remove and 84 not upgraded.
Need to get 70.0 kB of archives.
After this operation, 2,548 kB of additional disk space will be used.
Get:1 http://rCore-8.clouds.archive.ubuntu.com/ubuntu xenial/main amd64 memtest86+ amd64 5.01-3ubuntu2 [70.0 kB]
Fetched 70.0 kB in 1s (62.9 kB/s) 
Preconfiguring packages ...
Selecting previously unselected package memtest86+.
(Reading database ... 109550 files and directories currently installed.)
Preparing to unpack .../memtest86+_5.01-3ubuntu2_amd64.deb ...
Unpacking memtest86+ (5.01-3ubuntu2) ...
Setting up memtest86+ (5.01-3ubuntu2) ...
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.4.0-78-generic
Found initrd image: /boot/initrd.img-4.4.0-78-generic
Found linux image: /boot/vmlinuz-4.4.0-62-generic
Found initrd image: /boot/initrd.img-4.4.0-62-generic
Found linux image: /boot/vmlinuz-4.4.0-59-generic
Found initrd image: /boot/initrd.img-4.4.0-59-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
File descriptor 3 (pipe:[37617]) leaked on lvs invocation. Parent PID 23048: /bin/sh
done

 

  • 부팅 메뉴에서 memory test 선택

  • 선택후 F1 누르고 진행

    ※ 메모리 테스트후 에러가 출력된다면 메모리 교체후 테스트 진행 해야 합니다.

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 항목은 *(으)로 표시합니다