From owner-freebsd-questions@FreeBSD.ORG Fri Nov 23 21:56:46 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 45B2ABAD for ; Fri, 23 Nov 2012 21:56:46 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from asbnvacz-mailrelay01.megapath.net (asbnvacz-mailrelay01.megapath.net [207.145.128.243]) by mx1.freebsd.org (Postfix) with ESMTP id F11058FC08 for ; Fri, 23 Nov 2012 21:56:45 +0000 (UTC) Received: from mail3.sea5.speakeasy.net (mail3.sea5.speakeasy.net [69.17.117.42]) by asbnvacz-mailrelay01.megapath.net (Postfix) with ESMTP id DF947A7195D for ; Fri, 23 Nov 2012 16:31:50 -0500 (EST) Received: (qmail 785 invoked from network); 23 Nov 2012 21:31:50 -0000 Received: by simscan 1.4.0 ppid: 20264, pid: 7443, t: 0.2012s scanners: clamav: 0.88.2/m:52/d:10739 Received: from unknown (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail3.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 23 Nov 2012 21:31:50 -0000 Received: from lowell-desk.lan (lowell-desk.lan [172.30.250.8]) by be-well.ilk.org (Postfix) with ESMTP id 6688833C32; Fri, 23 Nov 2012 16:31:44 -0500 (EST) Received: by lowell-desk.lan (Postfix, from userid 1147) id 8964539851; Fri, 23 Nov 2012 16:31:43 -0500 (EST) From: Lowell Gilbert To: Paul Kraus Subject: Re: Odd X11 over SSH issue References: Date: Fri, 23 Nov 2012 16:31:43 -0500 In-Reply-To: (Paul Kraus's message of "Fri, 23 Nov 2012 12:43:58 -0500") Message-ID: <44obioatvk.fsf@lowell-desk.lan> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain Cc: Carl Zwanzig , FreeBSD Mailing List X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Nov 2012 21:56:46 -0000 Paul Kraus writes: > I am seeing very poor response time running the VitrualBox GUI via X11 > tunneled over SSH via the Internet. The issue _appears_ to be limited > to the VBox GUI as Firefox is reasonable. I am well aware of the > latency issues tunneling X11 over SSH across the Internet, but that is > what we are stuck with for the moment. The server is running FreeBSD 9 > and is patched as of about 4 weeks ago. > > Observations: > > 1. When I first SSH into the box I see a long delay after the SSH > tunnel is setup before being prompted for a password, and I do not > know if this delay is related to the VBox issue. Details below. Running the ssh server with more debugging will probably tell you what's happening in this area. > 2. When I fire up VirtualBox it takes _minutes_ before the window > opens and each action (drawing contents, mouse clicks) takes > additional _minutes_. Looking at the VirtualBox process with truss I > see many, many errors of the form: > > read(7,0x80193a02c,4096) ERR#35 'Resource temporarily unavailable' > > where fd 7 is a socket. This could be a red herring. Or not. But you can't tell without tracing down exactly what the socket is, and what is expected to be read from it. Probably not the first path worth exploring, although you may need to go there eventually. > I would chock it up to network slowness, but I > do not see the same behavior with Firefox, xload, or xclock. That's not a fair comparison, because tunneling a whole X server involves passing a lot more events than tunneling an application to run on your local server. This is particularly painful because the X protocols are highly serial. Is there any particular reason you don't let the X server run remotely and attach to it with something more latency-friendly, like vnc? I would expect that to work vastly better on any OS, just because you get X (specifically, its tendency to head-of-line blocking) out of its own way. Be well.