From owner-cvs-all Sun Nov 19 14:50:57 2000 Delivered-To: cvs-all@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 4C8CA37B479; Sun, 19 Nov 2000 14:50:54 -0800 (PST) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id eAJMosS02125; Sun, 19 Nov 2000 14:50:54 -0800 (PST) Date: Sun, 19 Nov 2000 14:50:54 -0800 From: Alfred Perlstein To: David Malone Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/kern uipc_socket2.c Message-ID: <20001119145053.P18037@fw.wintelcom.net> References: <200011192222.OAA12670@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200011192222.OAA12670@freefall.freebsd.org>; from dwmalone@FreeBSD.org on Sun, Nov 19, 2000 at 02:22:48PM -0800 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * David Malone [001119 14:22] wrote: > dwmalone 2000/11/19 14:22:48 PST > > Modified files: > sys/kern uipc_socket2.c > Log: > Make sbcompress use the new M_WRITABLE macro. Previously sbcompress > could not compress into clusters. This could result in lots of > wasted clusters while recieving small packets from an interface > that uses clusters for all it's packets. > > Patch is partially from BSDi (limiting the size of the copy) and > based on a patch for 4.1 by Ian Dowse and > myself. I always wanted to implement a highwater mark on sockets for wastage, so instead of limiting the copy, only compress the socket buffer when the amount of wastage comes withing some ratio of the amount of data. That way sbcompress could just calculate the waste factor in the socket and only compress when it exceeds a certain size. -- -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] "I have the heart of a child; I keep it in a jar on my desk." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message