[Lustre-discuss] Does Lustre support asynchronous I/O calls

Johnlya johnlya at gmail.com
Thu Jul 24 19:29:25 PDT 2008


I test aio on Linux 2.6.42 and find it ok.
Is right test on below:

[root at CLIENT lustretest]# uname -an
Linux CLIENT 2.6.9-67.0.7.EL_lustre.1.6.5smp #1 SMP Mon May 12
22:02:50 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux

#include "aio.h"
...
 struct aiocb *myaiocb = malloc(sizeof(struct aiocb));
        bzero( myaiocb, sizeof (struct aiocb));
        myaiocb->aio_fildes = fdw;
        myaiocb->aio_offset = nbytes;
        myaiocb->aio_buf = (void *) szbuffer;
        myaiocb->aio_nbytes = ulen;
        /* Link the AIO request with a thread callback */
        myaiocb->aio_sigevent.sigev_notify = SIGEV_THREAD;
        myaiocb->aio_sigevent._sigev_un._sigev_thread._function=
aio_completion_handler;
        myaiocb->aio_sigevent._sigev_un._sigev_thread._attribute=
NULL;
        myaiocb->aio_sigevent.sigev_value.sival_ptr = myaiocb;
        if( (retval = aio_write( myaiocb )) != 0)
....

On Thu, 2008-07-24, at 12:49 AM, "Brian J. Murrell"
<Brian.Murr... at Sun.COM> wrote:
> On Wed, 2008-07-23 at 17:01 +0530, Tanya Raj wrote:
> > I'm running on Linux kernel 2.6.16 Does lustre support POSIX
> > asynchronous disk i/o strategy (Posix AIO) ?
>
> No.  I think there have been previous questions here about this.  A
> search of the archives would probably provide fruitful.  A search of our
> bugzilla might also yield some interesting information.
>
> b.
>
>  signature.asc
> 1K download
>
> _______________________________________________
> Lustre-discuss mailing list
> Lustre-disc... at lists.lustre.orghttp://lists.lustre.org/mailman/listinfo/lustre-discuss



More information about the lustre-discuss mailing list