[FUG-BR] squid lento

Flavio Alexsandro Silva falexsandro em inbox.com
Quinta Agosto 30 12:45:57 BRT 2007


Carlos Eduardo Vasata wrote:
>    Gostaria de compartilhar as informações do meu squid
>    Abraços
>    Connection information for squid:
>            Number of clients accessing cache:      2025
>            Number of HTTP requests received:       4179781
>            Number of ICP messages received:        0
>            Number of ICP messages sent:    0
>            Number of queued ICP replies:   0
>            Request failure ratio:   0.00
>            Average HTTP requests per minute since start:   4065.7
>            Average ICP messages per minute since start:    0.0
>            Select loop called: 38337457 times, 1.609 ms avg
>    Cache information for squid:
>            Request Hit Ratios:     5min: 37.0%, 60min: 33.2%
>            Byte Hit Ratios:        5min: 3.9%, 60min: 4.5%
>            Request Memory Hit Ratios:      5min: 24.3%, 60min: 24.1%
>            Request Disk Hit Ratios:        5min: 19.6%, 60min: 22.7%
>            Storage Swap size:      9438190 KB
>            Storage Mem size:       1020420 KB
>            Mean Object Size:       5.54 KB
>            Requests given to unlinkd:      0
>    Median Service Times (seconds)  5 min    60 min:
>            HTTP Requests (All):   0.12783  0.12106
>            Cache Misses:          0.44492  0.42149
>            Cache Hits:            0.00463  0.00463
>            Near Hits:             0.01648  0.05046
>            Not-Modified Replies:  0.00379  0.00463
>            DNS Lookups:           0.00190  0.00190
>            ICP Queries:           0.00000  0.00000
>    Resource usage for squid:
>            UP Time:        61683.577 seconds
>            CPU Time:       11477.640 seconds
>            CPU Usage:      18.61%
>            CPU Usage, 5 minute avg:        39.70%
>            CPU Usage, 60 minute avg:       37.97%
>            Process Data Segment Size via sbrk(): -1674224 KB
>            Maximum Resident Size: 2502736 KB
>            Page faults with physical i/o: 1
>    Memory accounted for:
>            Total accounted:       1287477 KB
>            memPoolAlloc calls: 473804858
>            memPoolFree calls: 466656598
>    File descriptor usage for squid:
>            Maximum number of file descriptors:   16384
>            Largest file desc currently in use:   1489
>            Number of file desc currently in use: 1459
>            Files queued for open:                   0
>            Available number of file descriptors: 14925
>            Reserved number of file descriptors:   100
>            Store Disk files open:                   0
>            IO loop method:                     kqueue
>    Internal Data Structures:
>            1711542 StoreEntries
>            160526 StoreEntries with MemObjects
>            160366 Hot Object Cache Items
>            1702634 on-disk objects
>    Márcio Luciano Donada escreveu:
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Carlos Eduardo Vasata escreveu:
> 
> 
> Ola Como você obteve essas informações no squid?
> 
> 
> Olá,
> squidclient mgr:info
> 
> abraço,
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.5 (MingW32)
> 
> iD8DBQFG1r7bbjyCr4Ixg0wRAqfeAJoClSqg9JGshAJP/TpnLoe/y2AnCQCgsCK7
> v3VklSAfsLEBfEXXlzZikF0=
> =vWQC
> -----END PGP SIGNATURE-----
> 
> -------------------------
> Histórico: [1]http://www.fug.com.br/historico/html/freebsd/
> Sair da lista: [2]https://www.fug.com.br/mailman/listinfo/freebsd
> 
> References
> 
>    1. http://www.fug.com.br/historico/html/freebsd/
>    2. https://www.fug.com.br/mailman/listinfo/freebsd
> -------------------------
> Histórico: http://www.fug.com.br/historico/html/freebsd/
> Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd
Lutieri,

	Vamos partir para o lado onde pode ser algo no processo de compilacao 
do squid.
	Lembro que na epoca do squid 2.6.2 esse cara naum funcionava com ipfw 
(proxy transparente) e nem o coss andava... Entao tive que apelar...
	Alem das configuracoes normais, eu compilei ele com o gcc-4.0 na epoca 
e com as seguintes confs:
	make SQUID_CONFIGURE_ARGS="--enable-dlmalloc 
--enable-storeio=diskd,ufs,coss,aufs,null 
--enable-removal-policies=lru,heap --enable-coss-aio-ops --with-pthreads 
--with-aio"

	Será que se compilassemos este squid com gcc-4.2 (de agosto de 2007) e 
verificassemos se naum tem algumas opções que possamos passar no braco 
(como fiz acima) talvez naum resolveria o problema ?
	Ou talvez separar do squid os processos de consulta a dns, usando o 
dns_helper ?

	Apenas algumas ideias, pois pelo informacoes que voce postou me parece 
que realmente o sistema (FreeBSD 6-Stable) tah legal agora, restando 
apenas o tal do squid a ser analisado/retrabalhado!!!!


Abraços,

-- 
Flávio Alexsandro Silva
"Unix is user friendly. It's just selective about who its friends are."
"Linux is for people who hate Windows.
BSD is for people who love UNIX."

____________________________________________________________
FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop!
Check it out at http://www.inbox.com/earth


Mais detalhes sobre a lista de discussão freebsd