ПРОЕКТЫ 


  АРХИВ 


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 disk AIO support


  • To: nginx-ru@xxxxxxxxx
  • Subject: Re: FreeBSD disk AIO support
  • From: Andrei Nigmatulin <andrei.nigmatulin@xxxxxxxxx>
  • Date: Mon, 24 Aug 2009 18:38:59 +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=aF0kpLb7cRdR3okoeQ/rsYUf7TRywlm5zj1gVIhx+X8=; b=T17pxDIok4rF0ZHaaH9tyI0+0YST5Ul6UOiM79cOw+iQciq0h/qOHKqQiwfhnK61kC VvvctWaY06d6p2ERBHDVUjxztuB39G3F1pwyRaJb72BIxcwemMd4923J2gNkfa3mp1Sq HCpypFmK8lNDbOxqArDl/RYjgW+TTP5qodXsE=
  • 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=d/0pajgKHmIzyxMCjAC4VoTzdRK/0fbRyBs1936m/Oac+XsP1Bl3Mjtt0eKJU4sBn2 OMdbi5KxV0dc2GuP38pDNiX32nNrRYlQH75HTGZ0SRNf7cCGFIybvMihXUZMG3GUbPLp +sb5vd0e5CFTGjcUC0XEDyIyLuxXTcsh6TlQM=
  • In-reply-to: <20090824091633.GB69343@xxxxxxxxxxxxx>
  • References: <20090823161150.GC49906@xxxxxxxxxxxxx> <200908240435.26225.andrei.nigmatulin@xxxxxxxxx> <20090824091633.GB69343@xxxxxxxxxxxxx>

On Monday 24 August 2009 13:16, Igor Sysoev wrote:
> On Mon, Aug 24, 2009 at 04:35:26AM +0400, Andrei Nigmatulin wrote:
> > Похоже, что libaio >= 0.3.107 имеет поддержку eventfd (патч добавил Rusty
> > Russell) и искомые поля есть в io_iocb_common.
>
> Похоже, в openSUSE 11.1 libaio-0.4:
> > objdump -T /lib/libaio.so.1.0.1

Нет, 0.4 в данном месте, это версия abi библиотеки libaio:

Makefile: -Wl,--version-script=libaio.map

А в opensuse 11.1 стоит версия 0.3.104. Убедиться просто - в libaio.h нет 
такого:

static inline void io_set_eventfd(struct iocb *iocb, int eventfd)
{
        iocb->u.c.flags |= (1 << 0) /* IOCB_FLAG_RESFD */;
        iocb->u.c.resfd = eventfd;
}



>
> /lib/libaio.so.1.0.1:     file format elf32-i386
>
> DYNAMIC SYMBOL TABLE:
> 00000780 g    DF .text        00000030 (LIBAIO_0.1) io_cancel
> 000004c0 g    DF .text        00000040  LIBAIO_0.4  io_queue_wait
> 00000720 g    DF .text        00000057 (LIBAIO_0.1) io_queue_wait
> 00000660 g    DF .text        0000001a  LIBAIO_0.4  io_cancel
> 000006a0 g    DF .text        00000012  LIBAIO_0.4  io_destroy
> 00000460 g    DF .text        00000037  LIBAIO_0.1  io_queue_init
> 000006c0 g    DF .text        00000057 (LIBAIO_0.1) io_getevents
> 000004a0 g    DF .text        00000020  LIBAIO_0.1  io_queue_release
> 000005c0 g    DF .text        0000007d  LIBAIO_0.4  io_getevents
> 00000000 g    DO *ABS*        00000000  LIBAIO_0.1  LIBAIO_0.1
> 00000500 g    DF .text        00000074  LIBAIO_0.1  io_queue_run
> 00000640 g    DF .text        0000001a  LIBAIO_0.1  io_submit
> 00000680 g    DF .text        00000016  LIBAIO_0.4  io_setup
> 00000000 g    DO *ABS*        00000000  LIBAIO_0.4  LIBAIO_0.4

-- 
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.