Skip to content

Instantly share code, notes, and snippets.

Created December 16, 2016 19:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/e9612b3238005b3fc89416971d4f9efc to your computer and use it in GitHub Desktop.
Save anonymous/e9612b3238005b3fc89416971d4f9efc to your computer and use it in GitHub Desktop.
db> show pcpu
cpuid = 1
dynamic pcpu = 0xfffffe00bac33c00
curthread = 0xfffff80007ccda00: pid 764 "watchman"
curpcb = 0xfffffe004f175b80
fpcurthread = 0xfffff80007ccda00: pid 764 "watchman"
idlethread = 0xfffff800035e9a00: tid 100004 "idle: cpu1"
curpmap = 0xfffff80007f9d138
tssp = 0xffffffff81e1cef8
commontssp = 0xffffffff81e1cef8
rsp0 = 0xfffffe004f175b80
gs32p = 0xffffffff81e23750
ldt = 0xffffffff81e23790
tss = 0xffffffff81e23780
spin locks held:
db> show allpcpu
Current CPU: 1
cpuid = 0
dynamic pcpu = 0xbefc00
curthread = 0xfffff8000c23b500: pid 1118 "rm"
curpcb = 0xfffffe004f1acb80
fpcurthread = 0xfffff8000c23b500: pid 1118 "rm"
idlethread = 0xfffff800035ea000: tid 100003 "idle: cpu0"
curpmap = 0xfffff8003b4d9138
tssp = 0xffffffff81e1ce90
commontssp = 0xffffffff81e1ce90
rsp0 = 0xfffffe004f1acb80
gs32p = 0xffffffff81e236e8
ldt = 0xffffffff81e23728
tss = 0xffffffff81e23718
spin locks held:
cpuid = 1
dynamic pcpu = 0xfffffe00bac33c00
curthread = 0xfffff80007ccda00: pid 764 "watchman"
curpcb = 0xfffffe004f175b80
fpcurthread = 0xfffff80007ccda00: pid 764 "watchman"
idlethread = 0xfffff800035e9a00: tid 100004 "idle: cpu1"
curpmap = 0xfffff80007f9d138
tssp = 0xffffffff81e1cef8
commontssp = 0xffffffff81e1cef8
rsp0 = 0xfffffe004f175b80
gs32p = 0xffffffff81e23750
ldt = 0xffffffff81e23790
tss = 0xffffffff81e23780
spin locks held:
db> show locks
exclusive sleep mutex kqueue (kqueue) r = 0 (0xfffff8000c009100) locked @ /usr/src/sys/kern/kern_event.c:2418
exclusive sx filedesc structure (filedesc structure) r = 0 (0xfffff80007d51040) locked @ /usr/src/sys/kern/kern_descrip.c:1229
db> show alllocks
Process 1118 (rm) thread 0xfffff8000c23b500 (100634)
shared lockmgr zfs (zfs) r = 0 (0xfffff8000cf47548) locked @ /usr/src/sys/kern/vfs_syscalls.c:3987
Process 764 (watchman) thread 0xfffff80007ccda00 (100622)
exclusive sleep mutex kqueue (kqueue) r = 0 (0xfffff8000c009100) locked @ /usr/src/sys/kern/kern_event.c:2418
exclusive sx filedesc structure (filedesc structure) r = 0 (0xfffff80007d51040) locked @ /usr/src/sys/kern/kern_descrip.c:1229
Process 762 (watchman) thread 0xfffff80007ccd000 (100596)
exclusive sx so_rcv_sx (so_rcv_sx) r = 0 (0xfffff800078317b0) locked @ /usr/src/sys/kern/uipc_sockbuf.c:283
db> show lockedvnods
Locked vnodes
0xfffff8000cf474e0: tag zfs, type VDIR
usecount 3, writecount 0, refcount 5 mountedhere 0
flags (VI_ACTIVE)
v_object 0xfffff8000c5e0630 ref 0 pages 0 cleanbuf 0 dirtybuf 0
lock type zfs: SHARED (count 1)
#0 0xffffffff80a25bbd at __lockmgr_args+0xc0d
#1 0xffffffff80afd96c at vop_stdlock+0x3c
#2 0xffffffff810258e8 at VOP_LOCK1_APV+0xe8
#3 0xffffffff80b1fde2 at _vn_lock+0xc2
#4 0xffffffff80b1d476 at kern_getdirentries+0x196
#5 0xffffffff80b1d2b8 at sys_getdirentries+0x28
#6 0xffffffff80ec2b26 at amd64_syscall+0x2f6
#7 0xffffffff80ea22eb at Xfast_syscall+0xfb
db>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment