From owner-freebsd-arm@freebsd.org Tue Jun 26 10:40:15 2018 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6E86B102033E for ; Tue, 26 Jun 2018 10:40:15 +0000 (UTC) (envelope-from jamie@catflap.org) Received: from donotpassgo.dyslexicfish.net (donotpassgo.dyslexicfish.net [IPv6:2001:19f0:300:2185:a:dead:bad:faff]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1AE808B476 for ; Tue, 26 Jun 2018 10:40:14 +0000 (UTC) (envelope-from jamie@catflap.org) Received: from donotpassgo.dyslexicfish.net (donotpassgo.dyslexicfish.net [104.207.135.49]) by donotpassgo.dyslexicfish.net (8.14.5/8.14.5) with ESMTP id w5QAeCAa035184; Tue, 26 Jun 2018 11:40:12 +0100 (BST) (envelope-from jamie@donotpassgo.dyslexicfish.net) Received: (from jamie@localhost) by donotpassgo.dyslexicfish.net (8.14.5/8.14.5/Submit) id w5QAeBKq035183; Tue, 26 Jun 2018 11:40:11 +0100 (BST) (envelope-from jamie) From: Jamie Landeg-Jones Message-Id: <201806261040.w5QAeBKq035183@donotpassgo.dyslexicfish.net> Date: Tue, 26 Jun 2018 11:40:11 +0100 Organization: Dyslexic Fish To: imp@bsdimp.com, fbsd@www.zefox.net Cc: freebsd-arm@freebsd.org Subject: Re: RPI3 swap experiments, was Re: GPT vs MBR for swap devices References: <25F1A4BA-FBFC-4C32-85DD-5F5BA71A2B1A@yahoo.com> <20180620023253.GA89924@www.zefox.net> <1D86911D-20D1-494A-822B-1C07C5598CB1@yahoo.com> <10CAC122-399D-459E-9153-ABD7E753777E@yahoo.com> <20180623143218.GA6905@www.zefox.net> <03C2D3C4-6E90-4054-AF79-BD7FE2B7958D@yahoo.com> <20180624231020.GA11132@www.zefox.net> <20180626052451.GA17293@www.zefox.net> In-Reply-To: User-Agent: Heirloom mailx 12.4 7/29/08 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (donotpassgo.dyslexicfish.net [104.207.135.49]); Tue, 26 Jun 2018 11:40:12 +0100 (BST) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Jun 2018 10:40:15 -0000 Warner Losh wrote: > > > _vfs_done():da0d[WRITE(offset=51819347968, length=131072)]error = 5 > > > g_vfs_done():da0d[WRITE(offset=51819479040, length=28672)]error = 5 > > > g_vfs_done():da0d[READ(offset=59586936832, length=32768)]error = 5 > > > g_vfs_done():vm_fault: pager read error, pid 823 (tcsh) > > > > The device is broken if you get this. Period. I don't know if it is > hardware, or software, but it is not a reliable storage device. Until > that's fixed, you'll continue to have a terrible experience with it. > [ ... ] > Sorry to sound so harsh, but the data has been consistent on this for > everything you've reported: it works for a while, then we get a bunch of > errors then a reboot. We need to start narrowing down which of these three > broad classes of root causes it is. I'd rank actual bad thumbdrive last on > the list. It's a tossup for me between missing quirk and a bug in the rpi > usb driver that manifests itself only under heavy load. IIRC, you said one > of rpi2/3 works and the other doesn't, which would suggest a usb bridge > driver problem... For what it's worth, I had the same errors on a rpi3 a few months ago, and eventualy gave up "to sort it tomorrow" - it hasn't been powered on since, but I still want to get it working. The system would run fine, but give the vfs errors on the 128GB usb thumb drive every week - like clockwork, when one of the heavier periodic jobs ran. I was running the latest CURRENT at the time. The thumb drive works fine elsewhere, and indeed - did on the same hardware when I test installed a linux install, and thrashed the hell out of it. I'll fire it up again - hopefully I'll still have the same results, and with 2 of us, we may find the cause quicker. (n.b. i never had swap errors, but I can't recall if i ever configured swap on the usb drive) Cheers, Jamie