Re: [squid-users] does rock type deny being dedicated to specific process ??

From: Eliezer Croitoru <eliezer_at_ngtech.co.il>
Date: Sun, 27 Oct 2013 07:38:31 +0200

Hey there,

What OS are you using for this squid?

Eliezer

On 10/27/2013 01:34 AM, Ahmad wrote:
> hi ,
> im trying smp and rock ,
>
> i followed example of
> http://wiki.squid-cache.org/ConfigExamples/SmpCarpCluster
> ==========================================
>
> the issue is ,
> in squid.conf i have
> ==================================
> dns_v4_first on
> # 3 workers, using worker #1 as the frontend is important
> workers 3
> cpu_affinity_map process_numbers=1,2 cores=1,3
> cpu_affinity_map process_numbers=3 cores=5
> #cpu_affinity_map process_numbers=3 cores=6
> if ${process_number} = 1
> include /etc/squid/frontend.conf
> else
> include /etc/squid/backend.conf
> endif
> ================================
>
>
> in backend.conf i have :
> cache_dir rock /rock${process_number} 10000 max-size=32768 swap-timeout=350
>
> the error is
> FATAL: Ipc::Mem::Segment::open failed to shm_open(/squid-rock4.shm): (2) No
> such file or directory
> FATAL: Ipc::Mem::Segment::open failed to shm_open(/squid-rock3.shm): (2) No
> such file or directory
> FATAL: Ipc::Mem::Segment::open failed to shm_open(/squid-rock2.shm): (2) No
> such file or directory
>
>
>
> but
> .
> .
> .
> .
>
> if i put in backend.conf
> cache_dir rock /rock1 10000 max-size=32768 swap-timeout=350
> cache_dir rock /rock2 10000 max-size=32768 swap-timeout=350
> cache_dir rock /rock3 10000 max-size=32768 swap-timeout=350
>
>
>
> it work !!!!!!
>
>
> in conclusion ,
>
>
>
> Q1- does that mean that in rock dir , it must be shared between squid
> processess ???
>
> if not ,
>
> wt could be the solving of the error
> FATAL: Ipc::Mem::Segment::open failed to shm_open(/squid-rock3.shm): (2) No
> such file or directory
>
>
> ....
>
>
> note that using aufs dir , no problems there !!
>
>
>
> regards
>
>
>
>
>
> -----
> Dr.x
> --
> View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/does-rock-type-deny-being-dedicated-to-specific-process-tp4662919.html
> Sent from the Squid - Users mailing list archive at Nabble.com.
>
Received on Sun Oct 27 2013 - 05:38:43 MDT

This archive was generated by hypermail 2.2.0 : Sun Oct 27 2013 - 12:00:06 MDT