panic: Assertion td->td_lock == TDQ_LOCKPTR(tdq) failed at /usr/src/sys/kern/sched_ule.c:2137

bob prohaska fbsd at www.zefox.net
Fri Jun 8 00:13:39 UTC 2018


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



More information about the freebsd-arm mailing list