Skip to content

Instantly share code, notes, and snippets.

@evansus
evansus / arc_reap_stall.txt
Created March 2, 2017 21:47
arc reap stalls
Mar 2 16:31:23 evans-mbp kernel[0]: PS2K: Selected scan set 2
Mar 2 16:31:23 evans-mbp syslogd[60]: ASL Sender Statistics
Mar 2 16:31:32 evans-mbp kernel[0]: HPET: Using timer above configured range: 3
Mar 2 16:32:02 --- last message repeated 1 time ---
Mar 2 16:32:16 evans-mbp kernel[0]: SPL: xnu_alloc_throttled_bail TIMEOUT 1048576 bytes after 30 ticks (hz=119, seconds=0), 262 suspends, 0 blocked, 0 tries (bucket_131072)
Mar 2 16:32:16 evans-mbp kernel[0]: SPL: xnu_alloc_throttled_bail TIMEOUT 1048576 bytes after 30 ticks (hz=119, seconds=0), 261 suspends, 0 blocked, 0 tries (bucket_131072)
Mar 2 16:32:17 evans-mbp kernel[0]: SPL: xnu_alloc_throttled_bail TIMEOUT 1048576 bytes after 30 ticks (hz=119, seconds=0), 260 suspends, 0 blocked, 0 tries (bucket_131072)
Mar 2 16:32:17 evans-mbp kernel[0]: SPL: xnu_alloc_throttled_bail TIMEOUT 1048576 bytes after 30 ticks (hz=119, seconds=0), 261 suspends, 0 blocked, 0 tries (bucket_131072)
Mar 2 16:32:18 evans-mbp kernel[0]: SPL: xnu_alloc_throttled_bail TIM
@evansus
evansus / zvol_io_time_histograms.d
Last active August 29, 2015 14:14
zvol_io_time_histograms.d
#!/usr/sbin/dtrace -s
#pragma D option quiet
/*
* Times (in microseconds) of all zvol I/O functions:
* net_lundman_zfs_zvol_device::doAsyncReadWrite
* net_lundman_zfs_zvol_device::doUnmap
* net_lundman_zfs_zvol_device::doDiscard
* zvol_read_iokit
@evansus
evansus / zvol_io_size_histograms.d
Last active August 29, 2015 14:14
zvol_io_size_histograms.d
#!/usr/sbin/dtrace -s
#pragma D option quiet
/*
* Sizes of all zvol I/O functions:
* net_lundman_zfs_zvol_device::doAsyncReadWrite
* net_lundman_zfs_zvol_device::doUnmap
* net_lundman_zfs_zvol_device::doDiscard
* zvol_read_iokit
@evansus
evansus / zvol_io_histograms.d
Last active August 29, 2015 14:14
zvol_io_histograms.d
#!/usr/sbin/dtrace -s
#pragma D option quiet
/*
* Sizes and times (in microseconds) of all zvol I/O functions:
* net_lundman_zfs_zvol_device::doAsyncReadWrite
* net_lundman_zfs_zvol_device::doUnmap
* net_lundman_zfs_zvol_device::doDiscard
* zvol_read_iokit
@evansus
evansus / spindump-12-09-2014.txt
Last active August 29, 2015 14:11
spindump snippet for zvol_unmap_threaded
Two threads:
Thread 0x1007 DispatchQueue 25 1000 samples (1-1000) priority 48
1000 thread_start + 13 (libsystem_pthread.dylib + 5297) [0x7fff8b4b64b1]
1000 _pthread_start + 176 (libsystem_pthread.dylib + 12921) [0x7fff8b4b8279]
1000 _pthread_body + 131 (libsystem_pthread.dylib + 13052) [0x7fff8b4b82fc]
1000 _dispatch_worker_thread + 101 (libdispatch.dylib + 17491) [0x7fff8161b453]
1000 _dispatch_root_queue_drain + 463 (libdispatch.dylib + 18103) [0x7fff8161b6b7]
1000 _dispatch_queue_invoke + 202 (libdispatch.dylib + 28364) [0x7fff8161decc]
1000 _dispatch_queue_drain + 571 (libdispatch.dylib + 20820) [0x7fff8161c154]
@evansus
evansus / gist:a56a71da0c5943cb0839
Created December 18, 2014 08:43
spindump snippet for zvol_unmap (not threaded)
Thread 0x918 priority 81 cpu time 0.934s
*1001 call_continuation + 23 (mach_kernel) [0xffffff80002d7417]
*1001 hfs_scan_blocks + 104 (mach_kernel) [0xffffff8000577288]
*1001 ??? (mach_kernel + 3778429) [0xffffff800059a77d]
*1001 VNOP_IOCTL + 336 (mach_kernel) [0xffffff80003fe2f0]
*1001 spec_ioctl + 332 (mach_kernel) [0xffffff800040d95c]
*1001 dkioctl + 2211 (IOStorageFamily) [0xffffff7f807f8d66]
*1001 net_lundman_zfs_zvol_device::doUnmap(IOBlockStorageDeviceExtent*, unsigned int, unsigned int) + 69 (zfs) [0xffffff7f80edc815]
*1001 net_lundman_zfs_zvol_device::doDiscard(unsigned long long, unsigned long long) + 24 (zfs) [0xffffff7f80edc7b8]
*807 zvol_unmap + 294 (zfs) [0xffffff7f80edaf36]
Dec 9 21:20:28 localhost bootlog[0]: BOOT_TIME 1418178028 0
Dec 9 21:20:40 atlantis kernel[0]: ZFS: zvol starting unmap thread
Dec 9 21:20:40 atlantis kernel[0]: ZFS: unmap 0xffffff823697e000 thread is alive!
Dec 9 21:20:40 atlantis kernel[0]: ZFS: zvol starting unmap thread
Dec 9 21:20:40 atlantis kernel[0]: ZFS: unmap 0xffffff823697c000 thread is alive!
Dec 9 21:20:41 atlantis kernel[0]: ZFS: zvol starting unmap thread
Dec 9 21:20:41 atlantis kernel[0]: ZFS: unmap 0xffffff823697a000 thread is alive!
Dec 9 21:20:42 atlantis kernel[0]: ZFS: zvol starting unmap thread
Dec 9 21:20:42 atlantis kernel[0]: ZFS: unmap 0xffffff8236978000 thread is alive!
Dec 9 21:20:43 atlantis kernel[0]: ZFS: zvol starting unmap thread
Dec 4 01:58:09 atlantis kernel[0]: ZFS: zvol starting unmap thread
Dec 4 01:58:09 atlantis kernel[0]: ZFS: unmap 0xffffff81f8d7e000 thread is alive!
Dec 4 01:58:10 atlantis kernel[0]: ZFS: zvol starting unmap thread
Dec 4 01:58:10 atlantis kernel[0]: ZFS: unmap 0xffffff81f8d7a000 thread is alive!
Dec 4 01:58:14 atlantis kernel[0]: ZFS: zvol starting unmap thread
Dec 4 01:58:14 atlantis kernel[0]: ZFS: unmap 0xffffff81f8d78000 thread is alive!
Dec 4 01:58:25 atlantis kernel[0]: ZFS: zvol starting unmap thread
Dec 4 01:58:25 atlantis kernel[0]: ZFS: unmap 0xffffff81f8d7d000 thread is alive!
Dec 4 01:58:34 atlantis kernel[0]: ZFS: zvol starting unmap thread
Dec 4 01:58:34 atlantis kernel[0]: ZFS: unmap 0xffffff81f8d76000 thread is alive!
@evansus
evansus / gist:3668a68c17ad16ec53fd
Created December 4, 2014 07:55
Panic report Thu Dec 4 02:27:03 2014
Thu Dec 4 02:27:03 2014
*** Panic Report ***
panic(cpu 1 caller 0xffffff800d81e80a): Kernel trap at 0xffffff800d50e096, type 14=page fault, registers:
CR0: 0x000000008001003b, CR2: 0x0000000000000000, CR3: 0x000000001147b000, CR4: 0x00000000000626e0
RAX: 0x0000007b9cb99000, RBX: 0x0000000000000002, RCX: 0x0000000000000140, RDX: 0x0000000000000a00
RSP: 0xffffff81feb8bc48, RBP: 0xffffff81feb8bcb0, RSI: 0xffffff8463467000, RDI: 0x0000000000000000
R8: 0xffffff81f789983c, R9: 0x0000000000000a00, R10: 0x00000000002e0000, R11: 0xffffff81fb216038
R12: 0xffffff81f8afd848, R13: 0x00000000001fb5c2, R14: 0x0000000000000003, R15: 0xffffff81f8b6a748
RFL: 0x0000000000010202, RIP: 0xffffff800d50e096, CS: 0x0000000000000008, SS: 0x0000000000000010
@evansus
evansus / gist:3938a7e6ae8031d1bb03
Created July 17, 2014 17:32
spindump - doUnmap on mount
This file has been truncated, but you can view the full file.
Date/Time: 2014-07-16 15:10:44 -0400
OS Version: 10.9.4 (Build 13E28)
Architecture: x86_64
Report Version: 18
Command: No Target
Path: No Target
Version: ??? (???)
Parent: UNKNOWN PROCESS [0]