Welcome! Log In Create A New Profile

Advanced

RE: HDD util is 100% - aio questions

Lukas Tribus
January 28, 2013 04:36AM
AIO will not work with the streaming module:

http://nginx.org/en/docs/http/ngx_http_core_module.html#aio

On Linux, directio can only be used for reading blocks that are aligned on 512-byte boundaries (or 4K for XFS). Reading of unaligned file’s end is still made in blocking mode. The same holds true for byte range requests, and for FLV requests not from the beginning of a file: reading of unaligned data at the beginning and end of a file will be blocking. There is no need to turn off sendfile explicitly as it is turned off automatically when directio is used.



What is your exact configuration? What OS do you use, what load and what disk and RAM configuration do you have?





________________________________
> From: crirus@gmail.com
> Date: Mon, 28 Jan 2013 08:53:52 +0200
> Subject: HDD util is 100% - aio questions
> To: nginx@nginx.org
>
> Hello
>
> Right now nginx manages to put hdds in the server to high util rate.
>
> I try to run Nginx 1.2.3 with aio support to deliver mp4 videos with
> the streaming module.
> I compiled the server with aio and it starts fine.
> In config I set it like this
>
> sendfile off;
> output_buffers 1 2m;
> #sndbuf=32K;
> aio on;
> directio 512;
>
> I read that sendfile should be off, but it won't send video unless I
> turn it on.
> In this case does aio work at all? How can I tell, before I wait a week
> and see that maybe HDD util is not 100% all the time anymore :P
>
>
> ---------------------------------------------------------------
> Cristian Rusu
> Web Developement & Electronic Publishing
>
> ======
> Crilance.com
> Crilance.blogspot.comhttp://Crilance.blogspot.com
>
> _______________________________________________ nginx mailing list
> nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

HDD util is 100% - aio questions

crirus January 28, 2013 01:56AM

RE: HDD util is 100% - aio questions

Lukas Tribus January 28, 2013 04:36AM

Re: HDD util is 100% - aio questions

Valentin V. Bartenev January 28, 2013 12:48PM

Re: HDD util is 100% - aio questions

crirus February 02, 2013 10:00AM

RE: HDD util is 100% - aio questions

Lukas Tribus February 03, 2013 06:00AM

Re: HDD util is 100% - aio questions

crirus February 04, 2013 02:02AM

Re: HDD util is 100% - aio questions

Jonathan Matthews February 04, 2013 07:36AM

Re: HDD util is 100% - aio questions

crirus February 04, 2013 11:30AM

RE: HDD util is 100% - aio questions

Lukas Tribus February 04, 2013 12:06PM

Re: HDD util is 100% - aio questions

Jan-Philip Gehrcke February 04, 2013 01:20PM

RE: HDD util is 100% - aio questions

Lukas Tribus February 04, 2013 01:30PM

Re: HDD util is 100% - aio questions

crirus February 05, 2013 01:50AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 164
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready