ПРОЕКТЫ 


  АРХИВ 


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 02:23:55 +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=p7Qu68IBKMQPl5IOcgqiTtWWgTR8TBLSMm/KIEqZskg=; b=jyanm5ki1nG4C2KKRcbOXxOVjbenqEMy4346isrQSsYIpQ1CjbVGEQQZ9/XjhGrNKq vmfpXS6qQY1qMP0z2zbXWMv2x6f+Cpw125vgBgN+fatj/qAHEBKvZmMqcNWEPEW4QMKV LDGb6/Em5/2sKs9nqOOhWESaXa1yEp1LASPY4=
  • 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=ih84PS73oH5YK6Ll2I2YDq/+Nksnkw82J7JtiRR3pFWgS4d5aMOCr0IXzKlQm47hDn 9gaz+xr18FtZl7WkL9t1NVadnJJjmuvfr/dWL5axbFfKxHW4J/j78+gaEOTD7ssHvjL/ 9yY9tjAY4TrMx7vvexbAqkrgu06/KiWjO1yPk=
  • In-reply-to: <20090823211307.GN49906@xxxxxxxxxxxxx>
  • References: <20090823161150.GC49906@xxxxxxxxxxxxx> <4A918E2A.9040507@xxxxxxxxx> <20090823211307.GN49906@xxxxxxxxxxxxx>

On Monday 24 August 2009 01:13, Igor Sysoev wrote:
> On Sun, Aug 23, 2009 at 10:44:58PM +0400, Вадим wrote:
> > Здравствуйте.
> >
> > OpenSUSE 11.0 и выше, например.
>
> Поставил openSUSE 11.1.
>
> > uname -r
>
> 2.6.27.7-9-default
>
> > /lib/libc.so.6
>
> GNU C Library stable release version 2.9 (20081117), by Roland McGrath et
> al. ...
>
> /usr/include/libaio.h:
>
> struct iocb {
>         PADDEDptr(void *data, __pad1);  /* Return in the io completion
> event */ PADDED(unsigned key, __pad2);   /* For use in identifying io
> requests */
>
>         short           aio_lio_opcode;
>         short           aio_reqprio;
>         int             aio_fildes;
>
>         union {
>                 struct io_iocb_common           c;
> ...
>
> struct io_iocb_common {
>         PADDEDptr(void  *buf, __pad1);
>         PADDEDul(nbytes, __pad2);
>         long long       offset;
>         long long       __pad3, __pad4;
> };      /* result code is the amount read or -'ve errno */
>
>
> Полей .aio_flags и .aio_resfd в struct iocb нет. Ну и как это собирать ?

А если

-#include <libaio.h>
+#include <linux/aio_abi.h>

?


Вообще кошмар какой-то развели на linux с aio: есть aio.h, libaio.h и 
linux/aio_abi.h. Что, зачем и почему так много - до конца не понятно...




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