From owner-cvs-all@FreeBSD.ORG Sat Jan 31 23:56:46 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F2ACE16A4CE; Sat, 31 Jan 2004 23:56:45 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2464143D31; Sat, 31 Jan 2004 23:56:45 -0800 (PST) (envelope-from silby@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i117ui0B094819; Sat, 31 Jan 2004 23:56:44 -0800 (PST) (envelope-from silby@repoman.freebsd.org) Received: (from silby@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i117uiWm094818; Sat, 31 Jan 2004 23:56:44 -0800 (PST) (envelope-from silby) Message-Id: <200402010756.i117uiWm094818@repoman.freebsd.org> From: Mike Silbersack Date: Sat, 31 Jan 2004 23:56:44 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/kern kern_subr.c uipc_mbuf.c uipc_syscalls.c src/sys/sys uio.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Feb 2004 07:56:46 -0000 silby 2004/01/31 23:56:44 PST FreeBSD src repository Modified files: sys/kern kern_subr.c uipc_mbuf.c uipc_syscalls.c sys/sys uio.h Log: Rewrite sendfile's header support so that headers are now sent in the first packet along with data, instead of in their own packet. When serving files of size (packetsize - headersize) or smaller, this will result in one less packet crossing the network. Quick testing with thttpd and http_load has shown a noticeable performance improvement in this case (350 vs 330 fetches per second.) Included in this commit are two support routines, iov_to_uio, and m_uiotombuf; these routines are used by sendfile to construct the header mbuf chain that will be linked to the rest of the data in the socket buffer. Revision Changes Path 1.80 +42 -0 src/sys/kern/kern_subr.c 1.125 +56 -0 src/sys/kern/uipc_mbuf.c 1.171 +43 -12 src/sys/kern/uipc_syscalls.c 1.31 +3 -0 src/sys/sys/uio.h