From owner-cvs-src@FreeBSD.ORG Tue Feb 17 01:01:45 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6A71416A4CE; Tue, 17 Feb 2004 01:01:45 -0800 (PST) Received: from smtp.des.no (flood.des.no [217.116.83.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3873A43D1F; Tue, 17 Feb 2004 01:01:45 -0800 (PST) (envelope-from des@des.no) Received: by smtp.des.no (Pony Express, from userid 666) id 367FD5309; Tue, 17 Feb 2004 10:01:44 +0100 (CET) Received: from dwp.des.no (des.no [80.203.228.37]) by smtp.des.no (Pony Express) with ESMTP id E04F15308; Tue, 17 Feb 2004 10:01:37 +0100 (CET) Received: by dwp.des.no (Postfix, from userid 2602) id 88FA933C68; Tue, 17 Feb 2004 10:01:37 +0100 (CET) To: Don Lewis References: <200402162354.i1GNs87E047987@gw.catspoiler.org> From: des@des.no (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=) Date: Tue, 17 Feb 2004 10:01:37 +0100 In-Reply-To: <200402162354.i1GNs87E047987@gw.catspoiler.org> (Don Lewis's message of "Mon, 16 Feb 2004 15:54:08 -0800 (PST)") Message-ID: User-Agent: Gnus/5.090024 (Oort Gnus v0.24) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on flood.des.no X-Spam-Level: X-Spam-Status: No, hits=0.0 required=5.0 tests=AWL autolearn=no version=2.63 cc: scottl@FreeBSD.org cc: src-committers@FreeBSD.org cc: rwatson@FreeBSD.org cc: cvs-all@FreeBSD.org cc: cvs-src@FreeBSD.org Subject: Re: cvs commit: src/sys/vm vm_kern.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Feb 2004 09:01:45 -0000 Don Lewis writes: > While I think an extra malloc option to get this behaviour is > reasonable, I think this is another situation where it would be better > to wire the user buffer and copy the data directly to user space. > Approximately the same amount of memory will be tied up servicing the > request in either case. No, the issue in pseudofs is that it needs a buffer of size offset + resid rather than just resid. There is a way to get around this though, by hack^H^H^H^Hextending the sbuf(9) API. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no