is it possible to use more options for sendfile64 from nginx

Igor Sysoev is at rambler-co.ru
Mon Sep 8 12:46:19 MSD 2008


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.

> On Mon, Sep 8, 2008 at 4:11 PM, Igor Sysoev <is at rambler-co.ru> wrote:
> 
> > 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 ?


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list