Aviso aos navegantes pela Internet pelos cruzeiros do Squid. O squid configurado com 70 GB de cache em disco e 64 MB em memória, com mais de 5 milhões de ítens no cache, estoura os 512 MB de memória. O Sintoma típico disto é o squid caindo muitas vezes seguidas, e os downloads sendo interrompidos.
O limit da csh, e ulimit da sh, não excedem um limite "hard" setado pelo sistema no boot, que no meu caso eram estes 512 MB. Existem 2 meios de aumentar este limite. Um é compilando o kernel com a opção aumentando o tamanho máximo da área de dados e a outra é colocando uma opção para isto no /boot/loader.conf. Veja as informações tiradas do arquivo /usr/src/sys/conf/NOTES: " # # FreeBSD processes are subject to certain limits to their consumption # of system resources. See getrlimit(2) for more details. Each # resource limit has two values, a "soft" limit and a "hard" limit. # The soft limits can be modified during normal system operation, but # the hard limits are set at boot time. Their default values are # in sys/<arch>/include/vmparam.h. There are two ways to change them: # # 1. Set the values at kernel build time. The options below are one # way to allow that limit to grow to 1GB. They can be increased # further by changing the parameters: # # 2. In /boot/loader.conf, set the tunables kern.maxswzone, # kern.maxbcache, kern.maxtsiz, kern.dfldsiz, kern.maxdsiz, # kern.dflssiz, kern.maxssiz and kern.sgrowsiz. # # The options in /boot/loader.conf override anything in the kernel # configuration file. See the function init_param1 in # sys/kern/subr_param.c for more details. # options MAXDSIZ=(1024UL*1024*1024) options MAXSSIZ=(128UL*1024*1024) options DFLDSIZ=(1024UL*1024*1024) " Abraços a todos, João Rocha. -- "Sempre se apanha mais com as menores besteiras. Experiência própria." [EMAIL PROTECTED] [EMAIL PROTECTED] http://www.goffredo.eti.br ------------------------- Histórico: http://www.fug.com.br/historico/html/freebsd/ Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd