From owner-freebsd-arm@freebsd.org Fri Mar 9 21:44:37 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 DFB30F4DE61 for ; Fri, 9 Mar 2018 21:44:37 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (www.zefox.net [69.239.235.194]) (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 414DC6E126; Fri, 9 Mar 2018 21:44:36 +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 w29LiV1R065969 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 9 Mar 2018 13:44:32 -0800 (PST) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.15.2/8.15.2/Submit) id w29LiV0m065968; Fri, 9 Mar 2018 13:44:31 -0800 (PST) (envelope-from fbsd) Date: Fri, 9 Mar 2018 13:44:31 -0800 From: bob prohaska To: Ian Lepore Cc: freebsd-arm@freebsd.org, bob prohaska Subject: Re: Garbled console output on Pi3 Message-ID: <20180309214431.GA65874@www.zefox.net> References: <20180307182117.GA55819@www.zefox.net> <1520628270.84937.56.camel@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1520628270.84937.56.camel@freebsd.org> User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Mar 2018 21:44:38 -0000 On Fri, Mar 09, 2018 at 01:44:30PM -0700, Ian Lepore wrote: > On Wed, 2018-03-07 at 10:21 -0800, bob prohaska wrote: > > From time to time I observe garbled console output on a Pi3 running -current. > > The present revision is? > > FreeBSD 12.0-CURRENT (ZEFOX) #1 r330571: Wed Mar??7 00:58:23 PST 2018 > > but I don't think that's special; the same thing has shown up sporadically > > for the past month or so. > > > > The output looks like this: > > > > Mar??7 09:53:53 www kernel: pid 44970 (llvm-tblgen), uid 0, was killed: out of swap space > > sswawpa_spp_apgaegr:er iw:ndsaewap fii_ppnand_ieptge fiweaanrig:eti??r:teb u wfiifannidt deefebr:i fnbuiiuffontife tberwajit:e??: bu0f, bufeblfokb nj:r:o:??0,w2 b b22u3fo94aibj,tl: k??b0nosui:,z fe b1siz87erlk6:n,??o:sbi 4zue: : 202f901o669b604,? > > ????ej0sw: : > > r:ag le4,0paap9 g6_epb > > ???????inrkd: inendefifnioini:te t w1eai35t bu w2fai6t0f b,er:uf fbufoerbj: :bufo??bjs0:i , z0bl, blkeknno: 2: o16: 4260191,52 > > ?9393s7ize:,??1siz63e:84 4 > > 096 > > swap_pager: indefinite wait buffer: bufobj: 0, blkno: 210573, size: 4096 > > > > The first and last lines look normal, which seems to rule out errors in > > the serial link.? > > I can't come up with a reason for this. This was normal in the old > days, but console output is buffered these days, and the buffer size is > 128 bytes on arm[64], so if things are going to interleave it should be > in chunks of 128, not a few chars at a time like that. > > Oh... unless it's a case of userland and the kernel writing to the > terminal at the same time, independently of each other. ?Were you > running the commands that are failing from the console? > Nothing running from the console, all commands were through ssh sessions. Can you suggest any experiments that might shed light on what's going on? So far it seems -j8 buildworld and stress2 can provoke the effect. Thanks for reading! bob prohaska