From owner-freebsd-arm@FreeBSD.ORG Thu Aug 8 14:42:21 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 2BD06624 for ; Thu, 8 Aug 2013 14:42:21 +0000 (UTC) (envelope-from krister.olofsson@gmail.com) Received: from mail-vc0-x235.google.com (mail-vc0-x235.google.com [IPv6:2607:f8b0:400c:c03::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E0BD627E0 for ; Thu, 8 Aug 2013 14:42:20 +0000 (UTC) Received: by mail-vc0-f181.google.com with SMTP id hz10so176914vcb.12 for ; Thu, 08 Aug 2013 07:42:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=PupowOrfhBBxexz+tdP70mT/JvhXovq6gTgpptVy5Vg=; b=BYoca1I7dT73YQeJXgitMSXq9CvEtQ0Nj1tBorYCJq02YdX8fYIqRGm9UbXlsqXl5T 6Gr6ZsBfqB//hDdjOL9ZnKXABZTrKn5aDZ+galRIHjnrRdsTkXne9/fk8SW9RmShQAoi odXfaOrTysPpJJ4yxRZVDBOs/tqWi5DxrpZnFTfML7acUjdW6sYpPgNR0BeDWHByWLJI YUs5J0jrB+N2Vm54nWCvRxMkp6iMNjwySnL3uN4pClzlDi+j18i4PLCUVp+p07DSrTbc LEAcbcYg5yAnnmspZXXGvtEMsKxfH1qd/7uhww8LrUy+BuzNIfeuBaSRzAkOyfYrYnNg Jgog== MIME-Version: 1.0 X-Received: by 10.52.231.97 with SMTP id tf1mr2816247vdc.15.1375972939970; Thu, 08 Aug 2013 07:42:19 -0700 (PDT) Received: by 10.58.118.202 with HTTP; Thu, 8 Aug 2013 07:42:19 -0700 (PDT) In-Reply-To: <1375967077.3320.117.camel@revolution.hippie.lan> References: <1375967077.3320.117.camel@revolution.hippie.lan> Date: Thu, 8 Aug 2013 16:42:19 +0200 Message-ID: Subject: Re: System freezes when using scp From: Krister Olofsson To: freebsd-arm@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Aug 2013 14:42:21 -0000 Hi, I don't notice any pause if I ssh to it. (The pause using scp is ca 3 seconds) I've tested netcast and there is no problem if I send the output to /dev/null but the system reboots if I send it to a file. I've also tested to copy the file using nfs and there is no problem with that. Running 'cat file' (file size ca 50 Mb) sometimes causes the problem after ca 10 s, but not always. If I do ssh to a third machine and run 'cat file' the problem always occurs at once Regards, Krister 2013/8/8 Ian Lepore > On Thu, 2013-08-08 at 13:44 +0200, Krister Olofsson wrote: > > Hi, > > > > I'm working with a board with FreeBSD 8.2 on Marvell MV78100 (Discovery > > SOC) - an ARMv5TE and Marvell Gigabit Ethernet controller. > > My problem is that when I copy files (size ca 50 Mb) with scp using > > ethernet, the system > > seems to freeze for a few seconds before the copy process starts. > > The board has an external watchdog that has to be kicked but the script > > doing this freezes and the system is rebooted by the watchdog. > > > > Any ideas how to tackle this? > > > > Regards, > > Krister > > > > Configuration: > > > > # > > # Custom kernel for PROJ, based on Marvell's DB-78xx > > # > > [...] > > Do you get the same kind of pause interactively ssh'ing to it? When you > say "a few seconds" what do you mean? 3 seconds? 8? 30? > > I think a good first step is to figure out whether the problem is > related to ssh, or network IO, or disk IO. You can take ssh out of the > picture by using netcat to test, something like: > > On the arm: nc -l 8000 >/output/file > On the sender: nc 8000 > If you send the output to /dev/null on the arm you're just testing the > network part. > > In my experience, a long pause at the start of an ssh session followed > by normal performance after that is what you get when a wimpy arm chip > with software floating point generates the session keys. But that's > based on experience with a 180mhz armv4 chip. I've never noticed that > sort of slowness on my DreamPlug (1.2ghz Marvell Kirkwood chips). > > -- Ian > > >