Re: sendfile(2) SF_NOPUSH flag proposal
From: Peter Jeremy (peterjeremy_at_optushome.com.au)
Date: 05/27/03
- Previous message: Peter Jeremy: "Re: sendfile(2) SF_NOPUSH flag proposal"
- In reply to: Igor Sysoev: "Re: sendfile(2) SF_NOPUSH flag proposal"
- Next in thread: Terry Lambert: "Re: sendfile(2) SF_NOPUSH flag proposal"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 27 May 2003 21:41:10 +1000 To: Igor Sysoev <is@rambler-co.ru>
On Tue, May 27, 2003 at 03:25:31PM +0400, Igor Sysoev wrote:
>On Tue, 27 May 2003, Peter Jeremy wrote:
>
>> 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.
>
>I think the calling setsockopt(TCP_NOPUSH, 1) syscall has huge overhead
>as compared to several C operators inside sendfile(2).
Agreed. But needing another one or two relatively cheap system calls
is negligible compared to the total overhead of accept(), several
select()/poll()/kqueue() calls, several sendfile() calls and a
close(). If you can produce some figures demonstrating that two
setsockopt() syscalls makes a noticable difference to the total cost
of sending a 48K file then your change might be worth considering.
>My point is not "the cheap change" but "the cheap overhead".
Please quantify the improvement amortised over a complete transaction
or connection.
Peter
_______________________________________________
freebsd-arch@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"
- Previous message: Peter Jeremy: "Re: sendfile(2) SF_NOPUSH flag proposal"
- In reply to: Igor Sysoev: "Re: sendfile(2) SF_NOPUSH flag proposal"
- Next in thread: Terry Lambert: "Re: sendfile(2) SF_NOPUSH flag proposal"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|