NetBSD Problem Report #52110

From martin@duskware.de  Sat Mar 25 13:43:20 2017
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 103687A1FE
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 25 Mar 2017 13:43:20 +0000 (UTC)
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: pager assertion fails
X-Send-Pr-Version: 3.95

>Number:         52110
>Category:       kern
>Synopsis:       pager assertion fails
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    chs
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Mar 25 13:45:00 +0000 2017
>Closed-Date:    Fri Nov 05 18:08:18 +0000 2021
>Last-Modified:  Fri Nov 05 18:08:18 +0000 2021
>Originator:     Martin Husemann
>Release:        NetBSD 7.99.66
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD night-rest.duskware.de 7.99.66 NetBSD 7.99.66 (GENERIC) #57: Fri Mar 24 19:46:27 CET 2017 martin@martins.aprisoft.de:/ssd/src/sys/arch/shark/compile/GENERIC shark
Architecture: earmv4
Machine: shark
>Description:

This happend while trying to run the weekly atf tests on a 96MB ram shark:

panic: kernel diagnostic assertion "uvmexp.swpgonly + npages <= uvmexp.swpginuse" failed: file "../../../../uvm/uvm_pager.c", line 472 
Stopped in pid 0.39 (system) at netbsd:cpu_Debugger+0x4:        mov     pc, r14
db> bt
0xf60a6e9c: netbsd:vpanic+0xc
0xf60a6eb4: netbsd:kern_assert+0x40
0xf60a6f24: netbsd:uvm_aio_aiodone_pages+0x510
0xf60a6f7c: netbsd:uvm_aio_aiodone+0x94
0xf60a6fac: netbsd:workqueue_worker+0xb8

db> ps
PID    LID S CPU     FLAGS       STRUCT LWP *               NAME WAIT
11566    1 2   0         0           f19fd600          t_exhaust

db> show uvm
Current UVM status:
  pagesize=4096 (0x1000), pagemask=0xfff, pageshift=12, ncolors=1
  22899 VM pages: 11245 active, 5733 inactive, 1853 wired, 656 free
  pages  13938 anon, 3665 file, 1228 exec
  freemin=114, free-target=152, wired-max=7633
  resv-pg=1, resv-kernel=5, zeropages=0
  cpu0:
    faults=8595173, traps=217318837, intrs=2462884, ctxswitch=1247775
    softint=835513, syscalls=54565076
  fault counts:
    noram=0, noanon=0, pgwait=0, pgrele=0
    ok relocks(total)=1538(1566), anget(retrys)=1220698(0), amapcopy=633310
    neighbor anon/obj pg=985466/8903283, gets(lock/unlock)=1944017/1566
    cases: anon=799827, anoncow=416502, obj=1735942, prcopy=208046, przero=612581
  daemon and swap counts:
    woke=134, revs=134, scans=110945, obscans=62147, anscans=1374
    busy=55, freed=63521, reactivate=3699, deactivate=145607
    pageouts=92, pending=1315, nswget=0
    nswapdev=1, swpgavail=524411
    swpages=524411, swpginuse=1403, swpgonly=1397, paging=0



>How-To-Repeat:
s/a

>Fix:
n/a

>Release-Note:

>Audit-Trail:
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/52110: pager assertion fails
Date: Sat, 29 Apr 2017 08:19:37 +0200

 It happened again, similar results...

 Martin

 panic: kernel diagnostic assertion "uvmexp.swpgonly + npages <= uvmexp.swpginuse
 " failed: file "../../../../uvm/uvm_pager.c", line 472
 db> bt
 0xf60a6ea4: netbsd:vpanic+0xc
 0xf60a6ebc: netbsd:kern_assert+0x40
 0xf60a6f2c: netbsd:uvm_aio_aiodone_pages+0x510
 0xf60a6f7c: netbsd:uvm_aio_aiodone+0x94
 0xf60a6fac: netbsd:workqueue_worker+0xb8
 db> show uvm 
 Current UVM status:
   pagesize=4096 (0x1000), pagemask=0xfff, pageshift=12, ncolors=1
   22897 VM pages: 11260 active, 5740 inactive, 1851 wired, 640 free
   pages  13894 anon, 3813 file, 1144 exec
   freemin=114, free-target=152, wired-max=7632
   resv-pg=1, resv-kernel=5, zeropages=0
   cpu0:
     faults=8568655, traps=223332422, intrs=2281677, ctxswitch=1067164
     softint=751516, syscalls=55249527
   fault counts:
     noram=0, noanon=0, pgwait=0, pgrele=0
     ok relocks(total)=1482(1510), anget(retrys)=1198025(0), amapcopy=603423
     neighbor anon/obj pg=987024/8890323, gets(lock/unlock)=1940229/1510
     cases: anon=782926, anoncow=410750, obj=1732691, prcopy=207509, przero=611724
   daemon and swap counts:
     woke=133, revs=133, scans=99286, obscans=62998, anscans=634
     busy=48, freed=63632, reactivate=3101, deactivate=139049
     pageouts=45, pending=621, nswget=0
     nswapdev=1, swpgavail=524411
     swpages=524411, swpginuse=647, swpgonly=645, paging=0


Responsible-Changed-From-To: kern-bug-people->chs
Responsible-Changed-By: chs@NetBSD.org
Responsible-Changed-When: Wed, 07 Jun 2017 22:36:42 +0000
Responsible-Changed-Why:
this was hit by wiz@ as well.  I sent them a patch that they are testing.


State-Changed-From-To: open->feedback
State-Changed-By: chs@NetBSD.org
State-Changed-When: Wed, 07 Jun 2017 22:37:29 +0000
State-Changed-Why:
is the patch working for you?


From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/52110 (pager assertion fails)
Date: Thu, 8 Jun 2017 10:53:22 +0200

 On Wed, Jun 07, 2017 at 10:37:29PM +0000, chs@NetBSD.org wrote:
 > is the patch working for you?

 I have not seen the issue again after applying it (but it happened
 not that often before, so not sure if that is yet conclusive testing).

 Martin

State-Changed-From-To: feedback->closed
State-Changed-By: martin@NetBSD.org
State-Changed-When: Fri, 05 Nov 2021 18:08:18 +0000
State-Changed-Why:
Have not seen the issue again


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.