Re: [squid-users] tune up

From: Wennie V. Lagmay <wlagmay@dont-contact.us>
Date: Mon, 30 May 2005 18:45:37 +0300

Thanks Askar

----- Original Message -----
From: "Askar" <askar@askarali.info>
To: "Wennie V. Lagmay" <wlagmay@yanbulink.net>
Cc: <squid-users@squid-cache.org>
Sent: Monday, May 30, 2005 4:29 PM
Subject: Re: [squid-users] tune up

> Wennie V. Lagmay wrote:
>
>> Ok then if my cache-dir is 3 as:
>> cache_dir aufs /cache1/spool/squid 25000 16 256
>> cache_dir aufs /cache2/spool/squid 25000 16 256
>> cache_dir aufs /cache3/spool/squid 25000 16 256
>>
>> so if im going to recompile it it should
>> be --enable-storeio="aufs" --with-aufs-threads=32
>> am I correct?
>>
> dude you don't have to specify "--with-aufs-threads=32", squid will take
> care of this
>
>> thanks you,
>>
>> wennie
>>
> regards
> askar
>
>>
>> ----- Original Message ----- From: "Askar" <askar@askarali.info>
>> To: <squid-users@squid-cache.org>
>> Sent: Monday, May 30, 2005 3:59 PM
>> Subject: Re: [squid-users] tune up
>>
>>
>>> Wennie V. Lagmay wrote:
>>>
>>>> Thank you very much Askar,
>>>>
>>>> Now it's the only the option --with-aufs-threads=1024 is not clear,
>>>> what is this option and is 1024 value is ok, anybody can you please
>>>> enlighten me?
>>>>
>>>> wennie
>>>
>>>
>>> hi wennie,
>>> I thinks you dont need to do anything fancy for aufs,
>>> as i read in http://www.oreilly.com/catalog/squid/chapter/ch08.pdf
>>>
>>> according to the author squid will autmatically starts thread depends on
>>> number of cache_dir.
>>>
>>> Table 8-1. Default number of threads for up to six cache directories
>>> cache_dirs Threads
>>> 1 16
>>> 2 26
>>> 3 32
>>>
>>> However for my 2 cache_dir I have ...
>>> $ps -ef | grep squid | wc -l
>>> 31
>>>
>>> of squid processes.
>>>
>>> regards
>>>
>>>
>>>>
>>>> ----- Original Message ----- From: "Askar" <askar@askarali.info>
>>>> To: <squid-users@squid-cache.org>
>>>> Sent: Monday, May 30, 2005 3:39 PM
>>>> Subject: Re: [squid-users] tune up
>>>>
>>>>
>>>>> Wennie V. Lagmay wrote:
>>>>>
>>>>>> Ok if im going to recompile it again, i just start squid and it
>>>>>> should be working again right?
>>>>>
>>>>>
>>>>>
>>>>> yes
>>>>>
>>>>>> second if i recompile it --enable-storeio="aufs" do I need to
>>>>>> enable --with-aufs-threads=1024 and is a 1024 value is ok?
>>>>>
>>>>>
>>>>>
>>>>> I don't have defined -with-aufs-threads=1024 options while compiling
>>>>> squid and its working just cool
>>>>>
>>>>>>
>>>>>> during recompilation, can I let squid running? aftrer I recompile it
>>>>>> I sould only issue a command squid -z and suid start am I right?
>>>>>
>>>>>
>>>>>
>>>>> yep let squid serving clients, don't issue squid -z command no need to
>>>>> do so. Before giving "make install" command for safty cp your
>>>>> squid.conf file to another location if you want to reuse the same
>>>>> squid.conf and then issue "make install" and place the squid.conf in
>>>>> /usr/local/squid/etc, and change the cache_dir line only replace diskd
>>>>> with aufs.
>>>>> then shutdown the squid and restart it.
>>>>>
>>>>>>
>>>>>> what is the posiblity that my squid will not start?
>>>>>>
>>>>> I'm sure it will start with no problem ;)
>>>>>
>>>>>> Thanks,
>>>>>>
>>>>>> Wennie
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>> I'm affraid you have to recompile squid if you didnt enable aufs
>>>>>>> eariler, you can check squid compilation option with "squid -v" ,
>>>>>>> see if there "--enable-storeio=aufs,coss,diskd,ufs"
>>>>>>> Again if you don't see aufs support then don't hestitate to
>>>>>>> recompile squid.
>>>>>>>
>>>>>>> regards
>>>>>>>
>>>>>>> askar
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>
>>
>>
>
Received on Mon May 30 2005 - 09:45:59 MDT

This archive was generated by hypermail pre-2.1.9 : Wed Jun 01 2005 - 12:00:04 MDT