Created
December 2, 2011 12:01
-
-
Save fujieda/1422998 to your computer and use it in GitHub Desktop.
A dtrace script to investigate the behavior of L2ARC writing to its storages.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/sbin/dtrace -qs | |
l2arc_write_buffers:entry | |
{ | |
self->guid = ((l2arc_dev_t *)arg1)->l2ad_vdev->vdev_guid; | |
} | |
l2arc_write_buffers:return | |
{ | |
printf("%lu: dev: %llx written: %ld\n", timestamp / 1000000, self->guid, arg1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment