[FUG-BR] Squid - processador x disco
Ricardo A. Reis
ricardo_bsd em yahoo.com.br
Quinta Julho 13 12:38:12 BRT 2006
> 1 máquina Athlon 2Ghz com HD Sata 1Ghz de Ram
>
> Qual das duas máquinas vocês acham que eu devo utilizar??? Devo dar
> preferência à máquina com 2 processadores, porém HD IDE, ou a máquina
> com 1 processador mas com HD Sata?
Bom eu o squid nao tem um ganho superior com SMP, recomendo usar a versao
com HD SATA,
claro que o diskd com SMP tem um performance digamos +/- melhor heuheu
Um exemplo de Squid pra +/- 3500 usuarios, um Xeon 2.66 3G RAM + HDS u320
e 2160
-----------------------------------------------------------------------------
last pid: 98902; load averages: 1.34, 1.63, 1.65 up 3+23:43:27
12:27:47
132 processes: 2 running, 130 sleeping
CPU states: 24.3% user, 0.0% nice, 57.7% system, 6.4% interrupt, 11.6%
idle
Mem: 2246M Active, 326M Inact, 332M Wired, 100M Cache, 199M Buf, 4384K Free
Swap: 2560M Total, 7948K Used, 2552M Free
PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND
512 squid 1 121 0 1221M 1214M RUN 962:41 37.79% squid
494 squid 1 116 0 906M 898M select 792:54 31.40% squid
95446 squid 1 4 0 2948K 1292K sbwait 1:04 0.63% squidGuard
95447 squid 1 4 0 2928K 1272K sbwait 0:54 0.20% squidGuard
772 dnscache 1 -8 0 1260K 572K piperd 24:54 0.00% multilog
63558 dnscache 1 96 0 89564K 88980K select 7:50 0.00% dnscache
623 squid 1 -4 0 1704K 828K msgwai 7:18 0.00% diskd
624 squid 1 -4 0 1704K 828K msgwai 7:18 0.00% diskd
657 squid 1 -4 0 1704K 832K msgwai 6:41 0.00% diskd
658 squid 1 -4 0 1704K 832K msgwai 6:23 0.00% diskd
614 squid 1 -8 0 1704K 828K biord 5:31 0.00% diskd
620 squid 1 -4 0 1704K 828K msgwai 5:22 0.00% diskd
622 squid 1 -4 0 1704K 828K msgwai 4:59 0.00% diskd
621 squid 1 -4 0 1704K 828K msgwai 4:58 0.00% diskd
----------------------------------------------------------------------------
1 users Load 2.10 1.78 1.72 Jul 13 12:31
Mem:KB REAL VIRTUAL VN PAGER SWAP PAGER
Tot Share Tot Share Free in out in out
Act 2292648 3788 2526612 10596 111280 count
All 3072588 6612 23136412 15168 pages
zfod Interrupts
Proc:r p d s w Csw Trp Sys Int Sof Flt cow 5325 total
3 15113 13660 1212 9557 8188 349 18 347772 wire 1:
atkb
2300568 act 6:
fdc0
62.0%Sys 14.6%Intr 23.4%User 0.0%Nice 0.0%Idl 321476 inact 12:
psm
| | | | | | | | | | 106932 cache 13:
npx
===============================+++++++>>>>>>>>>> 4348 free 15:
ata
daefr 3170 30:
em0
Namei Name-cache Dir-cache prcfr 160 49:
ahd
Calls hits % hits % react 50:
ahd
356 324 91 7 2 pdwak 1995
cpu0: time
pdpgs
Disks da0 da1 da2 pass0 pass1 pass2 pass3 intrn
KB/t 9.73 15.25 16.22 0.00 0.00 0.00 0.00 204096 buf
tps 15 101 44 0 0 0 0 952 dirtybuf
MB/s 0.14 1.51 0.70 0.00 0.00 0.00 0.00 100000 desiredvnodes
% busy 13 51 24 0 0 0 0 60245 numvnodes
25001 freevnodes
------------------------------
[ricardo at zzzzz(12:31pm)] ~> df -h |grep -e disk -e squid
/dev/da0s1g 27G 21G 6.0G
78% /disk-cache
/dev/da1 17G 12G 4.2G
74% /disk-cache1
/dev/da2s1e 19G 18G 1.1G
94% /disk-cache2
/dev/da2s1d 19G 14G 3.8G
78% /disk-cache3
/dev/da2s1f 19G 8.1G 11G
42% /squidlog
systat -ifstat 1
--------------------------
em0 in 5.077 Mb/s 24.851 Mb/s 34.531 MB
out 5.948 Mb/s 25.010 Mb/s 2.947 GB
Atenciosamente
Ricardo A. Reis
UNIFESP
Unix and Network Admin
_______________________________________________________
Yahoo! Acesso Grátis - Internet rápida e grátis. Instale
o discador agora!
http://br.acesso.yahoo.com
Mais detalhes sobre a lista de discussão freebsd