Welcome! Log In Create A New Profile

Advanced

nginx: [alert] sem_init() failed (28: No space left on device)

June 01, 2011 02:47AM
Hi!

После апгрейда freebsd на 8.2 и nginx на 1.0.3, при старте стала появляться ошибка:
nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok
nginx: [alert] sem_init() failed (28: No space left on device)
nginx: [alert] sem_init() failed (28: No space left on device)
nginx: [alert] sem_init() failed (28: No space left on device)
nginx: [alert] sem_init() failed (28: No space left on device)
{skip}
{43 ошибки}


Это связано с http://forum.nginx.org/read.php?21,195519,195519#msg-195519

По умолчанию, sysctl p1003_1b.sem_nsems_max = 30 во freebsd 8.2. Похоже nginxу их не хватает. Увеличил на:
nginx# sysctl p1003_1b.sem_nsems_max=64

ошибок стало меньше:
nginx# nginx -t
nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok
nginx: [alert] sem_init() failed (28: No space left on device)
nginx: [alert] sem_init() failed (28: No space left on device)
{skip}
{11 ошибок}

При nginx# sysctl p1003_1b.sem_nsems_max=128
ошибки исчезли:
nginx# nginx -t
nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok
nginx: configuration file /usr/local/etc/nginx/nginx.conf test is successful


Собственно, вопрос, какой критерий увеличения p1003_1b.sem_nsems_max?


---
Igor
Subject Author Posted

nginx: [alert] sem_init() failed (28: No space left on device)

igor.goncharenko June 01, 2011 02:47AM

Re: nginx: [alert] sem_init() failed (28: No space left on device)

Igor Sysoev June 01, 2011 02:52AM

Re: nginx: [alert] sem_init() failed (28: No space left on device)

igor.goncharenko June 01, 2011 03:10AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 66
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready