From owner-freebsd-stable@FreeBSD.ORG Mon Feb 13 15:32:40 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B0A421065680 for ; Mon, 13 Feb 2012 15:32:40 +0000 (UTC) (envelope-from pol@leissner.se) Received: from mailgate.leissner.se (mailgate.leissner.se [212.3.1.210]) by mx1.freebsd.org (Postfix) with ESMTP id 24BA28FC0C for ; Mon, 13 Feb 2012 15:32:39 +0000 (UTC) Received: from mailgate.leissner.se (localhost [127.0.0.1]) by mailgate.leissner.se (8.14.5/8.14.5) with ESMTP id q1DFWcXS086251; Mon, 13 Feb 2012 16:32:38 +0100 (CET) (envelope-from pol@leissner.se) Received: (from uucp@localhost) by mailgate.leissner.se (8.14.5/8.14.5/Submit) id q1DFWcN2086250; Mon, 13 Feb 2012 16:32:38 +0100 (CET) (envelope-from pol@leissner.se) Received: from pol.leissner.se(192.71.29.17), claiming to be "pol-server.leissner.se" via SMTP by mailgate.leissner.se, id smtpdygt0J5; Mon Feb 13 16:32:32 2012 Received: from pol-server.leissner.se (localhost [127.0.0.1]) by pol-server.leissner.se (8.14.5/8.14.5) with ESMTP id q1DFWVH2092733; Mon, 13 Feb 2012 16:32:31 +0100 (CET) (envelope-from pol@leissner.se) Received: (from pol@localhost) by pol-server.leissner.se (8.14.5/8.14.5/Submit) id q1DFWVGq092732; Mon, 13 Feb 2012 16:32:31 +0100 (CET) (envelope-from pol@leissner.se) X-Authentication-Warning: pol-server.leissner.se: pol set sender to pol@leissner.se using -f Date: Mon, 13 Feb 2012 16:32:31 +0100 From: Peter Olsson To: Ivan Voras Message-ID: <20120213153231.GW53927@pol-server.leissner.se> References: <20120213015013.GA71062@pol-server.leissner.se> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-stable@freebsd.org Subject: Re: Tuning needed for slow RDP FreeBSD 9 -> Win 2008 R2 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Feb 2012 15:32:40 -0000 On Mon, Feb 13, 2012 at 04:09:05PM +0100, Ivan Voras wrote: > On 13/02/2012 02:50, Peter Olsson wrote: > > Desktop: FreeBSD 9.0-RELEASE amd64, generic kernel, > > running Openbox. My WAN is about 1.2 Mbps, and I try > > to run RDP to windows servers beyond my WAN. > > > > RDP to a Windows Server 2003 SP2 is fast and works > > without problems. > > > > RDP to a Windows Server 2008 R2 is very slow, > > and sometimes just disconnects. > > > > I tried changing a couple of net.inet.tcp sysctl: > > > Nothing has helped, do you have any ideas what I > > should tune? > > It is highly unlikely that any network tuning will help here - this is > almost certainly an application-level problem. > > For what it's worth, I'm using rdesktop to a Win2k8 R2 server without > any lag other problems. I have a colleague who runs Crunchbang (ie Debian) desktop. He had exactly the same performance problem until he used these sysctl: net.core.rmem_max=1048576 net.core.rmem_default=1048576 net.core.wmem_max=1048576 net.core.wmem_default=1048576 net.ipv4.tcp_rmem=1048576 1048576 3444736 net.ipv4.tcp_wmem=1048576 1048576 3444736 I don't know where he got those values, or what they could be translated to in FreeBSD, but they did solve the problem for him. That's why I'm hoping to find a similar sysctl solution for FreeBSD. I did sysctl -a | grep mem and grep buf, but find nothing obvious, except the net.inet.tcp.recvbuf and sendbuf values I have already tried changing. Also, I run Win7 in Virtualbox in my desktop, and from that Win7 I don't have the performance problem towards that RDP server. -- Peter Olsson pol@leissner.se