Useful Dtrace One-Liners....
Finding write operations for a process. Especially when writing to a NFS share...
Finding the top userland stacks for a process
# dtrace -n 'syscall:::entry /execname == "execname"/ \
{ @[ustack()] = count();}'
Finding the same for a certain system call
# dtrace -n 'syscall::mmap:entry /execname == "execname"/ \
{ @[ustack()] = count();}'
# dtrace -n 'fsinfo:::write /execname == "execname"/ \
{ printf("%s", args[0]->fi_pathname) }'
Finding the top userland stacks for a process
{ @[ustack()] = count();}'
Finding the same for a certain system call
# dtrace -n 'syscall::mmap:entry /execname == "execname"/ \
{ @[ustack()] = count();}'
Comments