squid will not use disk space more than the one you have specify in the
configuration files (see the cache_dir parameter). as how much space you
need for cache, it really depends on your users behavior.. in my case,
i only need around as much as the data being downloaded from the internet
in a day. this because most of the sites being access are non-cacheable.
so give your squid a try and see how much space you need.
squid will automaticaly 'rotate' the content according to the algorithm you
have chosen in the squid configuration file (see the cache_replacement_policy
parameter).
squid does take a lot of memory.. in short you could read
http://www.squid-cache.org/Doc/FAQ/FAQ-8.html#ss8.11
i suggest you should read the squid configuration sample file. it has a lot
information in need.
Quoting Zabrina Mohamad <Zabrina@seccom.com.my>:
> Thanks Mark,
>
> Just for your info, my server is having 2GB memory and we have about
> 550users. At the moment I have not migrate them yet, that's why I
> need to understand further on squid behaviour prior moving them in
> to ensure no performance issue or major problem.
>
> I have configured my cache_mem to 1GB, is that enough for the number
> of users? can you recommend for the appropriate value..
> I would appreciate if you eleborate further when you say it will be
> taken care automatically..does that mean that I have to configure
> anywhere?
> What worry me is when it start to purge/clear cache, will it affect
> the performance i.e slow surfing..
>
> another thing is I realize the free memory have been gradually
> decrease. I don't know what is eating up the memory and when is it
> going to stop.
> Below is the snapshot of top command.
>
> top - 15:37:17 up 2 days, 7:43, 2 users, load average: 0.00, 0.00, 0.00
> Tasks: 85 total, 1 running, 84 sleeping, 0 stopped, 0 zombie
> Cpu(s): 0.1% us, 0.0% sy, 0.0% ni, 99.7% id, 0.2% wa, 0.0% hi, 0.0% si
> Mem: 2075032k total, 969188k used, 1105844k free, 311224k buffers
> Swap: 4096564k total, 0k used, 4096564k free, 479176k cached
>
> PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
> 2779 squid 15 0 56648 52m 1284 S 0.0 2.6 0:28.85 squid
> 2780 squid 16 0 1508 268 216 S 0.0 0.0 0:00.07 unlinkd
>
> #####################################################################
> Uptime Squid status % used Total In Used(kb) Total Free(kb)
> 3 hours up 0.5 262684 1812348
>
> 1 day up 0.9 633324 1441708
> 1 day up 1.1 682812 1392220
> 1 day up 2.1 884804 1190228
>
> 2 days up 2.1 902724 1172308
> 2 days up 2.5 958428 1116604
>
>
>
>
>
>
>
>
> -----Original Message-----
> From: Mark Elsen [mailto:mark.elsen@gmail.com]
> Sent: Thursday, April 06, 2006 3:24 PM
> To: Zabrina Mohamad
> Cc: Squid-Users (E-mail)
> Subject: Re: [squid-users] Questions on cache and memory
>
>
>> Hi,
>> I am newbie to squid. Recently, we have installed squid with two
>> cache dir of 25GB.
>>
>> A few questions:
>>
>> 1. Is there some sort of parameters to set for objects in the cache
>> to expire so that they get overwritten by recent objects and also to
>> ensure the disk will not be 100% full?
>
> - Squid takes care of this automatically; taking into account, the size
> specified of the intended cache dir(s).
>
>
>>
>> 2.How I can purge the cache, automatically i.e when the cache
>> reaches 80%, . Netscape Suitesopt has that features.
>
> - Leave this unattended, see previous reply on item 1)
>
>>
>> 3. How does and what does it means when I set my disk to LRU . Does
>> it mean that both cache dirs will be actively used ?
>
> - Don't think this parameter is available in recent SQUID versions.
>
>>
>> 4. How to limit concurrent users?
>>
>
>> 5. Can we limit the usage of memory for SQUID?
>>
>
>
> - Squid's mem usage is basically determined by the size of the
> cache dir(s); see FAQ.
> And setting of 'cache_mem' ; see desc. of this parameter in
> squid.conf.default.
>
> M.
>
> Disclaimer Note.
>
>
>
> This e-mail and any files transmitted with it is confidential and
> intended solely for the use of the individual or entity to whom it is
> addressed. If you are not the intended recipient, or the person
> responsible for delivering the e-mail, be advised that you have
> received this e-mail and any files transmitted with it in error and
> that any use, dissemination, forwarding, printing or copying of this
> e-mail and any files transmitted with it is strictly prohibited. If
> you have received this e-mail and any files transmitted with it in
> error, please advise the sender immediately by reply e-mail and
> delete this message.
>
>
>
> Thank you for your co-operation.
>
>
>
>
Received on Thu Apr 06 2006 - 02:09:49 MDT
This archive was generated by hypermail pre-2.1.9 : Mon May 01 2006 - 12:00:02 MDT