From owner-freebsd-arch Wed Mar 12 18: 4:13 2003 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 219B537B401 for ; Wed, 12 Mar 2003 18:04:12 -0800 (PST) Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4C74743FBD for ; Wed, 12 Mar 2003 18:04:11 -0800 (PST) (envelope-from gallatin@cs.duke.edu) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.12.8/8.12.8) with ESMTP id h2D24ARv000274 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Wed, 12 Mar 2003 21:04:10 -0500 (EST) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.11.6/8.9.1) id h2D245d88680; Wed, 12 Mar 2003 21:04:05 -0500 (EST) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15983.59156.942545.147957@grasshopper.cs.duke.edu> Date: Wed, 12 Mar 2003 21:04:04 -0500 (EST) To: Igor Sysoev Cc: arch@FreeBSD.ORG Subject: Re: Should sendfile() to return EAGAIN? [patch] In-Reply-To: References: <3E6CED5E.260E568E@imimic.com> X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Igor Sysoev writes: > On Mon, 10 Mar 2003, Alan L. Cox wrote: > > >Andrew Gallatin outlined an implementation earlier in this thread. I've > >e-mailed you a patch that does the critical parts of what he outlined. > > If this implementation increases vm_page size I think it should be enabled > via option in the kernel configuration. A typical FreeBSD machine never uses > sendfile() or uses little and never exhausts sf_buf's so this increase > would waste the kernel memory. > This could be done w/o increasing the page size. (ie, move the cow field of the vm_page to the sf_buf; see earlier message for details). Also, this change will be very helpful as it will allow sf_bufs to be used as general purpose containers for temporary kvm mappings.. Drew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message