Received: from SOUTH-STATION-ANNEX.MIT.EDU by po7.MIT.EDU (5.61/4.7) id AA04363; Fri, 15 Mar 96 14:00:21 EST
Received: from pain.lcs.mit.edu by MIT.EDU with SMTP
	id AA18804; Fri, 15 Mar 96 13:59:29 EST
Received: (from daemon@localhost) by pain.lcs.mit.edu (8.7.4/8.6.12) id NAA25242; Fri, 15 Mar 1996 13:12:44 -0500 (EST)
Received: from UX2.SP.CS.CMU.EDU by pain.lcs.mit.edu (8.7.4/8.6.12) with SMTP id MAA25156; Fri, 15 Mar 1996 12:56:11 -0500 (EST)
Received: from localhost by UX2.SP.CS.CMU.EDU id aa27183; 15 Mar 96 12:54 EST
To: "John F. Woods" <jfw@funhouse.com>
Cc: matthew green <mrg@eterna.com.au>,
        The Source of All Evil <source@NetBSD.ORG>, source-changes@NetBSD.ORG,
        paulus@NetBSD.ORG
Subject: Re: NetBSD master CVS tree commits 
In-Reply-To: Your message of "Fri, 15 Mar 1996 08:37:04 EST."
             <199603151337.IAA26721@jfwhome.funhouse.com> 
Date: Fri, 15 Mar 1996 12:53:54 -0500
Message-Id: <27179.826912434@UX2.SP.CS.CMU.EDU>
From: Chris G Demetriou <Chris_G_Demetriou@UX2.SP.CS.CMU.EDU>
Sender: owner-source-changes@NetBSD.ORG
Precedence: list
X-Loop: source-changes@NetBSD.ORG

> I don't know about the packet filtering, but PPP compression has to be done
> after protocol encapsulation (you compress the ENTIRE PPP packet, not just
> the IP(/IPX/Appletalk/BNCP/...) data payload.  I suppose it COULD be done
> in pppd; but the overhead of switching from kernel to user mode twice would
> be most inconvenient.

i'm not sure that i'd buy that without a measurement to prove it.

1 PPP line is what?  at most 57.6k/sec?  150k/s?  If done in an
optimized manner (e.g. some shared memory region, or something), you'd
not have to pass the data back and forth, and, if multiple packets
could be done at once, it wouldn't necessarily be _that_ many extra
user-kernel switches per second...

yeah, data copying is bad, etc., but at low data rates it's not a
problem unless the implementation is _really_ inefficient...  And so i
wonder:
	(1) how widely will this code be used, and
	(2) what the performance impact of having it in user-land
	    would be.
With an eye to asking: "is the extra 35k+ (on i386) of wired kernel
memory a good deal" for the average person who has PPP in his kernel.
(Note that there are quite likely a fair number of people who have PPP
in their kernels but don't actually use it...  Now, perhaps that's
their problem, but taking away 9 pages of core isn't a great idea in
any case...)


cgd
