aboutsummaryrefslogtreecommitdiff
path: root/src/os/unix/ngx_linux_sendfile_chain.c
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2021-10-29 20:21:43 +0300
committerMaxim Dounin <mdounin@mdounin.ru>2021-10-29 20:21:43 +0300
commitf3fdc4c96f3cd1c338ecf11a67acfae6d0a08dc7 (patch)
treeaa669395d898888cbd06c93ebf1a8aa57a6952e2 /src/os/unix/ngx_linux_sendfile_chain.c
parent7927071ee26ff6313301b744a90240dccbc836db (diff)
downloadnginx-f3fdc4c96f3cd1c338ecf11a67acfae6d0a08dc7.tar.gz
nginx-f3fdc4c96f3cd1c338ecf11a67acfae6d0a08dc7.zip
Switched to using posted next events after sendfile_max_chunk.
Previously, 1 millisecond delay was used instead. In certain edge cases this might result in noticeable performance degradation though, notably on Linux with typical CONFIG_HZ=250 (so 1ms delay becomes 4ms), sendfile_max_chunk 2m, and link speed above 2.5 Gbps. Using posted next events removes the artificial delay and makes processing fast in all cases.
Diffstat (limited to 'src/os/unix/ngx_linux_sendfile_chain.c')
0 files changed, 0 insertions, 0 deletions