# Re: Confirmation of AIO

**URL:** <https://www.ruby-forum.com/t/re-confirmation-of-aio/213122>\
**Category:** NGINX\
**Created:** [October 24, 2011, 3:08pm UTC](https://www.ruby-forum.com/t/re-confirmation-of-aio/213122 "2011-10-24T15:08:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [October 24, 2011, 3:08pm UTC](https://www.ruby-forum.com/t/re-confirmation-of-aio/213122/1 "2011-10-24T15:08:51Z")

</div>

CentOS

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [October 24, 2011, 3:55pm UTC](https://www.ruby-forum.com/t/re-confirmation-of-aio/213122/2 "2011-10-24T15:55:17Z")

</div>

On 24.10.2011, at 17:07, [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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.

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [October 29, 2011, 12:27am UTC](https://www.ruby-forum.com/t/re-confirmation-of-aio/213122/3 "2011-10-29T00:27:03Z")

</div>

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:  
[GitHub - nginxinc/nginx-wiki: ARCHIVED -- Source for the now archived NGINX Wiki section of https://www.nginx.com · GitHub](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 B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > From: Sergey B.
> > 
> > > 
> > 
> > What OS are you using?
> 
> * * *
> 
> nginx mailing list  
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> [mailman.nginx.org archive](http://mailman.nginx.org/mailman/listinfo/nginx)

–

Ilan B.  
Chief Technology Officer

> **[Online Homeschool Curriculum from Time4Learning](https://www.time4learning.com/)**
>
> PreK-12 homeschooling is EASY with Time4Learning at your fingertips with award-winning online lessons, and parent-friendly planning and reporting tools.

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

[http://www.twitter.com/time4learning](http://www.twitter.com/time4learning)  
[http://www.facebook.com/Time4Learning](http://www.facebook.com/Time4Learning)

[Time4Learning.com](http://Time4Learning.com) - Online interactive curriculum for home use, PreK-8th  
Grade.  
[Time4Writing.com](http://Time4Writing.com) - Online writing tutorials for high, middle, and  
elementary  
school students.  
[Time4Learning.net](http://Time4Learning.net) - A forum to chat with parents online about kids,  
education, parenting and more.  
[spellingcity.com](http://spellingcity.com) - Online vocabulary and spelling activities for  
teachers,  
parents and students.
