Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Jun 2018 17:13:45 -0700
From:      bob prohaska <fbsd@www.zefox.net>
To:        Mark Millard <marklmi@yahoo.com>
Cc:        FreeBSD Current <freebsd-current@freebsd.org>, 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>
In-Reply-To: <6CEF9465-3908-4D5E-BC9E-967B9D1DD6AA@yahoo.com>
References:  <6CEF9465-3908-4D5E-BC9E-967B9D1DD6AA@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180608001345.GA96201>