Search squid archive

RE: configuring Eliezer RPMs for CentOS 6 for SMP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Created the directory and put in the cache dir as you specified, still got an error FATAL: Ipc::Mem::Segment::create failed to ftruncate(/squid-squid-page-pool.shm): (22) Invalid argument. 






Best regards,
The Geek Guy

Lawrence Pingree
http://www.lawrencepingree.com/resume/

Author of "The Manager's Guide to Becoming Great"
http://www.Management-Book.com
 


-----Original Message-----
From: fernando@xxxxxxxxxxxxx [mailto:fernando@xxxxxxxxxxxxx] 
Sent: Thursday, May 22, 2014 8:48 AM
To: squid-users@xxxxxxxxxxxxxxx
Subject: RE:  configuring Eliezer RPMs for CentOS 6 for SMP

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







[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux