From 250b196bf8de2f5bdc0d052c5bd870b536488c5c Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Sat, 12 Mar 2016 19:27:56 +0200 Subject: [PATCH] roles/nginx: Add comment for sendfile option From: https://github.com/h5bp/server-configs-nginx/blob/master/nginx.conf Signed-off-by: Alan Orth --- roles/nginx/files/nginx.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/nginx/files/nginx.conf b/roles/nginx/files/nginx.conf index 85f8644..63ccdfe 100644 --- a/roles/nginx/files/nginx.conf +++ b/roles/nginx/files/nginx.conf @@ -23,6 +23,11 @@ http { access_log off; + # Speed up file transfers by using sendfile() to copy directly + # between descriptors rather than using read()/write(). + # For performance reasons, on FreeBSD systems w/ ZFS + # this option should be disabled as ZFS's ARC caches + # frequently used files in RAM by default. sendfile on; #tcp_nopush on;