[FUGSPBR] problemas com squid + cache em memória RAM
Felipe Neuwald
neuwald em rudah.com.br
Sex Jun 27 17:13:40 BRT 2003
Companheiros,
tenho aqui um squid rodando como proxy transparente na minha rede, e com o
cache todo em memória RAM. Desde que eu coloquei ele para funcionar eu venho
tido problemas como reinicialização inesperada da máquina, e o processo squid
morrendo. Tenho 1Gb de memória RAM, sendo que crio um disco na memória RAM com
248Mb, pelo mount_mfs. Na configuração do meu squid, estou cada vez mais
diminuindo a capacidade do meu cache. Meu cache_mem e cache_dir estão assim:
cache_mem 200 MB
cache_dir ufs /mnt/mem 200 16 256
E nos logs, quando acontecem as paradas:
(squid morrendo)
...
Jun 27 12:04:54 fernanda /kernel: pid 5106 (squid), uid 65534: exited on signal 6
Jun 27 12:04:54 fernanda /kernel: Jun 27 12:04:54 fernanda /kernel: pid 5106
(squid), uid 65534: exited on signal 6
Jun 27 12:04:54 fernanda squid[150]: Squid Parent: child process 5106 exited
due to signal 6
Jun 27 12:04:57 fernanda squid[150]: Squid Parent: child process 6004 started
Jun 27 12:04:57 fernanda /kernel: pid 6004 (squid), uid 65534: exited on signal 6
Jun 27 12:04:57 fernanda /kernel: Jun 27 12:04:57 fernanda /kernel: pid 6004
(squid), uid 65534: exited on signal 6
Jun 27 12:04:57 fernanda squid[150]: Squid Parent: child process 6004 exited
due to signal 6
Jun 27 12:05:00 fernanda /usr/sbin/cron[6008]: (root) CMD (
/usr/local/bin/mrtg /usr/local/etc/mrtg/mrtg.cfg)
Jun 27 12:05:00 fernanda /usr/sbin/cron[6009]: (root) CMD (/usr/libexec/atrun)
Jun 27 12:05:00 fernanda squid[150]: Squid Parent: child process 6013 started
Jun 27 12:05:01 fernanda /kernel: pid 6013 (squid), uid 65534: exited on signal 6
Jun 27 12:05:01 fernanda /kernel: Jun 27 12:05:01 fernanda /kernel: pid 6013
(squid), uid 65534: exited on signal 6
Jun 27 12:05:01 fernanda squid[150]: Squid Parent: child process 6013 exited
due to signal 6
Jun 27 12:05:04 fernanda squid[150]: Squid Parent: child process 6084 started
Jun 27 12:05:04 fernanda /kernel: pid 6084 (squid), uid 65534: exited on signal 6
Jun 27 12:05:04 fernanda /kernel: Jun 27 12:05:04 fernanda /kernel: pid 6084
(squid), uid 65534: exited on signal 6
Jun 27 12:05:04 fernanda squid[150]: Squid Parent: child process 6084 exited
due to signal 6
Jun 27 12:05:07 fernanda squid[150]: Squid Parent: child process 6087 started
Jun 27 12:05:08 fernanda /kernel: pid 6087 (squid), uid 65534: exited on signal 6
Jun 27 12:05:08 fernanda /kernel: Jun 27 12:05:08 fernanda /kernel: pid 6087
(squid), uid 65534: exited on signal 6
Jun 27 12:05:08 fernanda squid[150]: Squid Parent: child process 6087 exited
due to signal 6
Jun 27 12:05:11 fernanda squid[150]: Squid Parent: child process 6090 started
Jun 27 12:05:11 fernanda /kernel: pid 6090 (squid), uid 65534: exited on signal 6
Jun 27 12:05:11 fernanda /kernel: Jun 27 12:05:11 fernanda /kernel: pid 6090
(squid), uid 65534: exited on signal 6
Jun 27 12:05:11 fernanda squid[150]: Squid Parent: child process 6090 exited
due to signal 6
Jun 27 12:05:11 fernanda squid[150]: Exiting due to repeated, frequent failures
Jun 27 12:05:11 fernanda /kernel: Jun 27 12:05:11 fernanda squid[150]: Exiting
due to repeated, frequent failures
Jun 27 12:06:24 fernanda /kernel: Limiting closed port RST response from 213
to 200 packets per second
Jun 27 12:06:27 fernanda /kernel: Limiting closed port RST response from 208
to 200 packets per second
Jun 27 12:06:30 fernanda /kernel: Limiting closed port RST response from 210
to 200 packets per second
Jun 27 12:07:41 fernanda /kernel: Limiting closed port RST response from 203
to 200 packets per second
Jun 27 12:10:00 fernanda /usr/sbin/cron[6094]: (root) CMD (
/usr/local/bin/mrtg /usr/local/etc/mrtg/mrtg.cfg)
Jun 27 12:10:00 fernanda /usr/sbin/cron[6095]: (root) CMD (/usr/libexec/atrun)
Jun 27 12:15:00 fernanda /usr/sbin/cron[6168]: (root) CMD (
/usr/local/bin/mrtg /usr/local/etc/mrtg/mrtg.cfg)
Jun 27 12:15:00 fernanda /usr/sbin/cron[6169]: (root) CMD (/usr/libexec/atrun)
Jun 27 12:20:00 fernanda /usr/sbin/cron[6242]: (root) CMD (
/usr/local/bin/mrtg /usr/local/etc/mrtg/mrtg.cfg)
Jun 27 12:20:00 fernanda /usr/sbin/cron[6243]: (root) CMD (/usr/libexec/atrun)
Jun 27 12:21:09 fernanda /kernel: Shutting down daemon processes:
Jun 27 12:21:09 fernanda /kernel: squid: ERROR: Could not send
Jun 27 12:21:09 fernanda /kernel: signal 15 to process 6090: (3) No such process
Jun 27 12:21:09 fernanda /kernel: Sleeping for 30 seconds to allow squid to
shutdown..
...
(sistema reiniciando)
...
Jun 27 16:20:00 fernanda /kernel: Jun 27 16:20:00 fernanda /kernel: /mnt/mem/:
optimization changed from SPACE to TIME
Jun 27 16:20:00 fernanda /usr/sbin/cron[2432]: (root) CMD (
/usr/local/bin/mrtg /usr/local/etc/mrtg/mrtg.cfg)
Jun 27 16:20:00 fernanda /usr/sbin/cron[2433]: (root) CMD (/usr/libexec/atrun)
Jun 27 16:27:01 fernanda syslogd: restart
Jun 27 16:27:01 fernanda /kernel: panic: ffs_update: bad link cnt
Jun 27 16:27:01 fernanda /kernel:
Jun 27 16:27:01 fernanda /kernel: syncing disks...
...
Alguem aí usa uma solução parecida com essa? squid (transparente) + cache em
RAM e já teve problema parecidos?
Alguma solução, crítica ou idéia? :)
Saudações,
---
Felipe Neuwald
neuwald em rudah.com.br
Rudah On-Line SysAdm
_______________________________________________________________
Sair da Lista: http://www2.fugspbr.org/mailman/listinfo/fugspbr
Historico: http://www4.fugspbr.org/lista/html/FUG-BR/
Mais detalhes sobre a lista de discussão freebsd