RE: [squid-users] configuring Eliezer RPMs for CentOS 6 for SMP

From: <fernando_at_lozano.eti.br>
Date: Thu, 22 May 2014 12:47:48 -0300

Hi Lawrence,

> Here's the error I am getting and my squid.conf
>
> FATAL: Ipc::Mem::Segment::create failed to
> ftruncate(/squid-squid-page-pool.shm): (22) Invalid argument

If squid can't create the shm file, you should check your OS
configuration. It's not squid fault, the server Os has to be configured
to provide enough shared memory to squid.

Most of the time, it's enough to mount tmpfs mounted as /dev/shm, but
I'm not familiar with SuSE installation defaults.

> cache_dir aufs /ssd/squid/cache0 45000 64 1024
> cache_dir aufs /ssd/squid/cache1 45000 64 1024

This won't work in smp mode. Each worker needs a dedicated cache_dir,
except for rock store. But your squid never reached that point.

The way you did all workers will try to use both cache_dirs. I guess
you want one for each worker. So replace those two lines by:

cache_dir aufs /ssd/squid/cache${process_number} 45000 64 1024

That way each worker will use only it's own, exclusive, cache dir.

> workers 2

Ok, you are trying to use 2 workers.

[]s, Fernando Lozano
Received on Thu May 22 2014 - 15:47:58 MDT

This archive was generated by hypermail 2.2.0 : Sat May 24 2014 - 12:00:07 MDT