On 03/19/2013 05:55 PM, Sokvantha YOUK wrote:

> May you help to advice how to use rock store with SMP, say in my case
> that I need caching content share among workers.

Rock store is SMP-aware so you do not need to do anything special to use
it with SMP or without. For example, if you want to use four 170GB rock
caches (which usually means that you have four disks), the following may
be a good starting point:

  cache_dir rock /cache1 170000 max-size=31000
  cache_dir rock /cache2 170000 max-size=31000
  cache_dir rock /cache3 170000 max-size=31000
  cache_dir rock /cache4 170000 max-size=31000

You will then tune the above to limit swap rate and I/O wait to avoid
disk overload and timeouts as discussed in "Performance Tuning" at
  http://wiki.squid-cache.org/Features/RockStore


HTH,

Alex.


> ---
> Regards,
> Vantha
> 
> On Mar 20, 2013 1:20 AM, "Alex Rousskov"
> <rouss...@measurement-factory.com
> <mailto:rouss...@measurement-factory.com>> wrote:
> 
>     On 03/19/2013 09:14 AM, Sokvantha YOUK wrote:
> 
>     > Here is my configuration
>     >
>     > # Rockstore filesytem
>     > workers 4
>     > cpu_affinity_map process_numbers=1,2,3,4 cores=2,4,6,8
>     >
>     > if ${process_number}=1
>     > cache_dir  rock /cache1         170000 max-size=31000
>     > cache_dir  rock /cache2         170000 max-size=31000
>     > endif
>     >
>     > if ${process_number}=2
>     > cache_dir  rock /cache3         170000 max-size=31000
>     > cache_dir  rock /cache4         170000 max-size=31000
>     > endif
>     >
>     > if ${process_number}=3
>     > cache_dir  rock /cache5         170000 max-size=31000
>     > cache_dir  rock /cache6         170000 max-size=31000
>     > endif
>     >
>     > # AUFS file system
>     > if ${process_number}=4
>     > cache_dir  aufs /cache7/squid/${process_number}         170000 16 256
>     > min-size=31001 max-size=200000000
>     > cache_dir  aufs /cache8/squid/${process_number}         170000 16 256
>     > min-size=31001 max-size=200000000
>     > endif
> 
> 
>     Just in case somebody finds this in the archives and tries to replicate,
>     please note that the above config does not make sense: It does not allow
>     rock directories to share cache storage among workers and it isolates
>     the aufs storage to a single worker (#4) as if that worker is somehow
>     special.
> 
> 
>     I doubt WCCP problems are related to caching. However, I recommend
>     making sure WCCP works _before_ you make your configuration more complex
>     by adding caching.
> 
> 
>     HTH,
> 
>     Alex.
> 

Reply via email to