Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Aug 2000 10:36:39 +0200
From:      "Dave Wilson" <davew@sai.co.za>
To:        "Alejandro Ramirez" <ales@megared.net.mx>
Cc:        <freebsd-isp@FreeBSD.ORG>
Subject:   Re: [SQU] failrly big cache for lots of clients, extra tips ?
Message-ID:  <00af01c0075d$1a450de0$112821c4@sai.co.za>
References:  <004501c006d7$d4c06dd0$112821c4@sai.co.za> <045501c00701$d94ae5e0$02c134c8@megared.net.mx>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Alejandro,

Thanks for those tips I will give it a try.
Also any ideas on how to get squid to not use excessive bandwidth ?

Regards
Dave Wilson
The S.A. Internet
(033) 3456777
0825496159
http://www.sai.co.za
 "Who is General Failure and why is he reading my hard drive ?"

----- Original Message -----
From: "Alejandro Ramirez" <ales@megared.net.mx>
To: "Dave Wilson" <davew@sai.co.za>
Sent: Tuesday, August 15, 2000 11:43 PM
Subject: Re: [SQU] failrly big cache for lots of clients, extra tips ?


> > Any ideas ?
>
> Lots of them :o)
>
> Optimization Tips for Increase the Server Performance Amazingly
>
> Try enabling this options in your Makefile (squid port), to improve
> performance
>
> #  - Optimize time updates to one per second rather than calling
> gettimeofday()
> CONFIGURE_ARGS+= --enable-time-hack
> #  - Compile out code that does optional Ident (RFC931) lookups
> CONFIGURE_ARGS+= --disable-ident-lookups
> #  - Enable Illegal Caracter "_" in the URL
> CONFIGURE_ARGS+= --enable-underscores
> #  - Compile out code for ICP protocol
> CONFIGURE_ARGS+= --disable-icp
> #  - Enable The use of truncate() instead of unlink()
> CONFIGURE_ARGS+= --enable-truncate
>
> recompile & install the new squid binary
>
> After that, try enabling SoftUpdates, its an special code builted in the
> kernel for the filesystems, this code will let your filesystem run as fast
> as async filesystems, but as reliable as ufs filesystems, its just
great!!!
>
> Also, mount your squid partition with the "noatime" option, you can add
this
> in "/etc/fstab" file.
>
> You have to disable memory pools in your squid.conf file, and lower
> persistent connections to 15 seconds, set all of this options to get a
real
> squid cache engine at full speed
>
> memory_pools off
> pconn_timeout 15 seconds
> half_closed_clients off
> connect_timeout 10 seconds
> quick_abort_min 1 KB
> quick_abort_max 1 KB
> quick_abort_pct 10
> log_fqdn off
> log_mime_hdrs off
> cache_store_log none
> cache_access_log /dev/null
> ipcache_size 32768
> cache_mem  32 MB
>
> This options has been the best ones I have found for a Dual PIII 600 1GB
> RAM, 60GB Cache Disk, it supports 9542 req/min peak reported until now for
> 6500 cable modem users.
>
> Also try not to use more than 6GB size squid cache dirs, I mean if you
have
> one 18GB disk, try using 3 lines like the following:
>
> cache_dir ufs /cache/0 6000 16 256
> cache_dir ufs /cache/1 6000 16 256
> cache_dir ufs /cache/2 6000 16 256
>
> this first level & second level directory configuration has been the
fastest
> ones the default, I have used a formula floating around to calculate the
1&2
> levels for directories depending on the size of the partition to use, made
> some tests, used one line for 18GB filesystem, but the performance got
> degraded badly.
>
> Rebuild your kernel without needed drivers, and use the following options
in
> your kernel config file too:
>
> options         "MAXDSIZ=(512*1024*1024)"        #Support for a single
> proccess to use up to 512MB in RAM
>
> options         "DFLDSIZ=(512*1024*1024)"         #Default size of in RAM
> for a single proccess
>
> options         PQ_LARGECACHE                         #Use all the cache
in
> the PII & PIII proccessors
>
> Add as much RAM as you can.
>
> I Hope this can help you out to get the best out of Squid & FreeBSD.
>
> Greetings...
> Ales
>
>
>
>



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00af01c0075d$1a450de0$112821c4>