May 14, 2010 08:18AM
On Fri, May 14, 2010 at 06:52:29AM -0400, Costello wrote:

> Hello,
>
> Once again I am in need of your help!
> I'm looking to document directives that are missing from the Wiki.
> I found loads in the source code, especially thanks to Manlio Perillo.
>
> I've stumbled upon "sendfile_max_chunk" declared in ngx_http_core_module.c.
> I investigated what this does, here is what I found:
> - it's a size value directive
> - it's set to 0 by default (presumably this means no maximum size)
>
> I'm not sure what it does.
> It is probably somewhat connected to the use of sendfile, my understanding is as follows:
> "This directive defines the maximum size of chunks to be read from the storage system when using sendfile".
> Is this a correct and accurate definition? Could anyone provide more information?

On fast local connection sendfile() in Linux may send tens of megabytes
per one syscall blocking other connections. sendfile_max_chunk allows
to limit the maximum size per one sendfile() operation.


--
Igor Sysoev
http://sysoev.ru/en/

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

What does sendfile_max_chunk do?

Costello May 14, 2010 06:52AM

Re: What does sendfile_max_chunk do?

Igor Sysoev May 14, 2010 08:18AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 280
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