From owner-freebsd-arm@freebsd.org Fri Jun 8 00:13:39 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 A04871009260; Fri, 8 Jun 2018 00:13:39 +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 008BB87CED; Fri, 8 Jun 2018 00:13:38 +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 w580DklN096285 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 7 Jun 2018 17:13:47 -0700 (PDT) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.15.2/8.15.2/Submit) id w580DjXR096284; Thu, 7 Jun 2018 17:13:45 -0700 (PDT) (envelope-from fbsd) Date: Thu, 7 Jun 2018 17:13:45 -0700 From: bob prohaska To: Mark Millard Cc: FreeBSD Current , freebsd-arm@freebsd.org Subject: Re: panic: Assertion td->td_lock == TDQ_LOCKPTR(tdq) failed at /usr/src/sys/kern/sched_ule.c:2137 Message-ID: <20180608001345.GA96201@www.zefox.net> References: <6CEF9465-3908-4D5E-BC9E-967B9D1DD6AA@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6CEF9465-3908-4D5E-BC9E-967B9D1DD6AA@yahoo.com> User-Agent: Mutt/1.5.24 (2015-08-30) 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: Fri, 08 Jun 2018 00:13:39 -0000 On Wed, Jun 06, 2018 at 10:28:58PM -0700, Mark Millard wrote: > > Looks like there has been another stab at avoiding some > unnecessary Out Of Memory killing of processes: > > Author: alc > Date: Thu Jun 7 02:54:11 2018 > New Revision: 334752 > URL: https://svnweb.freebsd.org/changeset/base/334752 > > > Log: > . . . One visible > effect of this error was that processes were being killed by the > virtual memory system's OOM killer when in fact there was plentiful > free memory. > An RPI3 kernel at 334800 still reported Jun 7 16:28:21 www kernel: pid 71329 (c++), uid 0, was killed: out of swap space during a -j4 buildworld. I wasn't watching top at the time, so I don't know how much swap was in use. Total available was 4 GB, which certainly seems like it ought to be enough. The swap was on both microSD and USB flash. I've run make clean in /usr/src/lib/clang/libllvm and restarted a -j4 buildworld with the -DNO_CLEAN option, and also set sysctl vm.pageout_update_period=0 to see what would happen. Within a few minutes buildworld stopped, the tail of the log file contained --- X86GenEVEX2VEXTables.inc --- llvm-tblgen -gen-x86-EVEX2VEX-tables -I /usr/src/contrib/llvm/include -I /usr/src/contrib/llvm/lib/Target/X86 -d X86GenEVEX2VEXTables.inc.d -o X86GenEVEX2VEXTables.inc /usr/src/contrib/llvm/lib/Target/X86/X86.td --- X86GenFastISel.inc --- llvm-tblgen -gen-fast-isel -I /usr/src/contrib/llvm/include -I /usr/src/contrib/llvm/lib/Target/X86 -d X86GenFastISel.inc.d -o X86GenFastISel.inc /usr/src/contrib/llvm/lib/Target/X86/X86.td --- X86GenDAGISel.inc --- Killed *** [X86GenDAGISel.inc] Error code 137 make[6]: stopped in /usr/src/lib/clang/libllvm 1 error make[6]: stopped in /usr/src/lib/clang/libllvm *** [all_subdir_lib/clang/libllvm] Error code 2 make[5]: stopped in /usr/src/lib/clang I'll try again, this time with USB swap turned off. Thanks for reading! bob prohaska