Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Nov 2000 14:50:54 -0800
From:      Alfred Perlstein <bright@wintelcom.net>
To:        David Malone <dwmalone@FreeBSD.org>
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>
In-Reply-To: <200011192222.OAA12670@freefall.freebsd.org>; from dwmalone@FreeBSD.org on Sun, Nov 19, 2000 at 02:22:48PM -0800
References:  <200011192222.OAA12670@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
* David Malone <dwmalone@FreeBSD.org> [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 <iedowse@maths.tcd.ie> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001119145053.P18037>