From owner-freebsd-arm@FreeBSD.ORG Wed Aug 14 07:48:14 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id BC7FF850 for ; Wed, 14 Aug 2013 07:48:14 +0000 (UTC) (envelope-from krister.olofsson@gmail.com) Received: from mail-vb0-x22c.google.com (mail-vb0-x22c.google.com [IPv6:2607:f8b0:400c:c02::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7B80E2533 for ; Wed, 14 Aug 2013 07:48:14 +0000 (UTC) Received: by mail-vb0-f44.google.com with SMTP id e13so7444984vbg.17 for ; Wed, 14 Aug 2013 00:48:13 -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=nlEfKeW/NKkiZVaRauNOk7QqEFGc+3u1pNiOx0DBbiY=; b=DFdtwPw8kz9wcGHvHUG71eNESj7BI9jTe/9uk2nX9+uHgKSDa5LEKu0x+7V9qHL1hq h3zxFHQRYjdpTIl4do/ObE3TcGAbzdlpGk826lX72wkcCfmhyHwpFSDQYb6ag3vnUo9l 7oaVmmtrP7L1GPotfxe4EbC6R7w38cubhBAeliOoqmex2qr/ff2hPcYGsOx/RLw0zzaI IYlxRDHyYELa4T92FGo5ufPpPWOeCb3FS0OpvqKh+HDo5S0+snAxjuS970VWIZmodPTS Gv+8Ve75flFacRE2Y72ya6DnGVRodP1ecu76YguOrRxyyfj3ymsSUsgvu2e9M/r+7CBH Pynw== MIME-Version: 1.0 X-Received: by 10.58.165.70 with SMTP id yw6mr8396905veb.19.1376466492833; Wed, 14 Aug 2013 00:48:12 -0700 (PDT) Received: by 10.58.254.4 with HTTP; Wed, 14 Aug 2013 00:48:12 -0700 (PDT) In-Reply-To: <1375976603.3320.147.camel@revolution.hippie.lan> References: <1375967077.3320.117.camel@revolution.hippie.lan> <1375976603.3320.147.camel@revolution.hippie.lan> Date: Wed, 14 Aug 2013 09:48:12 +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: Wed, 14 Aug 2013 07:48:14 -0000 The patch causes the system to hang during boot. The last line printed is 'Entropy harvesting: interrupts ethernet point_to_point' and Ctrl-c does not help. Regards, Krister 2013/8/8 Ian Lepore > Try the attached patch -- I need it to run 8.2 on a Kirkwood chip, maybe > the same thing is needed on Discovery chips. One of the things it fixes > for me is data corruption on big network and sata transfers, so maybe > it's related to the problem you're seeing. > > -- Ian > > On Thu, 2013-08-08 at 16:42 +0200, Krister Olofsson wrote: > > 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 > > > > > > > > > > > _______________________________________________ > > freebsd-arm@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" > >