From owner-freebsd-arm@freebsd.org Fri Mar 9 20:44:34 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 2FD97F4A263 for ; Fri, 9 Mar 2018 20:44:34 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from pmta2.delivery6.ore.mailhop.org (pmta2.delivery6.ore.mailhop.org [54.200.129.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B2AA76B852 for ; Fri, 9 Mar 2018 20:44:33 +0000 (UTC) (envelope-from ian@freebsd.org) X-MHO-User: 8deb4d7e-23da-11e8-b951-f99fef315fd9 X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 67.177.211.60 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [67.177.211.60]) by outbound2.ore.mailhop.org (Halon) with ESMTPSA id 8deb4d7e-23da-11e8-b951-f99fef315fd9; Fri, 09 Mar 2018 20:43:43 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id w29KiUDS008647; Fri, 9 Mar 2018 13:44:31 -0700 (MST) (envelope-from ian@freebsd.org) Message-ID: <1520628270.84937.56.camel@freebsd.org> Subject: Re: Garbled console output on Pi3 From: Ian Lepore To: bob prohaska , freebsd-arm@freebsd.org Date: Fri, 09 Mar 2018 13:44:30 -0700 In-Reply-To: <20180307182117.GA55819@www.zefox.net> References: <20180307182117.GA55819@www.zefox.net> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.18.5.1 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 8bit 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 20:44:34 -0000 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? -- Ian