On Thu, Feb 16, 2017 at 11:48 AM, Niklas Edmundsson <[email protected]> wrote: > On Thu, 16 Feb 2017, Yann Ylavic wrote: > >> Here are some SSL/core_write outputs (sizes) for me, with 2.4.x. >> This is with a GET for a 2MB file, on localhost... >> >> Please note that "EnableMMap on" avoids EnableSendfile (i.e. >> "EnableMMap on" => "EnableSendfile off"), which is relevant only in >> the http (non-ssl) case anyway. >> >> 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.
http + !EnableMMap + EnableSendfile (21GB): [Thu Feb 16 12:08:43.809832 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] writev_nonblocking(): 291/291 bytes [Thu Feb 16 12:08:43.812446 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 11219190/21478375424 bytes [Thu Feb 16 12:08:43.812843 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 2095456/21467156234 bytes [Thu Feb 16 12:08:43.812893 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 130966/21465060778 bytes [Thu Feb 16 12:08:43.812908 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 0/21464929812 bytes [Thu Feb 16 12:08:43.814166 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 1964490/21464929812 bytes [Thu Feb 16 12:08:43.814205 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 0/21462965322 bytes [Thu Feb 16 12:08:43.815408 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 1833524/21462965322 bytes [Thu Feb 16 12:08:43.815482 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 196449/21461131798 bytes [Thu Feb 16 12:08:43.815499 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 0/21460935349 bytes [Thu Feb 16 12:08:43.816843 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 2160939/21460935349 bytes [Thu Feb 16 12:08:43.816881 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 0/21458774410 bytes [Thu Feb 16 12:08:43.818319 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 2160939/21458774410 bytes [...] [Thu Feb 16 12:08:44.538137 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 1768041/18805599699 bytes [Thu Feb 16 12:08:44.538145 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 0/18803831658 bytes [Thu Feb 16 12:08:44.538601 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 1768041/18803831658 bytes [Thu Feb 16 12:08:44.538609 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 0/18802063617 bytes [Thu Feb 16 12:08:44.539060 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 1833524/18802063617 bytes [Thu Feb 16 12:08:44.539069 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 0/18800230093 bytes [Thu Feb 16 12:08:44.539593 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 1964490/18800230093 bytes [Thu Feb 16 12:08:44.539601 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 0/18798265603 bytes [Thu Feb 16 12:08:44.540136 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 1964490/18798265603 bytes [Thu Feb 16 12:08:44.540156 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 0/18796301113 bytes [Thu Feb 16 12:08:44.540632 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 1964490/18796301113 bytes [Thu Feb 16 12:08:44.540639 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 0/18794336623 bytes [Thu Feb 16 12:08:44.541157 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 1964490/18794336623 bytes [Thu Feb 16 12:08:44.541164 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 0/18792372133 bytes [Thu Feb 16 12:08:44.541682 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 1899007/18792372133 bytes [...] [Thu Feb 16 12:08:44.584064 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 589347/18639141913 bytes [Thu Feb 16 12:08:44.584089 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 0/18638552566 bytes [Thu Feb 16 12:08:44.585826 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 6089919/18638552566 bytes [Thu Feb 16 12:08:44.586018 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 589347/18632462647 bytes [Thu Feb 16 12:08:44.586039 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 0/18631873300 bytes [Thu Feb 16 12:08:44.588182 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 7661511/18631873300 bytes [Thu Feb 16 12:08:44.588380 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 589347/18624211789 bytes [Thu Feb 16 12:08:44.588406 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 0/18623622442 bytes [Thu Feb 16 12:08:44.591299 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 10215348/18623622442 bytes [Thu Feb 16 12:08:44.591469 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 392898/18613407094 bytes [Thu Feb 16 12:08:44.591589 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 392898/18613014196 bytes [Thu Feb 16 12:08:44.591596 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 0/18612621298 bytes [Thu Feb 16 12:08:44.593138 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 5697021/18612621298 bytes [Thu Feb 16 12:08:44.593283 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 392898/18606924277 bytes [Thu Feb 16 12:08:44.593292 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 0/18606531379 bytes [...] [Thu Feb 16 12:08:44.601151 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 12769185/18591994153 bytes [Thu Feb 16 12:08:44.601772 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 2160939/18579224968 bytes [Thu Feb 16 12:08:44.602024 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 785796/18577064029 bytes [Thu Feb 16 12:08:44.602162 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 392898/18576278233 bytes [Thu Feb 16 12:08:44.602299 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 392898/18575885335 bytes [Thu Feb 16 12:08:44.602542 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 785796/18575492437 bytes [Thu Feb 16 12:08:44.602786 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 785796/18574706641 bytes [Thu Feb 16 12:08:44.602970 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 523864/18573920845 bytes [Thu Feb 16 12:08:44.603045 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 261932/18573396981 bytes [Thu Feb 16 12:08:44.603066 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 0/18573135049 bytes [Thu Feb 16 12:08:44.604751 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 6089919/18573135049 bytes [Thu Feb 16 12:08:44.604859 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 196449/18567045130 bytes [Thu Feb 16 12:08:44.604982 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 392898/18566848681 bytes [Thu Feb 16 12:08:44.604992 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 0/18566455783 bytes [Thu Feb 16 12:08:44.606469 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 5697021/18566455783 bytes [...] [Thu Feb 16 12:08:44.687960 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 5369606/18281670216 bytes [Thu Feb 16 12:08:44.688072 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 392898/18276300610 bytes [Thu Feb 16 12:08:44.688081 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 0/18275907712 bytes [Thu Feb 16 12:08:44.689681 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 6089919/18275907712 bytes [Thu Feb 16 12:08:44.689754 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 196449/18269817793 bytes [Thu Feb 16 12:08:44.689868 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 392898/18269621344 bytes [Thu Feb 16 12:08:44.690007 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 392898/18269228446 bytes [Thu Feb 16 12:08:44.690178 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 589347/18268835548 bytes [Thu Feb 16 12:08:44.691401 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 4125429/18268246201 bytes [Thu Feb 16 12:08:44.691516 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 392898/18264120772 bytes [Thu Feb 16 12:08:44.691616 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 392898/18263727874 bytes [Thu Feb 16 12:08:44.691624 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 0/18263334976 bytes [Thu Feb 16 12:08:45.332184 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 2147479552/18263334976 bytes [Thu Feb 16 12:08:45.918871 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 2147479552/16115855424 bytes [Thu Feb 16 12:08:46.497025 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 2147479552/13968375872 bytes [Thu Feb 16 12:08:47.057840 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 2147479552/11820896320 bytes [Thu Feb 16 12:08:47.624198 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 2147479552/9673416768 bytes [Thu Feb 16 12:08:48.183404 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 2147479552/7525937216 bytes [Thu Feb 16 12:08:48.751858 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 2147479552/5378457664 bytes [Thu Feb 16 12:08:49.309579 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 2147479552/3230978112 bytes [Thu Feb 16 12:08:49.620209 2017] [core:notice] [pid 26960:tid 139674034870016] [client 127.0.0.1:56722] sendfile_nonblocking(): 1083498560/1083498560 bytes
