Hi all,
I read some articles about nginx optimization. Lots of articles are using below settings:
But according to this article (https://calomel.org/nginx.html), zfs does't support directio, and sendfile on zfs will cause redundant data caching.
Now I'm confused. on FreeBSD-10.1 with ZFS and nginx, which option should I use?
Option 1
Option 2
Option 3
I read some articles about nginx optimization. Lots of articles are using below settings:
Code:
aio sendfile;
sendfile on;
tcp_nopush on;
directio 4m;
directio_alignment 4096;
But according to this article (https://calomel.org/nginx.html), zfs does't support directio, and sendfile on zfs will cause redundant data caching.
Now I'm confused. on FreeBSD-10.1 with ZFS and nginx, which option should I use?
Option 1
Code:
aio sendfile;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
directio 4m;
directio_alignment 4096;
Option 2
Code:
aio sendfile;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
Option 3
Code:
aio on;
sendfile off;
tcp_nopush on;
tcp_nodelay on;