メモリが死ぬとログはどうなるのか
お客さんのとこにあるサーバが不自然に落ちたり、
動作が不安定になり、ログを見た結果、メモリが死んだと確信して取り替えました。
その時のログです。以前に同じ現象を経験していたので、
すぐに対処することにしました。
よくわからんメーカーのチップを使っていたのですが、
信頼あるサムソンチップにしてきました。
あと、信頼しているチップはハイニックスですね。
この2社のチップであればメモリは間違いないでしょう。
Sep 25 07:33:59 foo kernel: oom-killer: gfp_mask=0xd0 Sep 25 07:33:59 foo kernel: DMA per-cpu: Sep 25 07:33:59 foo kernel: cpu 0 hot: low 2, high 6, batch 1 Sep 25 07:33:59 foo kernel: cpu 0 cold: low 0, high 2, batch 1 Sep 25 07:33:59 foo kernel: Normal per-cpu: Sep 25 07:33:59 foo kernel: cpu 0 hot: low 32, high 96, batch 16 Sep 25 07:33:59 foo kernel: cpu 0 cold: low 0, high 32, batch 16 Sep 25 07:33:59 foo kernel: HighMem per-cpu: Sep 25 07:33:59 foo kernel: cpu 0 hot: low 14, high 42, batch 7 Sep 25 07:33:59 foo kernel: cpu 0 cold: low 0, high 14, batch 7 Sep 25 07:33:59 foo kernel: Sep 25 07:33:59 foo kernel: Free pages: 4132kB (392kB HighMem) Sep 25 07:33:59 foo kernel: Active:21449 inactive:8423 dirty:2541 writeback:0 unstable:0 free:1033 slab:223776 mapped:20889 pagetables:392 Sep 25 07:33:59 foo kernel: DMA free:1908kB min:16kB low:32kB high:48kB active:0kB inactive:4kB present:16384kB Sep 25 07:33:59 foo kernel: protections[]: 8 476 540 Sep 25 07:33:59 foo kernel: Normal free:1832kB min:936kB low:1872kB high:2808kB active:228kB inactive:1212kB present:901120kB Sep 25 07:33:59 foo kernel: protections[]: 0 468 532 Sep 25 07:33:59 foo kernel: HighMem free:392kB min:128kB low:256kB high:384kB active:85568kB inactive:32476kB present:122816kB Sep 25 07:33:59 foo kernel: protections[]: 0 0 64 Sep 25 07:33:59 foo kernel: DMA: 15*4kB 3*8kB 4*16kB 3*32kB 2*64kB 0*128kB 0*256kB 1*512kB 1*1024kB 0*2048kB 0*4096kB = 1908kB Sep 25 07:33:59 foo kernel: Normal: 0*4kB 1*8kB 0*16kB 1*32kB 0*64kB 0*128kB 1*256kB 1*512kB 1*1024kB 0*2048kB 0*4096kB = 1832kB Sep 25 07:33:59 foo kernel: HighMem: 22*4kB 4*8kB 3*16kB 1*32kB 1*64kB 1*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 392kB Sep 25 07:33:59 foo kernel: Swap cache: add 64931, delete 58711, find 6837/8034, race 0+0 Sep 25 07:33:59 foo kernel: Out of Memory: Killed process 24483 (mysqld). Sep 25 07:34:00 foo mysqld_safe[24499]: Number of processes running now: 0 Sep 25 07:34:00 foo mysqld_safe[24501]: restarted Sep 25 07:34:07 foo mysqld[24505]: 080925 7:34:07 InnoDB: Started Sep 25 07:34:07 foo mysqld[24505]: /usr/sbin/mysqld: ready for connections.