Newsgroup: it.comp.os.linux.sys
Titolo: server out of memory

ciao a tutti
ho un server che fa un po' di capricci.
quasi regolarmente, ogni una/due settimane, in una notte nei weekend,
mi va in read-only (il fs di root intendo)
dalla rete non risponde, se non al ping.
tentando il login dal terminale lancia messaggi di out of memory.
ecco cosa vedo nei log file
il server ora fa solo da backup, mysql e apache erano 
su per sbaglio (non li avevo ancora disinstallati)
idee?
Dec  1 06:53:05 kronos kernel: Out of Memory: Killed process 995 (mysqld).
Dec  1 06:53:07 kronos /USR/SBIN/CRON[15488]: (mail) CMD (  if [ -x /usr/lib/exim/exim3 -a -f /etc/exim/exim.conf ]; then /usr/lib/exim/exim3 -q ; fi)
Dec  1 06:53:21 kronos kernel: oom-killer: gfp_mask=0xd0
Dec  1 06:53:22 kronos kernel: DMA per-cpu:
Dec  1 06:53:22 kronos kernel: cpu 0 hot: low 2, high 6, batch 1
Dec  1 06:53:22 kronos kernel: cpu 0 cold: low 0, high 2, batch 1
Dec  1 06:53:22 kronos kernel: Normal per-cpu:
Dec  1 06:53:22 kronos kernel: cpu 0 hot: low 32, high 96, batch 16
Dec  1 06:53:22 kronos kernel: cpu 0 cold: low 0, high 32, batch 16
Dec  1 06:53:22 kronos kernel: HighMem per-cpu:
Dec  1 06:53:22 kronos kernel: cpu 0 hot: low 14, high 42, batch 7
Dec  1 06:53:22 kronos kernel: cpu 0 cold: low 0, high 14, batch 7
Dec  1 06:53:22 kronos kernel:
Dec  1 06:53:22 kronos kernel: Free pages:        4736kB (644kB HighMem)
Dec  1 06:53:22 kronos kernel: Active:86787 inactive:76570 dirty:0 writeback:0 unstable:0 free:1184 slab:59373
mapped:163097 pagetables:33764
Dec  1 06:53:22 kronos kernel: DMA free:1908kB min:16kB low:32kB high:48kB active:508kB inactive:504kB present:16384kB
Dec  1 06:53:22 kronos kernel: protections[]: 8 476 540
Dec  1 06:53:22 kronos kernel: Normal free:2184kB min:936kB low:1872kB high:2808kB active:274276kB inactive:250148kB present:901120kB
Dec  1 06:53:22 kronos kernel: protections[]: 0 468 532
Dec  1 06:53:22 kronos kernel: HighMem free:644kB min:128kB low:256kB high:384kB active:72364kB inactive:55628kB present:131056kB
Dec  1 06:53:22 kronos kernel: protections[]: 0 0 64
Dec  1 06:53:22 kronos kernel: DMA: 155*4kB 57*8kB 30*16kB 11*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 1908kB
Dec  1 06:53:22 kronos kernel: Normal: 546*4kB 0*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 2184kB
Dec  1 06:53:22 kronos kernel: HighMem: 79*4kB 11*8kB 1*16kB 1*32kB 1*64kB 1*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 644kB
Dec  1 06:53:22 kronos kernel: Swap cache: add 252818, delete 252472, find 117/696, race 0+0
Dec  1 06:53:22 kronos kernel: Out of Memory: Killed process 28397 (apache2).
Dec  1 06:58:17 kronos smartd[1083]: Device: /dev/hda, SMART Prefailure Attribute: 8 Seek_Time_Performance changed from 244 to 249
Dec  1 06:58:19 kronos smartd[1083]: Device: /dev/hdc, SMART Prefailure Attribute: 8 Seek_Time_Performance changed from 243 to 248
Dec  1 06:58:29 kronos kernel: oom-killer: gfp_mask=0x1d2
Dec  1 06:58:29 kronos kernel: DMA per-cpu:
Dec  1 06:58:29 kronos kernel: cpu 0 hot: low 2, high 6, batch 1
Dec  1 06:58:29 kronos kernel: cpu 0 cold: low 0, high 2, batch 1
Dec  1 06:58:29 kronos kernel: Normal per-cpu:
Dec  1 06:58:29 kronos kernel: cpu 0 hot: low 32, high 96, batch 16
Dec  1 06:58:29 kronos kernel: cpu 0 cold: low 0, high 32, batch 16
Dec  1 06:58:29 kronos kernel: HighMem per-cpu:
Dec  1 06:58:29 kronos kernel: cpu 0 hot: low 14, high 42, batch 7
Dec  1 06:58:29 kronos kernel: cpu 0 cold: low 0, high 14, batch 7
Dec  1 06:58:29 kronos kernel:
Dec  1 06:58:29 kronos kernel: Free pages:        4304kB (252kB HighMem)
Dec  1 06:58:29 kronos kernel: Active:86961 inactive:76335 dirty:0 writeback:0 unstable:0 free:1076 slab:59363
mapped:163298 pagetables:33795
Dec  1 06:58:29 kronos kernel: DMA free:2012kB min:16kB low:32kB high:48kB active:804kB inactive:0kB present:16384kB
Dec  1 06:58:29 kronos kernel: protections[]: 8 476 540
Dec  1 06:58:29 kronos kernel: Normal free:2040kB min:936kB low:1872kB high:2808kB active:265076kB inactive:259548kB present:901120kB
Dec  1 06:58:29 kronos kernel: protections[]: 0 468 532
Dec  1 06:58:29 kronos kernel: HighMem free:252kB min:128kB low:256kB high:384kB active:81964kB inactive:45792kB present:131056kB
Dec  1 06:58:29 kronos kernel: protections[]: 0 0 64
Dec  1 06:58:29 kronos kernel: DMA: 151*4kB 72*8kB 30*16kB 11*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 2012kB
Dec  1 06:58:29 kronos kernel: Normal: 510*4kB 0*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 2040kB
Dec  1 06:58:29 kronos kernel: HighMem: 1*4kB 1*8kB 1*16kB 1*32kB 1*64kB 1*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 252kB
Dec  1 06:58:29 kronos kernel: Swap cache: add 254347, delete 254204, find 133/872, race 0+0
Dec  1 06:58:29 kronos kernel: Out of Memory: Killed process 15647 (exim4).
Dec  1 06:58:29 kronos kernel: oom-killer: gfp_mask=0x1d2
Dec  1 06:58:29 kronos kernel: DMA per-cpu:
Dec  1 06:58:29 kronos kernel: cpu 0 hot: low 2, high 6, batch 1
Dec  1 06:58:29 kronos kernel: cpu 0 cold: low 0, high 2, batch 1
Dec  1 06:58:29 kronos kernel: Normal per-cpu:
Dec  1 06:58:29 kronos kernel: cpu 0 hot: low 32, high 96, batch 16
Dec  1 06:58:29 kronos kernel: cpu 0 cold: low 0, high 32, batch 16
Dec  1 06:58:29 kronos kernel: HighMem per-cpu:
Dec  1 06:58:29 kronos kernel: cpu 0 hot: low 14, high 42, batch 7
Dec  1 06:58:29 kronos kernel: cpu 0 cold: low 0, high 14, batch 7
Dec  1 06:58:29 kronos kernel:
Dec  1 06:58:29 kronos kernel: Free pages:        4304kB (252kB HighMem)
Dec  1 06:58:29 kronos kernel: Active:81044 inactive:82400 dirty:0 writeback:0 unstable:0 free:1076 slab:59360
mapped:163290 pagetables:33791
Dec  1 06:58:29 kronos kernel: DMA free:2012kB min:16kB low:32kB high:48kB active:804kB inactive:0kB present:16384kB
Dec  1 06:58:29 kronos kernel: protections[]: 8 476 540
Dec  1 06:58:29 kronos kernel: Normal free:2040kB min:936kB low:1872kB high:2808kB active:262504kB inactive:262124kB present:901120kB
Dec  1 06:58:29 kronos kernel: protections[]: 0 468 532
Dec  1 06:58:29 kronos kernel: HighMem free:252kB min:128kB low:256kB high:384kB active:60868kB inactive:67476kB present:131056kB
Dec  1 06:58:29 kronos kernel: protections[]: 0 0 64
Dec  1 06:58:29 kronos kernel: DMA: 151*4kB 72*8kB 30*16kB 11*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 2012kB
Dec  1 06:58:29 kronos kernel: Normal: 510*4kB 0*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 2040kB
Dec  1 06:58:29 kronos kernel: HighMem: 1*4kB 1*8kB 1*16kB 1*32kB 1*64kB 1*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 252kB

 
boh. una volta era così, ora è totalmente idle.
ma potrebbe essere la ram?
o qualcosa di hardware?

 o qualcosa di hardware?
A me una volta capitava a causa di wmxmms, una dock applet di Wmaker che 
si "inlooppava" e cominciava a prendersi via tutta la RAM senza mai
rilasciarla, finché non s'imballava tutto.
Trattandosi di un server dubito che tu abbia X, Wmaker e relative docks,
ma magari hai un processo che fa la stessa cosa.
Magari fatti uno script che regolarmente faccia un dump su file della
memoria (tipo top -b -n 1 > /tmp/processi, es.) e poi te lo recapiti per
posta (così anche se s'imballa il disco, puoi analizzare il carico della
memoria) e se c'era un processo che se la "mangiava" tutta.
-- 
Massimo Bacilieri AKA Crononauta 
ICQ:4005815

 
questa è un'ottima idea.
grazie
max