From owner-freebsd-current Mon Jun 12 20:52:18 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id UAA21380 for current-outgoing; Mon, 12 Jun 1995 20:52:18 -0700 Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.34]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id UAA21373 for ; Mon, 12 Jun 1995 20:52:11 -0700 Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.9/8.6.9) id NAA06987; Tue, 13 Jun 1995 13:50:07 +1000 Date: Tue, 13 Jun 1995 13:50:07 +1000 From: Bruce Evans Message-Id: <199506130350.NAA06987@godzilla.zeta.org.au> To: roberto@blaise.ibp.fr, wollman@halloran-eldar.lcs.mit.edu Subject: Re: GENERIC kernel & some basic UNIX pointers Cc: current@FreeBSD.ORG Sender: current-owner@FreeBSD.ORG Precedence: bulk >> The user mode ppp seems slower (1.3 KB/s compared to 1.55 KB/s). Maybe >> a configuration problem on my part but I got the asyncmap right (I think). >Of course. Remember that you have to do a context switch to process >every packet. That doesn't come for free. The context switches don't stop zmodem from being faster than the kernel ppp even when the packet sizes are large. Perhaps I haven't set up pppd properly (I only use it to test it and use the default options) or something is not streaming properly. The kernel mode ppp has a hack for low ping latency. This saves an average of 5ms per end. Again, this should have little effect for large transmissions if everything is streaming properly. kernel ppp is inefficiently programmed. On a 486DX2/66 with a 16550 UART, the input overheads for 115200 bps are approximately: termios(raw) 6.3% cslip 7% ppp 9% These overheads include delivery of packets to an application that throws the packets away. About 3% of each overhead is for the lowest level of the driver (which handles interrupts and stores the input in a buffer). Thus for ppp, about 66% of the overhead is for the protocol and for delivery of packets to the user. It might be possibele for a user mode ppp to improve on this, but not by much since it has to pay for the termios(raw) protocol and packet delivery. Bruce