[squid-users] Ipc::Mem::Segment::attach failed to mmap(/squid-squid-page-pool.shm): (12) Cannot allocate memory

Amos Jeffries squid3 at treenet.co.nz
Wed Mar 11 15:49:39 UTC 2015


On 12/03/2015 3:05 a.m., FredB wrote:
> Hi,
> 
> I'm trying workers and rock store, I missed something ?
> 
> workers 2
> cache_dir rock /tmp/squid1 13000 max-size=1024
> cache_dir rock /tmp/squid2 13000 max-size=1024
> 
> 
> Squid Cache: Version 3.5.2-20150304-r13770
> Service Name: squid
> configure options: '--prefix=/' '--includedir=${prefix}/include'
'--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info'
'--sysconfdir=/etc' '--libexecdir=/usr/lib/squid'
'--disable-maintainer-mode' '--disable-dependency-tracking'
'--disable-silent-rules' '--srcdir=.' '--datadir=/usr/share/squid'
'--sysconfdir=/etc/squid' '--mandir=/usr/share/man' '--enable-inline'
'--enable-storeio=ufs,aufs,diskd,rock'
'--enable-removal-policies=lru,heap' '--enable-delay-pools'
'--enable-auth-negotiate--enable-cache-digests' '--enable-underscores'

mising whitespace separator between those options.

'--enable-icap-client' '--enable-follow-x-forwarded-for'
'--enable-basic-auth-helpers=LDAP,digest'
'--enable-digest-auth-helpers=ldap,password'

Syntax: --enable-auth-TYPE=HELPER,LIST

If you dont use that syntax to explicitly limit the helpers built you
get the default list of: everything that will build.

 '--enable-arp-acl'
'--enable-esi' '--disable-translation' '--with-logdir=/var/log/squid'
'--with-filedescriptors=65536' '--with-large-files' '--disable-snmp'
'--with-default-user=squid'
> 
> 
> Linux proxytest 3.2.0-4-686-pae #1 SMP Debian 3.2.54-2 i686 GNU/Linux (Debian Wheezy 32 bits)
> 
> 
> squid -z
> FATAL: Ipc::Mem::Segment::attach failed to mmap(/squid-squid-page-pool.shm): (12) Cannot allocate memory
> 2015 Mar 11 14:55:26 localhost Ipc::Mem::Segment::attach failed to mmap(/squid-squid-page-pool.shm): (12) Cannot allocate memory

You may be missing a library, but I'm not aware what off the top of my
head of any particular one.

Or perhape its the recent issue of workers SUID permissions. I hope
Christos applies the final patch fixing that today, if not the one in
squid-dev is usable enough.

Amos


More information about the squid-users mailing list