From owner-freebsd-questions@FreeBSD.ORG Thu Nov 16 23:49:33 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A680B16A4D0 for ; Thu, 16 Nov 2006 23:49:33 +0000 (UTC) (envelope-from freebsd@sopwith.solgatos.com) Received: from schitzo.solgatos.com (pool-71-117-237-135.ptldor.fios.verizon.net [71.117.237.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1143D43D91 for ; Thu, 16 Nov 2006 23:49:11 +0000 (GMT) (envelope-from freebsd@sopwith.solgatos.com) Received: from schitzo.solgatos.com (localhost.home.localnet [127.0.0.1]) by schitzo.solgatos.com (8.13.7/8.13.6) with ESMTP id kAGNnBQC007820 for ; Thu, 16 Nov 2006 15:49:11 -0800 Received: from sopwith.solgatos.com (uucp@localhost) by schitzo.solgatos.com (8.13.7/8.13.4/Submit) with UUCP id kAGNnBVY007812 for freebsd-questions@freebsd.org; Thu, 16 Nov 2006 15:49:11 -0800 Received: from localhost by sopwith.solgatos.com (8.8.8/6.24) id XAA27092; Thu, 16 Nov 2006 23:17:26 GMT Message-Id: <200611162317.XAA27092@sopwith.solgatos.com> To: freebsd-questions@freebsd.org Date: Thu, 16 Nov 2006 15:17:26 +0000 From: Dieter Subject: TCP parameters X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd@sopwith.solgatos.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Nov 2006 23:49:33 -0000 In the process of debugging a not-working-so-well TCP application, I've been asked to provide: > cat /proc/sys/net/ipv4/tcp_window_scaling > cat /proc/sys/net/ipv4/tcp_wmem Which of course results in "No such file or directory". I suspect these are from Linux. Are there equivalent parameters in FreeBSD 6.x ? The other end (non-FreeBSD non-open-source) is sending real-time data, and apparently is not able to keep up, its memory fills up, and it starts dropping packets. I suspect the problem is a combination of too much latency (FreeBSD not sending ACKs fast enough) and not enough window size. net.inet.tcp.recvspace and .sendspace seem relevant, anything else? I'm not a TCP wizard, so please feel free to point out things that should be obvious. :-) I doubt that the BSD network stack has anything to do with this, but perhaps there is something that could be tweaked to help out. I'm hoping that updating the Ethernet device drivers (bge, nve) will result in less latency. Then there is userland: Anyone want to code review a very simple 80 line TCP-to-stdout utility? I looked at socat, but it isn't LP64 clean.