Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Aug 2015 10:28:43 +1000
From:      Aristedes Maniatis <ari@ish.com.au>
To:        freebsd-jail <freebsd-jail@freebsd.org>
Subject:   lots of semaphores in jails
Message-ID:  <55CBE4BB.6070605@ish.com.au>

next in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--m27WuD2nOqsv7N4o20uo3KJL1dpPWbtdu
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

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

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

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

Basically we bump up some ipc settings:

  kern.ipc.shmall=3D409600
  kern.ipc.shmmax=3D204800000

and allow ipc inside the jails:

  security.jail.sysvipc_allowed=3D1

With these settings I can get about 30 jails running with zabbix, but the=
n no more zabbix instances will start. I guess I'm hitting some sort of l=
imit, but I'm at a loss to understand what. Here is the output of ipcs an=
d 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



--=20
-------------------------->
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


--m27WuD2nOqsv7N4o20uo3KJL1dpPWbtdu
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----

iEYEARECAAYFAlXL5LsACgkQ72p9Lj5JECpSrACffG0eUx1R87DHMQq+j8Y7blTZ
HPIAniD/KM8l//0s8VP6X8vCq3DUtfZH
=5pEs
-----END PGP SIGNATURE-----

--m27WuD2nOqsv7N4o20uo3KJL1dpPWbtdu--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55CBE4BB.6070605>