From owner-freebsd-arm@freebsd.org Sat Aug 11 16:32:01 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 954331072B5B for ; Sat, 11 Aug 2018 16:32:01 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (www.zefox.net [50.1.20.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "www.zefox.org", Issuer "www.zefox.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 109C086F97; Sat, 11 Aug 2018 16:32:00 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (localhost [127.0.0.1]) by www.zefox.net (8.15.2/8.15.2) with ESMTPS id w7BGW9mQ041266 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sat, 11 Aug 2018 09:32:10 -0700 (PDT) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.15.2/8.15.2/Submit) id w7BGW9BH041265; Sat, 11 Aug 2018 09:32:09 -0700 (PDT) (envelope-from fbsd) Date: Sat, 11 Aug 2018 09:32:09 -0700 From: bob prohaska To: Warner Losh Cc: Mark Johnston , "freebsd-arm@freebsd.org" , bob prohaska Subject: Re: RPI3 swap experiments ["was killed: out of swap space" with: "v_free_count: 5439, v_inactive_count: 1"] Message-ID: <20180811163209.GA38922@www.zefox.net> References: <20180806155837.GA6277@raichu> <20180808153800.GF26133@www.zefox.net> <20180808204841.GA19379@raichu> <20180809065648.GB30347@www.zefox.net> <20180809152152.GC68459@raichu> <20180809153710.GC30347@www.zefox.net> <20180810044426.GB32974@www.zefox.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180810044426.GB32974@www.zefox.net> User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Aug 2018 16:32:01 -0000 Simply moving all swap to microSD (and leaving vm.pageout_oom_seq at the default value of 12) allowed an uneventul -j4 buildworld on r337226M, upgrading to r337564M with the patches suggested to date still in place. There were no warnings or errors on the console or controlling terminal. The microSD card used for /root, /tmp and swap is a Sandisk Ultra, supposedly a notch or two slower than the Sandisk Extreme USB flash drive that caused all the trouble. One small curiosity happened on reboot: the old kernel reported in part: Syncing disks, buffers remaining... 8 8 8 8 8 8 8 8 (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 07 20 e6 00 00 00 40 00 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (da0:umass-sim0:0:0:0): Retrying command, 3 more tries remain 8 8 8 8 8 8 8 8 8 8 8 8 Giving up on 8 buffers Uptime: 1d4h36m2s There followed a repetition of previously-seen errors on da0, but somewhow u-boot got control and the system came back up after self-fsck without intervention. Do the errors reported above narrow down at all what might be going wrong? Is there a patch or setting that would reveal what the CCB request error was? More complete transcripts are at http://www.zefox.net/~fbsd/rpi3/swaptests/r337226M/3gbsdflash/ Thanks for reading! bob prohaska