i only know a sendfile on/off.
thanks
i only know a sendfile on/off.
thanks
On Mon, Sep 08, 2008 at 04:04:30PM +0800, btaccel btaccel wrote:
i only know a sendfile on/off.
What options do you mean ?
sendfile (FreeBSD 3.1+, Linux 2.2+, Mac OS X 10.5), sendfile64 (Linux
2.4.21+), and sendfilev (Solaris 8 7/01+) support;
if i use linux 2.6+, when i use sendfile on, nginx will use sendfile64
automatically?
if any optimization options for sendfile64.
On Mon, Sep 08, 2008 at 04:32:03PM +0800, btaccel btaccel wrote:
sendfile (FreeBSD 3.1+, Linux 2.2+, Mac OS X 10.5), sendfile64 (Linux
2.4.21+), and sendfilev (Solaris 8 7/01+) support;if i use linux 2.6+, when i use sendfile on, nginx will use sendfile64
automatically?
Yes.
if any optimization options for sendfile64.
No, there is optimization for Linux sendfile32: for files greater than
2G,
nginx sends 2G< part using sendfile, and >2G part using read()/write().
All other platforms allow 64-bit sendfile, if they have 64-bit off_t.
Linux was the only 64-bit off_t platform that had 32-bit sendfile only.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs