HN Books @HNBooksMonth

The best books of Hacker News.

Hacker News Comments on
DTrace: Dynamic Tracing in Oracle Solaris, Mac OS X and FreeBSD

Brendan Gregg, Jim Mauro · 2 HN comments
HN Books has aggregated all Hacker News stories and comments that mention "DTrace: Dynamic Tracing in Oracle Solaris, Mac OS X and FreeBSD" by Brendan Gregg, Jim Mauro.
View on Amazon [↗]
HN Books may receive an affiliate commission when you make purchases on sites after clicking through links on this page.
Amazon Summary
The Oracle Solaris DTrace feature revolutionizes the way you debug operating systems and applications. Using DTrace, you can dynamically instrument software and quickly answer virtually any question about its behavior. Now, for the first time, there's a comprehensive, authoritative guide to making the most of DTrace in any supported UNIX environment--from Oracle Solaris to OpenSolaris, Mac OS X, and FreeBSD. Written by key contributors to the DTrace community, DTrace teaches by example, presenting scores of commands and easy-to-adapt, downloadable D scripts. These concise examples generate answers to real and useful questions, and serve as a starting point for building more complex scripts. Using them, you can start making practical use of DTrace immediately, whether you're an administrator, developer, analyst, architect, or support professional. The authors fully explain the goals, techniques, and output associated with each script or command. Drawing on their extensive experience, they provide strategy suggestions, checklists, and functional diagrams, as well as a chapter of advanced tips and tricks. You'll learn how to Write effective scripts using DTrace's D language Use DTrace to thoroughly understand system performance Expose functional areas of the operating system, including I/O, filesystems, and protocols Use DTrace in the application and database development process Identify and fix security problems with DTrace Analyze the operating system kernel Integrate DTrace into source code Extend DTrace with other tools This book will help you make the most of DTrace to solve problems more quickly and efficiently, and build systems that work faster and more reliably.
HN Books Rankings

Hacker News Stories and Comments

All the comments and stories posted to Hacker News that reference this book.
So, background info. B. Gregg was at Sun before the evil Oracle acquisition. He quite literally wrote the book[0] on DTrace. Now he's at Netflix (i.e., he has as far as I can tell no vested interest in either that Docker/Solaris derivative [his interest is probably just getting great performance out anything that works rather than some plebian Mirage/unikernel vs on-the-metal BS we saw on Friday]). (Side-note, if you're reading this Mr. Gregg, your 2009 cheatsheet for DTrace[1] saved me countless hours on a production FreeBSD machine circa 2011. I owe you big.)

I've read his work on-and-off for a long time and there's little no to incendiary click-bait junk, or bias in most (if any) of what he publishes. Obviously he can't dedicate 60-hour resources a post-doc might, but he conducts most of his tests with rigor, and this blog post is no exception to the high-standards to which he presumably holds himself. I'd love to see Anil (one of the MirageOS leads (co-founder IIRC; pedigree - PhD from Imperial or Oxbridge)) comment. Either way, this is an example of how one should construct posts (I know we're not in academia, but there's no excuse for that absolutely abysmal post[2] made on Friday).

Thanks for raising the caliber of conversation, my good man.

[0] http://www.amazon.com/gp/product/0132091518/ref=as_li_ss_tl?...

[1] https://blogs.oracle.com/brendan/resource/DTrace-cheatsheet....

[2] https://www.joyent.com/blog/unikernels-are-unfit-for-product...

https://news.ycombinator.com/item?id=10953766 for the discussion

amirmc
> I'd love to see Anil [...] comment.

Does a tweet count as commentary for you?

" Profiling MirageOS unikernels from a Xen dom0, an excellent and short howto -- http://www.brendangregg.com/blog/2016-01-27/unikernel-profil... " https://twitter.com/avsm/status/692396667576938497

Also, it's the Cambridge Computer Lab you're thinking of (at the University of Cambridge).

We also spoke about debugging (but not to this depth) on today's Docker Online Meetup about unikernels. We made the same points but Brendan's post is fantastic as he shows a worked example. There's a discussion thread [1] and there'll be a video of that webinar out soon too.

[1] https://devel.unikernel.org/t/docker-online-meetup-about-uni...

doctorsher
I couldn't agree more; Brendan Gregg is awesome. I finally created an account just to say this. His materials on Linux performance analysis and monitoring[0] are phenomenal. The analysis and observability maps he made are quite helpful to see the big picture and put specific tools in their proper context. I also particularly appreciate his materials on perf.

Maybe I'm being too much of a fanboy, but I appreciate good materials when I come across them.

[0] http://www.brendangregg.com/linuxperf.html

masklinn
> Now he's at Netflix (i.e., he has as far as I can tell no vested interest in either that Docker/Solaris derivative

Well he probably has historical interest in Solaris, and generally any platform which supports dtrace, though he's been doing Linux work (http://www.brendangregg.com/linuxperf.html) for the last few years, given Netflix is mostly Linux-based with some FreeBSD (for the CDN nodes).

brendangregg
Thanks for the kind words, and I'm glad that cheatsheet was useful!

I'm sure if Anil or someone from the unikernel community is really interested in this, we'll see a better profiler soon (of either type). The initial goal should be to gather stacks for making into CPU flame graphs, which solve a ton of issues.

If anyone is interested in learning DTrace in detail, Amazon has a fairly comprehensive text:

http://www.amazon.com/DTrace-Dynamic-Tracing-Solaris-FreeBSD...

profquail
I found the book's website -- it has the errata and you can download all of the scripts from the book:

http://www.dtracebook.com/index.php/Main_Page

There's another very detailed book available for free from illumos (the OpenSolaris fork):

http://dtrace.org/guide/preface.html

HN Books is an independent project and is not operated by Y Combinator or Amazon.com.
~ yaj@
;laksdfhjdhksalkfj more things
yahnd.com ~ Privacy Policy ~
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.