RE: Processes blocked on ufs or getblk

From: Robin P. Blanchard <robin.blanchard_at_gactr.uga.edu>
Date: Tue, 3 Feb 2004 16:27:50 -0500
I noticed some commits to the aac driver and hoped that might lend itself to
further diagnosing the getblk issue on my dell 2650. Unfortunately, no. And,
yes, underlying filesystem is UFS2.

# uname -a
FreeBSD newweb.gactr.uga.edu 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Mon Feb  2
12:49:49 EST 2004
root_at_bsdfs5.gactr.uga.edu:/usr/obj/usr/src/sys/ule.debug  i386

# ident /boot/modules/aac.ko 
/boot/modules/aac.ko:
     $FreeBSD: src/sys/dev/aac/aac.c,v 1.82 2004/01/30 07:04:39 scottl Exp $
     $FreeBSD: src/sys/dev/aac/aac_pci.c,v 1.41 2004/01/30 07:04:39 scottl
Exp $
     $FreeBSD: src/sys/dev/aac/aac_disk.c,v 1.36 2003/10/21 18:28:33 silby
Exp $
     $FreeBSD: src/sys/dev/aac/aac_cam.c,v 1.14 2003/12/03 15:42:12 scottl
Exp $

# sysctl debug.enter_debugger=ddb
debug.enter_debuDgger: ebugger("debug.enter_debugger")
Stopped at      Debugger+0x55:  xchgl   %ebx,in_Debugger.0
db> ps
  pid   proc     uarea   uid  ppid  pgrp  flag   stat  wmesg    wchan  cmd
19681 c61f7898 e1869000    0 19669 19681 0004002 [CPU 0] sysctl
19670 c647dc08 ec1c7000    0  3140 19670 0004002 [SLP]ttyin 0xc6d49c40] bash
19669 c68c2370 ec36b000    0   582 19669 0004002 [SLP]wait 0xc68c2370] bash
19654 c6751a50 ec31e000    0  3140 19654 0004002 [SLP]ttyin 0xc6467a40] bash
19651 c68c2000 ec369000    0 19650  3144 0004002 [SLP]getblk 0xd2b8ec38]
makewhatis
19650 c67211b8 ec23c000    0 19649  3144 0004002 [SLP]wait 0xc67211b8] make
19649 c642e528 e9f55000    0 19644  3144 0004002 [SLP]wait 0xc642e528] sh
19644 c68c2898 ec36e000    0  3277  3144 0004002 [SLP]wait 0xc68c2898] make
 3277 c6727dc0 ec294000    0  3270  3144 0004002 [SLP]wait 0xc6727dc0] sh
 3270 c6737528 ec2a8000    0  3269  3144 0004002 [SLP]wait 0xc6737528] make
 3269 c65a0a50 ec1eb000    0  3219  3144 0004002 [SLP]wait 0xc65a0a50] sh
 3219 c6727a50 ec292000    0  3218  3144 0004002 [SLP]wait 0xc6727a50] make
 3218 c64301b8 e9f80000    0  3151  3144 0004002 [SLP]wait 0xc64301b8] sh
 3151 c674e6e0 ec313000    0  3149  3144 0004002 [SLP]wait 0xc674e6e0] make
 3149 c6737000 ec2a5000    0  3144  3144 0004002 [SLP]wait 0xc6737000] sh
 3144 c674e000 ec2eb000    0  3142  3144 0004002 [SLP]wait 0xc674e000] make
 3142 c6751898 ec31d000    0  3140  3142 0004002 [SLP]wait 0xc6751898] bash
 3140 c68c2c08 ec370000    0   498  3140 0000100 [CV]select 0xc0737ce4] sshd
  582 c65a0dc0 ec211000    0     1   582 0004102 [SLP]wait 0xc65a0dc0] login
  581 c65a2370 ec214000    0     1   581 0004002 [SLP]ttyin 0xc6268610] getty
  580 c647d370 ec1c2000    0     1   580 0004002 [SLP]ttyin 0xc6268c10] getty
  580 c647d370 ec1c2000    0     1   580 0004002 [SLP]ttyin 0xc6268c10] getty
  578 c647d000 ec178000    0     1   578 0004002 [SLP]ttyin 0xc6268810] getty
  577 c647d898 ec1c5000    0     1   577 0004002 [SLP]ttyin 0xc6147e10] getty
  521 c64306e0 e9f83000    0     1   521 0000000 [SLP]nanslp 0xc070a01c] cron
  507 c642e000 e9f52000   25     1   507 0000100 [SLP]pause 0xc65c3000]
sendmail
  504 c65a06e0 ec1e9000    0     1   504 0000100 [CV]select 0xc0737ce4]
sendmail
  498 c6430dc0 e9f87000    0     1   498 0000100 [CV]select 0xc0737ce4] sshd
  475 c65a0898 ec1ea000    0     1   475 0000000 [CV]select 0xc0737ce4] ntpd
  430 c65a0528 ec1e8000    0   427   427 0000100 [CV]select 0xc0737ce4]
rpc.lockd
  427 c65a0c08 ec1ec000    0     1   427 0000000 [CV]select 0xc0737ce4]
rpc.lockd
  425 c65a0000 ec1e5000    0     1   425 0000000 [CV]select 0xc0737ce4]
rpc.statd
  350 c61f7528 e1867000    1     1   350 0000100 [CV]select 0xc0737ce4]
rpcbind
  331 c61f7a50 e186a000    0     1   331 0000000 [CV]select 0xc0737ce4]
syslogd
  225 c61f7c08 e186b000    0     1   225 0000000 [SLP]pause 0xc6493000]
adjkerntz
   81 c642e6e0 e9f56000    0     0     0 0000204 [SLP]- 0xc07433ac] nfsiod 3
   80 c642e898 e9f57000    0     0     0 0000204 [SLP]- 0xc07433a8] nfsiod 2
   79 c642ea50 e9f58000    0     0     0 0000204 [SLP]- 0xc07433a4] nfsiod 1
   78 c642ec08 e9f59000    0     0     0 0000204 [SLP]- 0xc07433a0] nfsiod 0
   77 c642edc0 e9f5a000    0     0     0 0000204 [SLP]syncer 0xc07099e0]
syncer
   76 c6430000 e9f5b000    0     0     0 0000204 [SLP]vlruwt 0xc6430000]
vnlru
   75 c61a6a50 e1834000    0     0     0 0000204 [SLP]psleep 0xc073818c]
bufdaemon
   74 c61a6c08 e1835000    0     0     0 000020c [SLP]pgzero 0xc0749bc8]
pagezero
   73 c61a6dc0 e1836000    0     0     0 0000204 [SLP]psleep 0xc0749c20]
vmdaemon
   72 c61f5000 e1837000    0     0     0 0000204 [SLP]psleep 0xc0749c0c]
pagedaemon
    9 c61f51b8 e1838000    0     0     0 0000204 [SLP]aifthd 0xc61f51b8]
aac0aif
   71 c61f5370 e1839000    0     0     0 0000204 [LOCK  Giant c6573bc0] swi0:
tty:sio
    8 c61f5528 e183a000    0     0     0 0000204 [SLP]actask 0xc070196c]
acpi_task2
    7 c61f56e0 e183b000    0     0     0 0000204 [SLP]actask 0xc070196c]
acpi_task1
    6 c61f5898 e183c000    0     0     0 0000204 [SLP]actask 0xc070196c]
acpi_task0
   70 c61f5a50 e183d000    0     0     0 0000204 new [IWAIT] swi6:+
   69 c61f5c08 e183e000    0     0     0 0000204 [IWAIT] swi7: task queue
   68 c61f5dc0 e183f000    0     0     0 0000204 [IWAIT] swi3: cambio
   67 c61f7000 e1840000    0     0     0 0000204 new [IWAIT] swi2: camnet
   66 c61f71b8 e1841000    0     0     0 0000204 [IWAIT] swi7: acpitaskq
   65 c61f7370 e1842000    0     0     0 0000204 [IWAIT] swi5:+
    5 c61981b8 e17de000    0     0     0 0000204 [SLP]tqthr 0xc0711d48]
taskqueue
   64 c6198370 e17df000    0     0     0 0000204 [SLP]- 0xc0701bc0] random
    4 c6198528 e17e0000    0     0     0 0000204 [SLP]- 0xc07046c0] g_down
    3 c61986e0 e17e1000    0     0     0 0000204 [SLP]- 0xc07046bc] g_up
    2 c6198898 e17e2000    0     0     0 0000204 [SLP]- 0xc07046b4] g_event
   63 c6198a50 e17e3000    0     0     0 0000204 [IWAIT] swi1: net
   62 c6198c08 e17e4000    0     0     0 0000204 new [IWAIT] swi4: vm
   61 c6198dc0 e17e5000    0     0     0 000020c [LOCK  Giant c6573bc0] swi8:
tty:sio clock
   60 c61a6000 e17e6000    0     0     0 0000204 new [IWAIT] irq0: clk
   59 c61a61b8 e17e7000    0     0     0 0000204 new [IWAIT] irq47:
   58 c61a6370 e17e8000    0     0     0 0000204 new [IWAIT] irq46:
   57 c61a6528 e17e9000    0     0     0 0000204 new [IWAIT] irq45:
   56 c61a66e0 e17ea000    0     0     0 0000204 new [IWAIT] irq44:
   55 c61a6898 e1833000    0     0     0 0000204 new [IWAIT] irq43:
   54 c6181a50 e17ad000    0     0     0 0000204 new [IWAIT] irq42:
   53 c6181c08 e17ae000    0     0     0 0000204 new [IWAIT] irq41:
   52 c6181dc0 e17af000    0     0     0 0000204 new [IWAIT] irq40:
   51 c6195000 e17b0000    0     0     0 0000204 new [IWAIT] irq39:
   50 c61951b8 e17b1000    0     0     0 0000204 new [IWAIT] irq38:
   49 c6195370 e17b2000    0     0     0 0000204 new [IWAIT] irq37:
   48 c6195528 e17b3000    0     0     0 0000204 new [IWAIT] irq36:
   47 c61956e0 e17b4000    0     0     0 0000204 new [IWAIT] irq35:
   46 c6195898 e17b5000    0     0     0 0000204 new [IWAIT] irq34:
   45 c6195a50 e17b6000    0     0     0 0000204 new [IWAIT] irq33:
   44 c6195c08 e17db000    0     0     0 0000204 new [IWAIT] irq32:
   43 c6195dc0 e17dc000    0     0     0 0000204 new [IWAIT] irq31:
   42 c6198000 e17dd000    0     0     0 0000204 new [IWAIT] irq30: aac0
   41 c6171528 e177d000    0     0     0 0000204 [LOCK  Giant c6573bc0]
irq29: bge1
   40 c61716e0 e177e000    0     0     0 0000204 [LOCK  Giant c6573bc0]
irq28: bge0
   39 c6171898 e177f000    0     0     0 0000204 new [IWAIT] irq27:
   38 c6171a50 e1780000    0     0     0 0000204 new [IWAIT] irq26:
   37 c6171c08 e1781000    0     0     0 0000204 new [IWAIT] irq25:
   36 c6171dc0 e1782000    0     0     0 0000204 new [IWAIT] irq24:
   35 c6181000 e1783000    0     0     0 0000204 new [IWAIT] irq23:
   34 c61811b8 e17a8000    0     0     0 0000204 new [IWAIT] irq22:
   33 c6181370 e17a9000    0     0     0 0000204 new [IWAIT] irq21:
   32 c6181528 e17aa000    0     0     0 0000204 new [IWAIT] irq20:
   31 c61816e0 e17ab000    0     0     0 0000204 new [IWAIT] irq19:
   30 c6181898 e17ac000    0     0     0 0000204 new [IWAIT] irq18:
   29 c22691b8 dfd45000    0     0     0 0000204 new [IWAIT] irq17:
   28 c2269370 dfd46000    0     0     0 0000204 new [IWAIT] irq16:
   27 c2269528 dfd47000    0     0     0 0000204 new [IWAIT] irq15: ata1
   26 c22696e0 dfd48000    0     0     0 0000204 [IWAIT] irq14: ata0
   25 c2269898 dfd6d000    0     0     0 0000204 new [IWAIT] irq13:
   24 c2269a50 dfd6e000    0     0     0 0000204 new [IWAIT] irq12: psm0
   23 c2269c08 dfd6f000    0     0     0 0000204 new [IWAIT] irq11:
   22 c2269dc0 dfd70000    0     0     0 0000204 new [IWAIT] irq10:
   21 c6171000 e177a000    0     0     0 0000204 new [IWAIT] irq9: acpi0
   20 c61711b8 e177b000    0     0     0 0000204 new [IWAIT] irq8: rtc
   19 c6171370 e177c000    0     0     0 0000204 new [IWAIT] irq7:
   18 c2260000 dfcf3000    0     0     0 0000204 [IWAIT] irq6: fdc0
   17 c22601b8 dfd3c000    0     0     0 0000204 new [IWAIT] irq5:
   16 c2260370 dfd3d000    0     0     0 0000204 new [IWAIT] irq4: sio0
   15 c2260528 dfd3e000    0     0     0 0000204 new [IWAIT] irq3: sio1
   14 c22606e0 dfd3f000    0     0     0 0000204 new [IWAIT] irq2:
   13 c2260898 dfd40000    0     0     0 0000204 [IWAIT] irq1: atkbd0
   12 c2260a50 dfd41000    0     0     0 000020c [Can run] idle: cpu0
   11 c2260c08 dfd42000    0     0     0 000020c [CPU 1] idle: cpu1
    1 c2260dc0 dfd43000    0     0     1 0004200 [SLP]wait 0xc2260dc0] init
   10 c2269000 dfd44000    0     0     0 0000204 [CV]ktrace 0xc0707c04]
ktrace
    0 c0704760 c0c1f000    0     0     0 0000200 [SLP]sched 0xc0704760]
swapper
db> show lockedvnods
Locked vnodes
0xc6d376f0: tag ufs, type VREG, usecount 1, writecount 0, refcount 1, flags
(VV_OBJBUF), lock type ufs: EXCL (count 1) by thread 0xc6753000 (pid 19651)
        ino 2419, on dev aacd0s1f (4, 25)
db> tr 19651
sched_switch(c6753000,2,c06b53a5,1d2,512b41bf) at sched_switch+0x165
mi_switch(1,50,c06b53a5,ca,1) at mi_switch+0x298
msleep(d2b8ec38,c0709360,50,c06bb742,0) at msleep+0x500
acquire(ec347a38,2000020,600,e7,c06bb3c9) at acquire+0xae
debuglockmgr(d2b8ec38,2090022,c6d376f0,c6753000,c06af5fb) at
debuglockmgr+0x477
getblk(c6d376f0,0,0,800,0) at getblk+0x1a7
breadn(c6d376f0,0,0,800,0) at breadn+0x52
bread(c6d376f0,0,0,800,0) at bread+0x4c
ffs_read(ec347be4,c06bd3bc,c6753000,c06bd39e,20e) at ffs_read+0x43f
vn_read(c64653b8,ec347c80,c65af100,0,c6753000) at vn_read+0x215
dofileread(c6753000,c64653b8,4,80c7000,4000) at dofileread+0xdc
read(c6753000,ec347d14,c,43a,3) at read+0x6b
syscall(806002f,2f,bfbf002f,806c138,4000) at syscall+0x2a0
Xint0x80_syscall() at Xint0x80_syscall+0x1d
--- syscall (3, FreeBSD ELF32, read), eip = 0x8061a4f, esp = 0xbfbfd3ac, ebp
= 0
xbfbfd3c8 ---
db> cont

---------------------------------------
Robin P. Blanchard
Systems Integration Specialist
Georgia Center for Continuing Education
fon: 706.542.2404 < > fax: 706.542.6546
---------------------------------------
Received on Tue Feb 03 2004 - 12:27:57 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:41 UTC