Confirmation of AIO

Ilan Berkner ilan at time4learning.com
Fri Oct 28 22:26:15 UTC 2011


Thanks, now that I have it working, what particular files does it make send
to send using AIO?  Its interesting that in the example given here:
http://wiki.nginx.org/HttpCoreModule (see below) the location referes to the
"video" directory, i.e. implying that AIO should really be used for media
file delivery.

Would SWF files for example fall in that category?

location /video {
  aio on;
  directio 512;
  output_buffers 1 128k;
}

What kind of test could be run to discern the advantage of using AIO on any
type of file?

Thanks

On Mon, Oct 24, 2011 at 9:54 AM, Sergey Budnevitch <sb at waeme.net> wrote:

>
> On 24.10.2011, at 17:07, iberkner at gmail.com wrote:
>
> > CentOS
>
> Run nginx under strace:
>
> strace -f -e trace=io_submit /usr/sbin/nginx
>
> You will see something like
>
> [pid  1993] io_submit(139867403759616, 1, {{0x19a7ab0, 0, 0, 0, 10}}) = 1
> [pid  1993] io_submit(139867403759616, 1, {{0x19a7ab0, 0, 0, 0, 10}}) = 1
> [pid  1993] io_submit(139867403759616, 1, {{0x19a7ab0, 0, 0, 0, 10}}) = 1
> [pid  1993] io_submit(139867403759616, 1, {{0x19a7ab0, 0, 0, 0, 10}}) = 1
> ...
>
> if aio is working.
>
> >
> > ------Original Message------
> > From: Sergey Budnevitch
> > Sender: nginx-bounces at nginx.org
> > To: nginx at nginx.org
> > ReplyTo: nginx at nginx.org
> > Subject: Re: Confirmation of AIO
> > Sent: Oct 24, 2011 8:30 AM
> >
> >
> > On 24.10.2011, at 1:48, Ilan Berkner wrote:
> >
> >> Hi All,
> >>
> >> I'm trying to understand the advantages of AIO and how using it with
> Nginx can improve performance.
> >>
> >> I've compiled Nginx from source with the AIO option.
> >>
> >> I've enabled AIO in my Nginx configuration.
> >>
> >> How can I confirm that its working?  If the server is serving pages,
> does it mean that its using AIO?
> >
> > What OS are you using?
> > _______________________________________________
> > nginx mailing list
> > nginx at nginx.org
> > http://mailman.nginx.org/mailman/listinfo/nginx
> >
> >
> > _______________________________________________
> > nginx mailing list
> > nginx at nginx.org
> > http://mailman.nginx.org/mailman/listinfo/nginx
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>



-- 

Ilan Berkner
Chief Technology Officer
Time4Learning.com

6300 NE 1st Ave., Suite 203
Ft. Lauderdale, FL 33334
(954) 771-0914

<http://www.twitter.com/time4learning> <http://www.facebook.com/Time4Learning>


Time4Learning.com - Online interactive curriculum for home use, PreK-8th
Grade.
Time4Writing.com - Online writing tutorials for high, middle, and elementary
school students.
Time4Learning.net - A forum to chat with parents online about kids,
education, parenting and more.
spellingcity.com - Online vocabulary and spelling activities for teachers,
parents and students.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20111028/988b5661/attachment.html>


More information about the nginx mailing list