From owner-freebsd-questions@FreeBSD.ORG Mon Apr 14 13:23:16 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A0E5C106564A for ; Mon, 14 Apr 2008 13:23:16 +0000 (UTC) (envelope-from smallhand@crawblog.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.231]) by mx1.freebsd.org (Postfix) with ESMTP id 829A68FC14 for ; Mon, 14 Apr 2008 13:23:16 +0000 (UTC) (envelope-from smallhand@crawblog.com) Received: by rv-out-0506.google.com with SMTP id b25so721103rvf.43 for ; Mon, 14 Apr 2008 06:23:16 -0700 (PDT) Received: by 10.141.79.12 with SMTP id g12mr3309484rvl.87.1208177738414; Mon, 14 Apr 2008 05:55:38 -0700 (PDT) Received: by 10.141.190.19 with HTTP; Mon, 14 Apr 2008 05:55:38 -0700 (PDT) Message-ID: <919383240804140555r6ea4d5arde9567495e64dab4@mail.gmail.com> Date: Mon, 14 Apr 2008 08:55:38 -0400 From: "Edward Ruggeri" To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Slow performance as root over SSH? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Apr 2008 13:23:16 -0000 Hi all, (This may actually be a question for the dtach people). I've recently been using dtach (basically the detach function of screen) over SSH to instruct my freeBSD machine to perform long tasks even after I disconnect from it. It's worked great: I run SSH and connect to my box, execute dtach to create a new session in which to execute a program, hit ctr-\ to detach the session from the terminal, and then I can close the SSH tunnel. Recently, I figured to do this with portupgrade. Now, I don't allow root login, so I log in as a user in the wheel group and use su. Now, as root, I run: dtach -A portupgrade -a. It starts working, but extremely slowly. For instance, "portsnap fetch update" takes several minutes, whereas it normally is blazing fast when performed locally. I can still detach, exit root, and close the SSH tunnel. I suppose this is probably a dtach performance issue? If anyone has any thoughts, I'd definitely appreciate them. Thanks! Sincerely, -- Ned Ruggeri