ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FreeBSD & Linux disk AIO support


  • To: nginx-ru@xxxxxxxxx
  • Subject: Re: FreeBSD & Linux disk AIO support
  • From: Andrei Nigmatulin <andrei.nigmatulin@xxxxxxxxx>
  • Date: Wed, 26 Aug 2009 15:11:25 +0400
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:references:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:message-id; bh=hy2q0pLUDA9ccOBq+RcyJviBvu56acs7yNz9m4Q9dpw=; b=X+PjXcTlfw66SpBOGNmBipbZB26E5UpX6YEs91BLaxx5IHHZsikcHEvmCyE8lllVgf /DR+A4g7ocX7v64jea0MWf1c474aOXqXnA66B8Y9X8FlZa2XiawKtEfEq4JXrGYZROUH yxdAArO1AinHWg5msjdSO3RBmurW+DzSq34l0=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :message-id; b=ZppU8kUIkd6EdLzwiK+rJxO4YJjsEWGWzc2layF+n6QvR4ewvsMicRThKuOLrrWZyn 0/gBYxp+jPeY2aJDMZh/pD2PjBrNAQl1PaDU3P+aHhSVWxF6vRE9/ppQ5xBOvjFqx2Fc 6P4hNcYfyfmMVt3BBQiBp5C+xFqlMkRKditPs=
  • In-reply-to: <20090826104520.GX26312@xxxxxxxxxxxxx>
  • References: <c8ec56470908260034r70073cb4k17ba60bcd08d5c97@xxxxxxxxxxxxxx> <940c442f0908260327t1ccf6d94yb9be7707d97db1a@xxxxxxxxxxxxxx> <20090826104520.GX26312@xxxxxxxxxxxxx>

On Wednesday 26 August 2009 14:45, Igor Sysoev wrote:
> On Wed, Aug 26, 2009 at 02:27:13PM +0400, Dmitriy Timokhin wrote:
> > 2009/8/26 Igor Sysoev <is@xxxxxxxxxxxxx>:
> > > Ещё один патч. Должен работать с glibc 2.7.
> >
> > В src/os/unix/ngx_linux_config.h не хватает #if (NGX_HAVE_EVENTFD2 ||
> > NGX_HAVE_EVENTFD) .. #endif вокруг #include <sys/eventfd.h>
> > Если их добавить -- начинает собираться на glibc2.7
>
> В общем, я решил всегда вызывать eventfd() как сискол.
> С этим glibc и двумя разными eventfd() один геморрой.

А зачем вообще eventfd2() нужен в nginx ? Только чтобы сэкономить на вызове, 
который сделает дескриптор неблокируемым ?

А смысл в этом, если eventfd вызывается только при старте nginx ?


-- 
Andrei Nigmatulin
GPG PUB KEY 6449830D

Now I lay me down to sleep(3)
Pray the OS my core to keep
If I die before I wake
Pray the Disk my core to take


 




Copyright © Lexa Software, 1996-2009.