read_ahead

Syntax: read_ahead size;
Default: read_ahead 0;
Context: http, server, location

Sets the amount of pre-reading for the kernel when working with file.

On Linux, the posix_fadvise(0, 0, 0, POSIX_FADV_SEQUENTIAL) system call is used, and so the size parameter is ignored.

On FreeBSD, the fcntl(O_READAHEAD, size) system call, supported since FreeBSD 9.0-CURRENT, is used. FreeBSD 7 has to be patched.

doc_nginx
2017-02-09 07:08:41
Comments
Leave a Comment

Please login to continue.