commit | 717df913ea56c4c372895eb9c2dbdb9a1fa383f9 | [log] [tgz] |
---|---|---|
author | Maxim Dounin <mdounin@mdounin.ru> | Fri Oct 29 20:21:43 2021 +0300 |
committer | Maxim Dounin <mdounin@mdounin.ru> | Fri Oct 29 20:21:43 2021 +0300 |
tree | aa669395d898888cbd06c93ebf1a8aa57a6952e2 | |
parent | e5eb81d599e4a689c01e7e40ce3e445ea231723b [diff] |
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.