In general, everyone can be happy, but I never liked the process of checking the RAM. Memtester, native to Linux, subjectively, works for too long before it finds something, and it does not always find it. Build a kernel or play around with archives is a good way to check the system for stability, but memory is not always to blame for glitches. And the most effective way, ultimately, is the good old Memtest86. But with it, it is necessary to monitor each computer separately, the whole process of automation is lost, and when there are too many computers, time also begins to tighten. Unfortunately, deprived of all sorts of cunning kvm'ami.VBoxManage createvm --name memtest --ostype Linux --register VBoxManage storagectl memtest --name "IDE Controller" --add ide VBoxManage storageattach memtest --storagectl "IDE Controller" --port 0 --device 0 --type dvddrive --medium /home/user/mt500b1.iso sudo sync sudo echo 3 > /proc/sys/vm/drop_caches a=`free -m | grep "cache:" | awk {'print $4'}` b=$(($a*20/100)) free=$(($a - $b)) cpus=$((`lscpu | grep "Core(s) per socket:" | awk {'print $4'}`*`lscpu | grep "Thread(s) per core:" | awk {'print $4'}`-1)) if [ $cpus -lt 1 ]; then cpus=1 fi VBoxManage modifyvm memtest --memory $free --cpus $cpus --ioapic on VBoxManage startvm memtest --type headless VBoxManage controlvm memtest poweroff VBoxManage debugvm memtest info vgatext -------------------------------------------------------------------------------- Memtest86+ 5.00b1 | Intel(R) Pentium(R) CPU G620 @ 2.60GHz CLK: 2600 MHz (X64 Mode) | Pass 10% ### L1 Cache: 64K 39386 MB/s | Test 4% # L2 Cache: 6144K 50971 MB/s | Test #6 [Moving inversions, random pattern] L3 Cache: None | Testing: 0K - 32M 32M of 1853M Memory : 1853M 14939 MB/s | Pattern: e2e5e6e8 R | Time: 0:00:16 ------------------------------------------------------------------------------ Core#: 0 | RAM: 0 MHz (DDR3- 0) - BCLK: 650 State: - | Timings: CAS 0-0-0-0 @ 64-bit Mode Cores: 1 Active / 1 Total (Run: All) | Pass: 0 Errors: 0 ------------------------------------------------------------------------------ SS (ESC)exit (c)configuration (SP)scroll_lock (CR)scroll_unlock -------------------------------------------------------------------------------- if [[ `VBoxManage debugvm memtest info vgatext | grep Errors: | awk {'print $13'}` > 0 ]];then "$path"/sendmess flog "`VBoxManage debugvm memtest info vgatext`" "$path"/sendmess nonstoperr "[error] Memtest" sleep 15 fi -------------------------------------------------------------------------------- Memtest86+ 5.00b1 | Intel(R) Core(TM) i3-2130 CPU @ 3.40GHz CLK: 3383 MHz (X64 Mode) | Pass 7% ## L1 Cache: 64K 51253 MB/s | Test 77% ############################## L2 Cache: 6144K 51253 MB/s | Test #5 [Moving inversions, 8 bit pattern] L3 Cache: None | Testing: 2048M - 3042M 994M of 3042M Memory : 3042M MB/s | Pattern: 80808080 | Time: 0:00:38 ------------------------------------------------------------------------------ Core#: 012 | RAM: 0 MHz (DDR3- 0) - BCLK: 845 State: --- | Timings: CAS 0-0-0-0 @ 64-bit Mode Cores: 3 Active / 3 Total (Run: All) | Pass: 0 Errors: 2 ------------------------------------------------------------------------------ Tst Pass Failing Address Good Bad Err-Bits Count CPU --- ---- ----------------------- -------- -------- -------- ----- ---- 3 0 0004396be2c - 1081.6MB 02020202 02020206 00000004 1 1 3 0 0004396bd3c - 1081.6MB 02020202 0202020a 00000008 2 1 (ESC)exit (c)configuration (SP)scroll_lock (CR)scroll_unlock -------------------------------------------------------------------------------- 
Source: https://habr.com/ru/post/173591/
All Articles