[PATCH] - httpd: support for kernel sendfile() call
Pierre Métras
genepi at sympatico.ca
Fri Aug 10 19:41:19 UTC 2007
Hi,
Here is a small patch to enable the use of the linux kernel function
sendfile() in the httpd server (the last remaining TODO in network/httpd.c).
This is enabled by a configuration option, disabled by default.
Without enabling sendfile feature:
$ make bloatcheck
function old new delta
sendFile 252 247 -5
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-5) Total: -5 bytes
text data bss dec hex filename
87684 1068 10280 99032 182d8 busybox_old
87668 1068 10280 99016 182c8 busybox_unstripped
With sendfile feature enabled:
$ make bloatcheck
function old new delta
sendFile 252 294 +42
.rodata 9715 9747 +32
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/0 up/down: 74/0) Total: 74 bytes
text data bss dec hex filename
87684 1068 10280 99032 182d8 busybox_old
87805 1072 10280 99157 18355 busybox_unstripped
-- Pierre Métras
-------------- next part --------------
A non-text attachment was scrubbed...
Name: httpd_sendfile.patch
Type: text/x-diff
Size: 2864 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20070810/f85ac76e/attachment-0002.bin
More information about the busybox
mailing list