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

Igor Sysoev igor на sysoev.ru
Ср Июн 1 10:50:27 MSD 2011


On Wed, Jun 01, 2011 at 02:47:28AM -0400, igor.goncharenko wrote:
> 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?

Поставьте 10000. Критирии выбора числа 30 в XXI веке совершенно непонятны.


-- 
Igor Sysoev



Подробная информация о списке рассылки nginx-ru