[FUG-BR] OT: Squid muito lento....

Giancarlo Rubio gianrubio em gmail.com
Quinta Maio 20 10:55:08 BRT 2010


Verificou DNS?

Em 20 de maio de 2010 10:15, Enio Marconcini # www.Enio.Pro.Br
<eniorm em gmail.com> escreveu:
> 2010/5/20 Patrick Tracanelli <eksffa em freebsdbrasil.com.br>
>
>>
>> Em 20/05/2010, às 09:53, Thiago J. Ruiz escreveu:
>>
>> > vc usa blacklists?
>> >
>> > Em 20 de maio de 2010 09:30, Enio Marconcini # www.Enio.Pro.Br <
>> > eniorm em gmail.com> escreveu:
>> >
>> >> amigos,
>> >> tenho um Squid 2.X (na realidade é o Lusca) rodando num servidor
>> FreeBSD,
>> >> com 1.5G de ram e processador Pentim 4 Dual Core
>> >>
>> >> de uns tempos pra cá ele ficou muito lento, até achei que era o
>> antivirus
>> >> integrado com o HAVP, mas o desativei, e mesmo assim o squid continua
>> >> lento...
>> >>
>>
>> Ficou lento mas o que você notou no processo? Como esta o consumo de CPU?
>> Quanto de RAM ele ta alocando? Quantas threads estão em uso?
>>
>> Ja conferiu seu I/O de disco como está?
>>
>> Cole a saída do seu top e do gstat que ajuda a diagnosticar :)
>>
>>
>> --
>> Patrick Tracanelli
>>
>> FreeBSD Brasil LTDA.
>> Tel.: (31) 3516-0800
>> 316601 em sip.freebsdbrasil.com.br
>> http://www.freebsdbrasil.com.br
>> "Long live Hanin Elias, Kim Deal!"
>>
>> -------------------------
>> Histórico: http://www.fug.com.br/historico/html/freebsd/
>> Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd
>>
>
>
> Patrick,
>
> eis a saida de gstat, fica assim a maior parte do tempo, é rara as vezes que
> aparece vermelho,
>
> dT: 1.001s  w: 1.000s
>  L(q)  ops/s    r/s   kBps   ms/r    w/s   kBps   ms/w   %busy Name
>    0      4      0      0    0.0      4     54    1.0    0.2| ad0
>    0      3      0      0    0.0      3     48    0.9    0.1| ad0s1
>    0      1      0      0    0.0      1      6    1.4    0.1| ad0s2
>    0      3      0      0    0.0      3     48    0.9    0.1| ad0s1a
>    0      0      0      0    0.0      0      0    0.0    0.0| ad0s1b
>    0      0      0      0    0.0      0      0    0.0    0.0| ad0s1c
>    0      0      0      0    0.0      0      0    0.0    0.0| ad0s1d
>    0      0      0      0    0.0      0      0    0.0    0.0| ad0s1e
>    0      0      0      0    0.0      0      0    0.0    0.0| ad0s1f
>    0      0      0      0    0.0      0      0    0.0    0.0| ad0s2a
>    0      0      0      0    0.0      0      0    0.0    0.0| ad0s2c
>    0      0      0      0    0.0      0      0    0.0    0.0| ad0s2d
>    0      0      0      0    0.0      0      0    0.0    0.0| ad0s2e
>    0      0      0      0    0.0      0      0    0.0    0.0| ad0s2f
>    0      1      0      0    0.0      1      6    1.5    0.1| ad0s2g
>    0      0      0      0    0.0      0      0    0.0    0.0| ad0s2h
>
>
> o top mostra isso, nos processos do squid
> (o servidor tem 1.5G de ram), está destinado 512 de ram para o Lusca
>
> last pid: 24559;  load averages:  0.00,  0.00,
> 0.00
> up 46+19:07:23  10:07:02
> 255 processes: 1 running, 254 sleeping
> CPU 0:  0.0% user,  0.0% nice,  0.0% system,  0.0% interrupt,  100% idle
> CPU 1:  0.0% user,  0.0% nice,  0.0% system,  0.8% interrupt, 99.2% idle
> Mem: 404M Active, 480M Inact, 181M Wired, 3204K Cache, 112M Buf, 415M Free
> Swap: 2048M Total, 536K Used, 2047M Free
>
>  PID USERNAME   THR PRI NICE   SIZE    RES STATE   C   TIME   WCPU COMMAND
> 24437 squid        1  44    0  3444K  1136K select  0   0:00  0.00% pinger
> 24410 squid       41  44    0 59864K 44072K ucond   1   0:00  0.00% squid
> 24411 squid        1   4    0  3508K  1092K sbwait  0   0:00  0.00%
> ncsa_auth
> 24412 squid        1   4    0  3508K  1092K sbwait  0   0:00  0.00%
> ncsa_auth
> 24417 squid        1   4    0  3508K   932K sbwait  1   0:00  0.00%
> ncsa_auth
> 24419 squid        1   4    0  3508K   932K sbwait  0   0:00  0.00%
> ncsa_auth
> 24422 squid        1   4    0  3508K   932K sbwait  0   0:00  0.00%
> ncsa_auth
> 24423 squid        1   4    0  3508K   932K sbwait  1   0:00  0.00%
> ncsa_auth
> 24414 squid        1   4    0  3508K   932K sbwait  1   0:00  0.00%
> ncsa_auth
> 24428 squid        1   4    0  3508K   932K sbwait  0   0:00  0.00%
> ncsa_auth
> 24427 squid        1   4    0  3508K   932K sbwait  1   0:00  0.00%
> ncsa_auth
> 24426 squid        1   4    0  3508K   932K sbwait  0   0:00  0.00%
> ncsa_auth
> 24424 squid        1   4    0  3508K   932K sbwait  0   0:00  0.00%
> ncsa_auth
> 24416 squid        1   4    0  3508K   932K sbwait  0   0:00  0.00%
> ncsa_auth
> 24421 squid        1   4    0  3508K   932K sbwait  0   0:00  0.00%
> ncsa_auth
> 24420 squid        1   4    0  3508K   932K sbwait  0   0:00  0.00%
> ncsa_auth
> 24415 squid        1   4    0  3508K   932K sbwait  1   0:00  0.00%
> ncsa_auth
> 24429 squid        1   4    0  3508K   932K sbwait  0   0:00  0.00%
> ncsa_auth
> 24430 squid        1   4    0  3508K   932K sbwait  1   0:00  0.00%
> ncsa_auth
> 24425 squid        1   4    0  3508K   932K sbwait  0   0:00  0.00%
> ncsa_auth
> 24418 squid        1   4    0  3508K   932K sbwait  0   0:00  0.00%
> ncsa_auth
> 24413 squid        1   4    0  3508K   932K sbwait  0   0:00  0.00%
> ncsa_auth
> 24431 squid        1  -8    0  1404K   516K piperd  0   0:00  0.00% unlinkd
> 24408 squid        1   8    0 12724K  2464K wait    0   0:00  0.00% squid
>
>
> e só pra complementar, o netstat -m mostra
>
> valinor# netstat -m
> 389/45151/45540 mbufs in use (current/cache/total)
> 387/847/1234/25600 mbuf clusters in use (current/cache/total/max)
> 386/510 mbuf+clusters out of packet secondary zone in use (current/cache)
> 0/403/403/12800 4k (page size) jumbo clusters in use
> (current/cache/total/max)
> 0/0/0/6400 9k jumbo clusters in use (current/cache/total/max)
> 0/0/0/3200 16k jumbo clusters in use (current/cache/total/max)
> 871K/14593K/15465K bytes allocated to network (current/cache/total)
> 0/0/0 requests for mbufs denied (mbufs/clusters/mbuf+clusters)
> 0/0/0 requests for jumbo clusters denied (4k/9k/16k)
> 0/28/6656 sfbufs in use (current/peak/max)
> 0 requests for sfbufs denied
> 0 requests for sfbufs delayed
> 426 requests for I/O initiated by sendfile
> 0 calls to protocol drain routines
>
>
> e mais alguns detalhes:
>
> # ps -auxdm
>
> squid  24408  0.0  0.2 12724  2464  ??  Is    9:33AM   0:00.00 |--
> /usr/local/sbin/squid -D
> squid  24410  0.0  2.9 59864 44520  ??  S     9:33AM   0:13.95 | `-- (squid)
> -D (squid)
> squid  24411  0.0  0.1  3508  1092  ??  Is    9:33AM   0:00.01 |   |--
> (ncsa_auth) /usr/local/etc/squid/passwd_squid (ncsa_auth)
> squid  24412  0.0  0.1  3508  1092  ??  Is    9:33AM   0:00.00 |   |--
> (ncsa_auth) /usr/local/etc/squid/passwd_squid (ncsa_auth)
> squid  24413  0.0  0.1  3508   932  ??  Is    9:33AM   0:00.00 |   |--
> (ncsa_auth) /usr/local/etc/squid/passwd_squid (ncsa_auth)
> squid  24414  0.0  0.1  3508   932  ??  Is    9:33AM   0:00.00 |   |--
> (ncsa_auth) /usr/local/etc/squid/passwd_squid (ncsa_auth)
> squid  24415  0.0  0.1  3508   932  ??  Is    9:33AM   0:00.00 |   |--
> (ncsa_auth) /usr/local/etc/squid/passwd_squid (ncsa_auth)
> squid  24416  0.0  0.1  3508   932  ??  Is    9:33AM   0:00.00 |   |--
> (ncsa_auth) /usr/local/etc/squid/passwd_squid (ncsa_auth)
> squid  24417  0.0  0.1  3508   932  ??  Is    9:33AM   0:00.00 |   |--
> (ncsa_auth) /usr/local/etc/squid/passwd_squid (ncsa_auth)
> squid  24418  0.0  0.1  3508   932  ??  Is    9:33AM   0:00.00 |   |--
> (ncsa_auth) /usr/local/etc/squid/passwd_squid (ncsa_auth)
> squid  24419  0.0  0.1  3508   932  ??  Is    9:33AM   0:00.00 |   |--
> (ncsa_auth) /usr/local/etc/squid/passwd_squid (ncsa_auth)
> squid  24420  0.0  0.1  3508   932  ??  Is    9:33AM   0:00.00 |   |--
> (ncsa_auth) /usr/local/etc/squid/passwd_squid (ncsa_auth)
> squid  24421  0.0  0.1  3508   932  ??  Is    9:33AM   0:00.00 |   |--
> (ncsa_auth) /usr/local/etc/squid/passwd_squid (ncsa_auth)
> squid  24422  0.0  0.1  3508   932  ??  Is    9:33AM   0:00.00 |   |--
> (ncsa_auth) /usr/local/etc/squid/passwd_squid (ncsa_auth)
> squid  24423  0.0  0.1  3508   932  ??  Is    9:33AM   0:00.00 |   |--
> (ncsa_auth) /usr/local/etc/squid/passwd_squid (ncsa_auth)
> squid  24424  0.0  0.1  3508   932  ??  Is    9:33AM   0:00.00 |   |--
> (ncsa_auth) /usr/local/etc/squid/passwd_squid (ncsa_auth)
> squid  24425  0.0  0.1  3508   932  ??  Is    9:33AM   0:00.00 |   |--
> (ncsa_auth) /usr/local/etc/squid/passwd_squid (ncsa_auth)
> squid  24426  0.0  0.1  3508   932  ??  Is    9:33AM   0:00.00 |   |--
> (ncsa_auth) /usr/local/etc/squid/passwd_squid (ncsa_auth)
> squid  24427  0.0  0.1  3508   932  ??  Is    9:33AM   0:00.00 |   |--
> (ncsa_auth) /usr/local/etc/squid/passwd_squid (ncsa_auth)
> squid  24428  0.0  0.1  3508   932  ??  Is    9:33AM   0:00.00 |   |--
> (ncsa_auth) /usr/local/etc/squid/passwd_squid (ncsa_auth)
> squid  24429  0.0  0.1  3508   932  ??  Is    9:33AM   0:00.00 |   |--
> (ncsa_auth) /usr/local/etc/squid/passwd_squid (ncsa_auth)
> squid  24430  0.0  0.1  3508   932  ??  Is    9:33AM   0:00.00 |   |--
> (ncsa_auth) /usr/local/etc/squid/passwd_squid (ncsa_auth)
> squid  24437  0.0  0.1  3444  1136  ??  Ss    9:33AM   0:00.02 |   |--
> (pinger) (pinger)
> squid  24431  0.0  0.0  1404   516  ??  Is    9:33AM   0:00.00 |   `--
> (unlinkd) (unlinkd)
>
>
> --
> ENIO RODRIGO MARCONCINI
> gtalk: eniorm em gmail.com
> skype: eniorm
> msn: /dev/null
>
> .: FreeBSD -:- OpenBSD -:-Slackware Linux :.
> Have trouble with Windows - reboot!
> Have trouble with Unix - be root!
> -------------------------
> Histórico: http://www.fug.com.br/historico/html/freebsd/
> Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd
>



-- 
Giancarlo Rubio


Mais detalhes sobre a lista de discussão freebsd