Welcome! Log In Create A New Profile

Advanced

Re: nginx-1.0.3

May 27, 2011 01:32AM
On Fri, May 27, 2011 at 09:04:24AM +0700, Denis F. Latypoff wrote:
> 25.05.2011, 22:24, "Igor Sysoev" <igor@sysoev.ru>:
> > Изменения в nginx 1.0.3                                           25.05.2011
> >
> [...]
>
> А POSIX семафоры в линуске? ))

Будет в следующей версии.

> C приаттаченным патчем оно собирается и якобы
> работает. Но в strace'е процесса ядерных вызовов
> я так и не увидел, так же как и в debug'е. Что надо
> сделать чтобы делались вызовы? Кеш включен,
> воркеров два + кеш-манагер. Или семафоры и в
> правду не ядерные, или скажите, что надо сделать,
> чтобы выловить вызовы.

mtx->spin = 1;

> diff -ru nginx-1.0.3/auto/unix nginx-1.0.3-posix-sem-rt/auto/unix
> --- nginx-1.0.3/auto/unix 2011-05-10 06:39:13.000000000 -0500
> +++ nginx-1.0.3-posix-sem-rt/auto/unix 2011-05-26 19:54:18.000000000 -0500
> @@ -245,6 +245,17 @@
> sem_destroy(&sem);"
> . auto/feature
>
> +if [ $ngx_found != yes ]; then
> +
> + ngx_feature="POSIX semaphores in librt"
> + ngx_feature_libs="-lrt"
> + . auto/feature
> +
> + if [ $ngx_found = yes ]; then
> + CORE_LIBS="$CORE_LIBS -lrt"
> + fi
> +fi
> +

Линковать лучше с libpthread, потому что librt всё равно тянет за собой
libpthread.


--
Igor Sysoev

_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

nginx-1.0.3

Igor Sysoev May 25, 2011 11:26AM

Re: nginx-1.0.3

Michael May 25, 2011 11:26AM

Re: nginx-1.0.3

Igor Sysoev May 25, 2011 11:28AM

Re: nginx-1.0.3

Michael May 25, 2011 11:30AM

Re: nginx-1.0.3

Alex Vorona May 26, 2011 07:06AM

Re: nginx-1.0.3

Igor Sysoev May 26, 2011 07:44AM

Re: nginx-1.0.3

Denis F. Latypoff May 26, 2011 10:06PM

Re: nginx-1.0.3

Igor Sysoev May 27, 2011 01:32AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 107
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready