Re: [squid-users] Squid 3.2.0.14 on OpenBSD with >1 workers results in "Cannot fake shared segments in SMP config" errors

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Wed, 04 Jan 2012 22:36:19 +1300

On 4/01/2012 7:28 p.m., Henri Wahl wrote:
>> Your system is missing shared memory support.
> So this would not work in general on OpenBSD? On the other hand there
> are certain SHM-settings on OpenBSD:
>
> kern.sysvshm=1
> kern.malloc.kmemnames=.......
> kern.malloc.kmemstat.shm=(inuse = 2, calls = 2, memuse = 2K, limblocks =
> 0, mapblocks = 0, maxused = 2K, limit = 78644K, spare = 0, sizes =
> (256,1024))
> kern.shminfo.shmmax=33554432
> kern.shminfo.shmmin=1
> kern.shminfo.shmmni=128
> kern.shminfo.shmseg=128
> kern.shminfo.shmall=8192
>
> Doesn't this mean there is shared memory support?

Yes it looks like there is in some form. But apparently the POSIX
shm_open() function to get access to it is not supported in OpenBSD 3.x
and no better signs of it in the more recent ones either. :(

>> I'm not sure why the "fake" memory access wrappers which are supposed to
>> take over are failing.
> Or should it with the wrappers?

It should be opening regular non-shared memory with the wrappers AFAIK.

Amos
Received on Wed Jan 04 2012 - 09:36:27 MST

This archive was generated by hypermail 2.2.0 : Wed Jan 04 2012 - 12:00:04 MST