Welcome! Log In Create A New Profile

Advanced

Re: CentOS 5 - NGiNX - AIO

October 13, 2011 07:16AM
On Thu, Oct 13, 2011 at 03:04:44AM -0400, gus wrote:
> и еще 1 вопрос.
> у меня 16Гб оперативки конфиг такой:
> user nginx;
> worker_processes 8;
> worker_rlimit_nofile 819200;
> timer_resolution 100ms;
> worker_priority -5;
>
> http {
> #aio
> aio on;
> expires max;
> #directio 1m;
> sendfile off;
> tcp_nopush on;
> tcp_nodelay on;
> server_tokens off;
> gzip off;
> gzip_static on;
> gzip_comp_level 5;
> gzip_min_length 1024;
> keepalive_timeout 65;
> output_buffers 2 512k;
>
> раздаю с сервера видео ролики и мелкие
> тумбочки. Ролики размером от 5 до 200
> мегабайт.
>
> какой параметр directio и output_buffers мне
> указать лутше?

Под Линуксом для aio нужно обязательно directio. Без него использовать
aio бессмысленно.

aio on;
sendfile off;
directio 1m;
output_buffers 2 1m;

На 16G можно обслуживать где-то до 6000 соединений.


--
Игорь Сысоев
http://sysoev.ru

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

CentOS 5 - NGiNX - AIO

JG November 11, 2009 06:54AM

Re: CentOS 5 - NGiNX - AIO

Igor Sysoev November 11, 2009 07:28AM

Re: CentOS 5 - NGiNX - AIO

JG November 11, 2009 07:48AM

Re: CentOS 5 - NGiNX - AIO

Igor Sysoev November 11, 2009 10:22AM

Re: CentOS 5 - NGiNX - AIO

JG November 12, 2009 03:22AM

Re: CentOS 5 - NGiNX - AIO

Igor Sysoev November 12, 2009 03:38AM

Re: CentOS 5 - NGiNX - AIO

gus October 13, 2011 02:49AM

Re: CentOS 5 - NGiNX - AIO

gus October 13, 2011 03:04AM

Re: CentOS 5 - NGiNX - AIO

gus October 13, 2011 08:07AM

Re: CentOS 5 - NGiNX - AIO

gus October 13, 2011 08:17AM

Re: CentOS 5 - NGiNX - AIO

gus October 13, 2011 08:37AM

Re: CentOS 5 - NGiNX - AIO

gus October 14, 2011 07:14AM

Re: CentOS 5 - NGiNX - AIO

gus October 19, 2011 02:39PM

Re: CentOS 5 - NGiNX - AIO

Igor Sysoev October 13, 2011 02:52AM

Re: CentOS 5 - NGiNX - AIO

Igor Sysoev October 13, 2011 07:16AM

Re: CentOS 5 - NGiNX - AIO

Igor Sysoev October 13, 2011 08:12AM

Re: CentOS 5 - NGiNX - AIO

Igor Sysoev October 13, 2011 08:30AM

Re: CentOS 5 - NGiNX - AIO

Igor Sysoev October 13, 2011 08:48AM

Re: CentOS 5 - NGiNX - AIO

Igor Sysoev October 14, 2011 09:42AM

Re: CentOS 5 - NGiNX - AIO

Andrii Balytskyi July 17, 2016 05:20AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 92
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready