sendfile(2) SF_NOPUSH flag proposal

Igor Sysoev is at rambler-co.ru
Wed May 28 22:12:40 PDT 2003


On Wed, 28 May 2003, Bill Fenner wrote:

> >1) use TF_NOPUSH to coalesce the header and the first file part
> >   or the last file part and the trailer as Matthew Dillon suggested;

> Is this really necessary?

What exactly ? The use of TF_NOPUSH or a coalescence ? If the former then
it's a simple hackish solutiun without a modifyng writev().

> >2) use the same TF_NOPUSH to postpone the sending partial packet while
> >   a reading file page from the disk;

> PRUS_MORETOCOME does this too, and is quite a bit less hacky.

Yes, of course both flags do this.


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



More information about the freebsd-arch mailing list