lots of semaphores in jails

Aristedes Maniatis ari at ish.com.au
Thu Aug 13 00:50:06 UTC 2015


I'm running a monitoring application called zabbix in each of about 32 jails on a single host and running into a problem...

zabbix_agentd [78335]: cannot create Semaphore: [28] No space left on device
zabbix_agentd [78335]: unable to create mutex for log file

Now, typically the solution to this problem is documented here: https://www.zabbix.org/wiki/How_to/configure_shared_memory

Basically we bump up some ipc settings:

  kern.ipc.shmall=409600
  kern.ipc.shmmax=204800000

and allow ipc inside the jails:

  security.jail.sysvipc_allowed=1

With these settings I can get about 30 jails running with zabbix, but then no more zabbix instances will start. I guess I'm hitting some sort of limit, but I'm at a loss to understand what. Here is the output of ipcs and all the sysctls: https://gist.github.com/ari/a0a8b540f2ef832c41d2


How do I correlate my maximum settings with the data I'm seeing from ipcs? What limit am I hitting?


Cheers
Ari



-- 
-------------------------->
Aristedes Maniatis
ish
http://www.ish.com.au
Level 1, 30 Wilson Street Newtown 2042 Australia
phone +61 2 9550 5001   fax +61 2 9550 4001
GPG fingerprint CBFB 84B4 738D 4E87 5E5C  5EFA EF6A 7D2E 3E49 102A

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 163 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-jail/attachments/20150813/8085d862/attachment.bin>


More information about the freebsd-jail mailing list