On Thu, 16 Feb 2017, Yann Ylavic wrote:
Outputs (and the patch to produce them) attached.
TL;DR:
- http + EnableMMap => single write
- http + !EnableMMap + EnableSendfile => single write
- http + !EnableMMap + !EnableSendfile => 125KB writes
- https + EnableMMap => 16KB writes
- https + !EnableMMap => 8KB writes
If you try larger filesizes you should start seeing things being broken into
chunks even for mmap/sendfile. For example we have
#define AP_MAX_SENDFILE 16777216 /* 2^24 */
which is unneccessarily low IMHO.
Here I am, localhost still, 21GB file (client wget -qO- [url] &>/dev/null).
Output attached.
Looks good with nice big writes if I interpret it correctly.
Is this without patching anything, meaning that AP_MAX_SENDFILE has no
effect, or did you fix things?
/Nikke
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Niklas Edmundsson, Admin @ {acc,hpc2n}.umu.se | [email protected]
---------------------------------------------------------------------------
Fortunately... no one's in control.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=