Hi,

I'm trying to run uwsgi server and I even managed to start it
successfully... once.

On second time, it aborted:

uwsgi_lock_ipcsem_init()/semget(): No space left on device [core/lock.c line 519]

I checked ipcs (_mc is the user that runs uwsgi)

core# ipcs
Message Queues:
T       ID     KEY        MODE       OWNER    GROUP

Shared Memory:
T       ID     KEY        MODE       OWNER    GROUP

Semaphores:
T       ID     KEY        MODE       OWNER    GROUP
s   327680          0 --rw-rw-rw-      _mc      _mc
s   327681          0 --rw-rw-rw-      _mc      _mc
s   327682          0 --rw-rw-rw-      _mc      _mc
s   327683          0 --rw-rw-rw-      _mc      _mc
s   327684          0 --rw-rw-rw-      _mc      _mc
s   327685          0 --rw-rw-rw-      _mc      _mc
s   327686          0 --rw-rw-rw-      _mc      _mc
s   327687          0 --rw-rw-rw-      _mc      _mc

Ok, the docs say that semaphore limits are pretty low on *BSDs and it
should be increased.

https://uwsgi-docs.readthedocs.io/en/latest/ThingsToKnow.html

2 questions then:

1) Why there are semaphores listed in ipcs if uwsgi is not running?
   I guess the listed ones were left by my first, successfull run.

2) How to increase number of allowed semaphores?

Best regards,
Chris

Reply via email to