NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/45718: processes sometimes get stuck and spin in vm_map



The following reply was made to PR kern/45718; it has been noted by GNATS.

From: Jeff Rizzo <riz%NetBSD.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: kern/45718: processes sometimes get stuck and spin in vm_map
Date: Sun, 27 Jan 2013 13:58:23 -0800

 I just hit what appears to be this problem in 6.0_STABLE with 6.0.1 (or 
 maybe 6.0_STABLE, I forget exactly) userland on NetBSD/evbarm (a 
 Sheevaplug):
 
 
 db> show uvm
 Current UVM status:
    pagesize=4096 (0x1000), pagemask=0xfff, pageshift=12
 , ncolors=1  127411 VM pages: 87390 active, 0 inactive, 1345 wired, 
 23658 free
    pages  8564 anon, 75753 file, 4418 exec
    freemin=256, free-target=341, wired-max=42470
    cpu0:
      faults=1285187, traps=11298455, intrs=2416539, ctxswitch=2281911
      softint=989950, syscalls=4468244
    fault counts:
      noram=1, noanon=0, pgwait=0, pgrele=0
      ok relocks(total)=54213(54213), anget(retrys)=70879(0), amapcopy=125623
      neighbor anon/obj pg=48318/1379218, gets(lock/unlock)=449220/54213
      cases: anon=47679, anoncow=23189, obj=334661, prcopy=114559, 
 przero=241394
    daemon and swap counts:
      woke=450, revs=450, scans=520574, obscans=499526, anscans=0
      busy=0, freed=499526, reactivate=1194, deactivate=561810
      pageouts=0, pending=0, nswget=0
      nswapdev=1, swpgavail=1874999
      swpages=1874999, swpginuse=0, swpgonly=0, paging=0
 db> ps /l
 PID    LID S CPU     FLAGS       STRUCT LWP *               NAME WAIT
 1758     1 3   0         0           c2f4ad20               cron vm_map
 1181     1 3   0         0           c2f36020               cron wait
 7580     1 3   0         0           c2f362c0               cron vm_map
 1627     1 3   0         0           c2f36560               cron wait
 1434     1 3   0         0           c2f36800               cron vm_map
 13657    1 3   0         0           c2f36aa0               cron wait
 13848    1 3   0         0           c2f36d40               cron vm_map
 1175     1 3   0         0           c2f16000               cron wait
 1238     1 3   0         0           c1be4540               cron vm_map
 13333    1 3   0         0           c1ce2aa0               cron vm_map
 12564    1 3   0         0           c1bb0560               cron wait
 1747     1 3   0         0           c1bb0aa0               cron wait
 1426     1 3   0         0           c2f162a0               cron vm_map
 1233     1 3   0         0           c2f16540               cron wait
 976      1 3   0         0           c2f167e0             dhcpcd vm_map
 1103     1 3   0         0           c2f16a80               cron vm_map
 13646    1 3   0         0           c2f16d20               cron wait
 13965    1 3   0         0           c2ef7020               cron vm_map
 5836     1 3   0         0           c2ef72c0               cron wait
 6667     1 3   0         0           c2ef7560               cron vm_map
 14218    1 3   0         0           c2ef7800               cron wait
 137      1 3   0         0           c2ef7aa0               cron vm_map
 328      1 3   0         0           c2ef7d40               cron wait
 135      1 3   0         0           c2eda000               cron vm_map
 326      1 3   0         0           c2eda2a0               cron vm_map
 12549    1 3   0         0           c2eda540               cron wait
 12996    1 3   0         0           c2eda7e0               cron wait
 1859     1 3   0         0           c2edaa80               cron vm_map
 11458    1 3   0         0           c2edad20               cron wait
 193      1 3   0         0           c2ebf020               cron vm_map
 192      1 3   0         0           c2ebf2c0               cron wait
 13363    1 3   0         0           c2ebf560               cron vm_map
 13233    1 3   0         0           c2ebf800               cron wait
 13371    1 3   0         0           c1ce2020             master vm_map
 13269    1 3   0         0           c2b4aaa0             master vm_map
 13784    1 3   0         0           c2ebfaa0               cron vm_map
 14142    1 3   0         0           c2ebfd40               cron wait
 13114    1 3   0         0           c2e8e000               cron vm_map
 14243    1 3   0         0           c2e8e2a0               cron wait
 13454    1 3   0         0           c2e8e540               cron vm_map
 12647    1 3   0         0           c2e8e7e0               cron vm_map
 13810    1 3   0         0           c2e8ea80               cron wait
 13423    1 3   0         0           c2e8ed20               cron wait
 11504    1 3   0         0           c1d65020               cron vm_map
 11266    1 3   0         0           c1d652c0               cron wait
 13559    1 3   0         0           c1d65560               cron vm_map
 13901    1 3   0         0           c1d65800               cron wait
 13309    1 3   0         0           c1d65aa0               cron vm_map
 12485    1 3   0         0           c1d65d40               cron wait
 12774    1 3   0         0           c2df7000               cron vm_map
 14154    1 3   0         0           c2df72a0               cron wait
 13183    1 3   0         0           c2df7540               cron vm_map
 11177    1 3   0         0           c2df77e0               cron wait
 10922    1 3   0         0           c2dc4020               cron vm_map
 12500    1 3   0         0           c2df7a80               cron vm_map
 11816    1 3   0         0           c2dc4aa0               cron wait
 12065    1 3   0         0           c2dc4800               cron wait
 12804    1 3   0         0           c2df7d20               make vm_map
 7516     1 3   0         0           c2dc42c0               make wait
 8630     1 3   0        80           c2dc4560                 sh wait
 6603     1 3   0        80           c2dc4d40               make wait
 5644     1 3   0        80           c2d89000                 sh wait
 96       1 3   0        80           c2d892a0                 sh wait
 1667     1 3   0        80           c2d89540        pbulk-build wait
 1566     1 3   0        80           c2d897e0                 sh wait
 1272     1 3   0        80           c2d89d20               sshd select
 136      1 3   0        80           c2d89a80                ssh select
 134      1 3   0        80           c2b4a020        pbulk-build select
 1555     1 3   0        80           c2b4a560                 sh wait
 98       1 3   0        80           c197e540                 sh wait
 1205     1 3   0        80           c197e000                 sh wait
 71       1 3   0        80           c1bb0800                zsh pause
 73       1 3   0        80           c1bb02c0               tmux kqueue
 1435     1 3   0   1000000           c1bb0d40              getty vm_map
 1262     1 3   0        80           c2b4a800               cron nanoslp
 784      1 3   0        80           c197e2a0               qmgr kqueue
 1117     1 3   0        80           c2b4a2c0              inetd kqueue
 1453     1 3   0        80           c2b4ad40              mdnsd select
 1316     1 3   0        80           c197e7e0             master kqueue
 1111     1 3   0        80           c1ce22c0               sshd select
 1041     1 3   0        80           c1be42a0               ntpd pause
 933      1 3   0        80           c197ea80               qmgr kqueue
 1046     1 3   0        80           c197ed20             master kqueue
 884      1 3   0        80           c1be4d20               sshd select
 364      1 3   0        80           c1bb0020            syslogd kqueue
 188      1 3   0         0           c1be4000             dhcpcd wait
 1        1 3   0        80           c1af82c0               init wait
 0       45 3   0       200           c1ce2560              nfsio nfsiod
 0       44 3   0       200           c1ce2800              nfsio nfsiod
 0       43 3   0       200           c1be4a80              nfsio nfsiod
 0       42 3   0       200           c1ce2d40              nfsio nfsiod
 0       41 3   0       200           c1be47e0            physiod physiod
 0       40 3   0       200           c1af9000           aiodoned aiodoned
 0       39 3   0       200           c1af9540            ioflush syncer
 0       38 3   0       200           c1af92a0           pgdaemon pgdaemon
 0       35 3   0       200           c1af97e0           swdmover swdmvr
 0       34 3   0       200           c1af8d40          cryptoret crypto_w
 0       33 3   0       200           c1a04000           scsibus0 sccomp
 0       32 3   0       200           c1af8aa0         usbtask-dr usbtsk
 0       31 3   0       200           c1af8800         usbtask-hc usbtsk
 0       30 3   0       200           c1af8560               usb0 usbevt
 0       29 3   0       200           c1af8020              unpgc unpgc
 0       28 3   0       200           c1af9d20        vmem_rehash vmem_rehash
 0       27 3   0       200           c1af9a80             sdmmc0 mmctaskq
 0       18 3   0       200           c1a042a0            atabus1 atath
 0       17 3   0       200           c1a04540            atabus0 atath
 0       16 3   0       200           c1a047e0               iic0 iicintr
 0       15 3   0       200           c1a04a80         pmfsuspend pmfsuspend
 0       14 3   0       200           c1a04d20           pmfevent pmfevent
 0       13 3   0       200           c19fd020         sopendfree sopendfr
 0       12 3   0       200           c19fd2c0           nfssilly nfssilly
 0       11 3   0       200           c19fd560            cachegc cachegc
 0       10 3   0       200           c19fd800              vrele vrele
 0        9 3   0       200           c19fdaa0             vdrain vdrain
 0        8 3   0       200           c19fdd40          modunload mod_unld
 0        7 3   0       200           c19f3000            xcall/0 xcall
 0        6 1   0       200           c19f32a0          softser/0
 0        5 1   0       200           c19f3540          softclk/0
 0        4 1   0       200           c19f37e0          softbio/0
 0        3 1   0       200           c19f3a80          softnet/0
 0    >   2 7   0       201           c19f3d20             idle/0
 0        1 3   0       200           c04cc960            swapper uvm
 db> t/a c2f4ad20
 trace: pid 1758 lid 1 at 0xcb691b58
 netbsd:mi_switch+0x10
          scp=0xc014787c rlv=0xc0143eb0 (netbsd:sleepq_block+0x88)
          rsp=0xcb691b5c rfp=0xcb691b80
          r10=0xc198e09c r9=0xc198e558
          r8=0x00000064 r7=0xc2f4ad20 r6=0xc04e9bd4 r5=0x00000000
          r4=0xc04ee2b4
 netbsd:sleepq_block+0x10
          scp=0xc0143e38 rlv=0xc011ae20 (netbsd:cv_timedwait+0xf0)
          rsp=0xcb691b84 rfp=0xcb691bb0
          r8=0x00000064 r7=0xc0367498
          r6=0xc04e9bd4 r5=0xc2f4ad20 r4=0xc04e9bd8
 netbsd:cv_timedwait+0x10
          scp=0xc011ad40 rlv=0xc02ddb40 (netbsd:uvm_map_prepare+0x178)
          rsp=0xcb691bb4 rfp=0xcb691c08
          r10=0x00801727 r9=0x00040000
          r8=0x00069138 r7=0xc04e9bd8 r6=0xc03e318c r5=0xc04e9bd4
          r4=0xc04e9bc4
 netbsd:uvm_map_prepare+0x10
          scp=0xc02dd9d8 rlv=0xc02ddda0 (netbsd:uvm_map+0x88)
          rsp=0xcb691c0c rfp=0xcb691c68
          r10=0x00000000 r9=0xcb691c24
          r8=0x00801727 r7=0xffffffff r6=0xcb691c98 r5=0x00040000
          r4=0xc04e9bc4
 netbsd:uvm_map+0x10
          scp=0xc02ddd28 rlv=0xc02d9394 (netbsd:uvm_km_alloc+0xbc)
          rsp=0xcb691c6c rfp=0xcb691cc4
          r10=0xc036b58c r9=0xc04dbc7c
          r8=0xc04e11c0 r7=0xffffffff r6=0xffffffff r5=0x00000000
          r4=0x00040000
 netbsd:uvm_km_alloc+0x10
          scp=0xc02d92e8 rlv=0xc0230040 (netbsd:pool_grow+0x38)
          rsp=0xcb691cc8 rfp=0xcb691cfc
          r10=0xc04dbc78 r9=0xc04dbc7c
          r8=0xc040934c r7=0xc04dbc78 r6=0x00000001 r5=0xc04dbc04
          r4=0xc04dbc04
 netbsd:pool_grow+0x10
          scp=0xc0230018 rlv=0xc022f994 (netbsd:pool_get+0x80)
          rsp=0xcb691d00 rfp=0xcb691d2c
          r10=0xc04dbc78 r9=0xc04dbc7c
          r8=0x00000001 r7=0x00000001 r6=0x00000000 r5=0x00000000
          r4=0xc04dbc04
 netbsd:pool_get+0x10
          scp=0xc022f924 rlv=0xc0123cd4 (netbsd:execve_loadvm+0x2d4)
          rsp=0xcb691d30 rfp=0xcb691d88
          r10=0xc04ee2b4 r9=0xcb691d5c
          r8=0xc2f38550 r7=0xc2f4ad20 r6=0x00000000 r5=0xc2f4ad20
          r4=0xcb691d94
 netbsd:execve_loadvm+0x10
          scp=0xc0123a10 rlv=0xc0126594 (netbsd:execve1+0x28)
          rsp=0xcb691d8c rfp=0xcb691ee0
          r10=0xc0407b14 r9=0x00000003
          r8=0xc2f38550 r7=0x0000003b r6=0xc2f4ad20 r5=0xc2f4ad20
          r4=0xcb691d94
 netbsd:execve1+0x10
          scp=0xc012657c rlv=0xc01265e4 (netbsd:sys_execve+0x2c)
          rsp=0xcb691ee4 rfp=0xcb691ef4
          r5=0xc2f4ad20 r4=0xcb691fb4
 netbsd:sys_execve+0x10
          scp=0xc01265c8 rlv=0xc02497a0 (netbsd:syscall+0x84)
          rsp=0xcb691ef8 rfp=0xcb691f84
 netbsd:syscall+0x10
          scp=0xc024972c rlv=0xc02499d0 (netbsd:swi_handler+0xb4)
          rsp=0xcb691f88 rfp=0xcb691fb0
          r10=0x00000000 r9=0x5105bad0
          r8=0x00000000 r7=0x00000001 r6=0xc03e322c r5=0xc2f4ad20
          r4=0xcb691fb4
 netbsd:swi_handler+0x10
          scp=0xc024992c rlv=0xc005f12c (netbsd:swi_entry+0x2c)
          rsp=0xcb691fb4 rfp=0xbfffe860
          r8=0xbfffede0 r7=0x00018ecc
          r6=0x2020c0a6 r5=0x00001230 r4=0xc03e322c
 db>
 


Home | Main Index | Thread Index | Old Index