server reboots after upgrade to postgres13

Derrick Lobo <[email protected]> Mon, 21 Jun 2021 15:07:58 +0000
Newsgroups gmane.os.netbsd.devel.ports,gmane.os.netbsd.current,gmane.os.netbsd.ports.x86-64
Message-ID <YQXPR01MB3208E51A537CB63ED19CD56E900A9@YQXPR01MB3208.CANPRD01.PROD.OUTLOOK.COM>
--_000_YQXPR01MB3208E51A537CB63ED19CD56E900A9YQXPR01MB3208CANP_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

We recently upgraded a few of our servers to postgres 13 and the ones that =
have this version have begun hanging or restarting ..

Bunch of them are on netbsd 9 while very few of them are on 7.12 netbsd9 do=
es not provide a coredump however I noticed this on the server that has net=
bsd 7.12
The servers that have crash are not a specific model the only common point =
is postgres 13

Any input by looking at the coredump below whats causing these crash/reboot=
..


crash -M netbsd.0.core
Crash version 7.1.2, image version 7.1.2.
System panicked: pmap_get_physpage: out of memory
Backtrace from time of crash is available.
crash> bt
_KERNEL_OPT_NARCNET() at 0
_KERNEL_OPT_ACPI_SCANPCI() at _KERNEL_OPT_ACPI_SCANPCI+0xf
vpanic() at vpanic+0x145
snprintf() at snprintf
pmap_growkernel() at pmap_growkernel+0x32c
uvm_map_prepare() at uvm_map_prepare+0x1d1
uvm_map() at uvm_map+0x74
uvm_km_alloc() at uvm_km_alloc+0x73
pool_grow() at pool_grow+0x2f
pool_catchup() at pool_catchup+0x17
pool_get() at pool_get+0x217
allocbuf() at allocbuf+0xea
getblk() at getblk+0xfc
bio_doread.isra.4() at bio_doread.isra.4+0x19
bread() at bread+0x1a
ffs_loadvnode() at ffs_loadvnode+0xc7
vcache_get() at vcache_get+0x2fa
ufs_lookup() at ufs_lookup+0x8fc
VOP_LOOKUP() at VOP_LOOKUP+0x34
lookup_once() at lookup_once+0x18b
namei_tryemulroot() at namei_tryemulroot+0x58a
namei() at namei+0x43
fd_nameiat.isra.0() at fd_nameiat.isra.0+0x54
do_sys_statat() at do_sys_statat+0x72
sys___lstat50() at sys___lstat50+0x25
syscall() at syscall+0x9a
--- syscall (number 441) ---
7f7ff70a6f5a:

--_000_YQXPR01MB3208E51A537CB63ED19CD56E900A9YQXPR01MB3208CANP_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri",sans-serif;
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri",sans-serif;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-US" link=3D"#0563C1" vlink=3D"#954F72" style=3D"word-wrap:=
break-word">
<div class=3D"WordSection1">
<p class=3D"MsoNormal">We recently upgraded a few of our servers to postgre=
s 13 and the ones that have this version have begun hanging or restarting .=