sendfile(2) SF_NOPUSH flag proposal
Peter Jeremy
peterjeremy at optushome.com.au
Tue May 27 03:28:14 PDT 2003
On Tue, May 27, 2003 at 11:57:20AM +0400, Igor Sysoev wrote:
>I thought about it more and I agree with you. TF_NOPUSH should be turned on
>at the start of a transaction and turned off at the end of a transaction.
>
>So I think there should be two flags:
>SF_NOPUSH - it turns TF_NOPUSH on before the sending. It's cheap:
>SF_PUSH - it turns TF_NOPUSH off after the sending has been completed.
I agree that the code appears trivial but in order to justify its
inclusion, you will need to demonstrate that there is some benefit to
FreeBSD to implement this code. Good justification would be:
1) The same API is implemented somewhere else (or there is agreement
between multiple groups to implement it). I don't believe this
functionality is implemented anywhere else and you've not provided
any evidence that any other groups are considering such functionality.
2) The new feature provides significant performance benefit. In this
case, I believe the overhead of calling setsockopt(2) is negligible
so the performance gain would be negligible.
3) The new feature provides novel functionality that cannot be
achieved using the existing API (eg kqueue(2)). The functionality
is already available via setsockopt(2) so this isn't applicable.
At this stage, I would suggest that you need to do better than "the
change is cheap" to justify adding this feature. Can you quantify
the performance benefits, or provide some other justification?
Peter
More information about the freebsd-arch
mailing list