Posts Tagged ‘scripts’

Ten DTrace Scripts Proven Helpful

Monday, April 28th, 2008

Prefetch Technologies, a site of reference materials for open source utilities, has outlined what it views as the Top Ten DTrace Scripts:

Number 10: Print Utilization statistics per process
Number 9: File System Flush Activity
Number 8: Seek Sizes
Number 7: Print Overall Paging Activity
Number 6: Getting System Wide errno Information
Number 5: I/O per process
Number 4: I/O Sizes Per Process
Number 3: TCP Top
Number 2: Who’s paging and DTrace enhanced vmstat
Number 1. I/O Top

Included with each are script samples, which the author chose since they are the ones “that have helped me debug and solve problems on the Solaris 10 servers I support.”

Handy DTrace Shell Commands

Wednesday, March 5th, 2008

Robert Weeks has posted a summary of handy DTrace shell commands created by Brendan Gregg called one liners. These script commands cover:

- New processes with arguments
- Files opened by process
- Syscall count by program
- Syscall count by syscall
- Syscall count by process
- Read bytes by process
- Write bytes by process
- Read size distribution by process
- Write size distribution by process
- Disk size by process
- Pages paged in by process
- Minor faults by process
- Interrupts by CPU
- New processes with arguments and time
- Successful signal details

Examples for each are also included.