Search squid archive

Re: Squid on Freebsd 6

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Here we are using in this machine 3 Intel 82557 Pro/100 Ethernet

I will try to recompile the kernel without any "strange" option and try to 
adjust loader.conf

Thanks

Edinilson

---------------------------------------------------------
ATINET-Professional Web Hosting
Tel Voz: (0xx11) 4412-0876
http://www.atinet.com.br




----- Original Message ----- 
From: "H" <h@xxxxxxxxxxxx>
To: <squid-users@xxxxxxxxxxxxxxx>
Sent: Thursday, January 19, 2006 8:50 AM
Subject: Re:  Squid on Freebsd 6


On Wednesday 18 January 2006 18:22, Edinilson J. Santos wrote:
> I can't understand what is missing to run Squid on a Freebsd 6.0 decently
> in a Dual PIII 750Mhz with 1gb RAM, 4 SCSI HDs with 18gb each.
> We have in the past a Freebsd 4.8 box running squid for months without big
> problems, but with Freebsd 6.0 we are being crazy.
> Squid runs well for 1 or 2 days and become very slow...
> I'm sending the configuration we are using here. Any idea or tip will be
> apreciated.
>

Hi
I guess that you have certain tweaks lots too hight for only 1GB of RAM and 
it
may cause this troubles for you. BTW which NICs you are using?

You may like to start over and compile your kernel with max_users not set 
and
all tweaks disabled, this here is valid for 6.0 or higher

You should not compile maxdsize in kernel but set it in loader.conf as

kern.maxdsiz="1073741824"

also do not compile HZ but set in loader.conf as

kern.hz="1000" or 2000


> kern.polling.enable=1
is deprecated and you must set it with ifconfig on interface level but check
first if your nick support it

even if it should not slow down you may try higher SHM settings, but I don't
know the traffic you have

on SMP kernel you probably try SCHED_ULE instead of 4BSD but I have no
experience on intel, on amd[64] smp we get significant performance boost



> loader.conf
> autoboot_delay="5"
> kern.ipc.maxsockets=32768
> kern.ipc.nmbclusters=32768
> kern.ipc.nmbufs=131072
> kern.ipc.nsfbufs=6656
> kern.ipc.shm_use_phys=1
> kern.maxfiles=32768
> kern.maxproc=8192
> kern.maxswzone=33554432
> kern.nbuf=16384
> kern.ncallout=32768
> kern.vm.kmem.size=268435456
> kern.vm.pmap.shpgperproc=2048
> net.inet.tcp.tcbhashsize=16384
>
> sysctl.conf:
> kern.polling.enable=1
> net.inet.ip.fastforwarding=0
> net.inet.tcp.path_mtu_discovery=1
> net.link.ether.inet.log_arp_wrong_iface=0
> vm.v_free_min=131072
> vm.v_free_target=262144
> vm.f_free_reserved=32768
> vm.v_free_severe=65536
> vfs.vmiodirenable=1
> kern.ipc.somaxconn=8192
> kern.ipc.maxsockets=16424
> kern.ipc.maxsockbuf=16777216
> net.inet.tcp.sendspace=1048576
> net.inet.tcp.recvspace=1048576
> net.inet.udp.recvspace=65535
> net.inet.udp.maxdgram=57344
> net.local.stream.recvspace=65535
> net.local.stream.sendspace=65535
>
> interesting things from my kernel:
> options         MSGMNB=16384
> options         MSGMNI=41
> options         MSGSEG=2049
> options         MSGSSZ=64
> options         MSGTQL=512
> options         SHMSEG=16
> options         SHMMNI=32
> options         SHMMAX=2097152
> options         SHMALL=4096
> options         MAXDSIZ="(1024*1024*1024)"
> options         DFLDSIZ="(256*1024*1024)"
> options         DEVICE_POLLING
> options         HZ=1000
>
> Squid:
> Squid Cache: Version 2.5.STABLE12
> configure
> options:  --prefix=/usr/local/squid --enable-snmp
> --enable-storeio=diskd,ufs --enable-err-language=Portuguese
> --enable-default-err-language=Portuguese --enable-delay-pools
> --enable-underscores --enable-removal-policies=lru,heap
>
>
> Thanks in advance
>
> Edinilson
> ---------------------------------------------------------
> ATINET-Professional Web Hosting
> Tel Voz: (0xx11) 4412-0876
> http://www.atinet.com.br
>
>
>
>
>
>
>
>
> A mensagem foi scaneada pelo sistema de e-mail e pode ser considerada
> segura. Service fornecido pelo Datacenter Matik
> https://datacenter.matik.com.br

-- 


H.







A mensagem foi scaneada pelo sistema de e-mail e pode ser considerada 
segura.
Service fornecido pelo Datacenter Matik  https://datacenter.matik.com.br


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux