Computers are *fast*!

Computers are *fast*!

So instead I used perf, which is a totally magical performance measurement tool for Linux. I needed to upgrade my kernel first, which was a bit nervewracking. But I did it! And it was beautiful. There are colours, and we got it to annotate the assembly code with performance statistics. Here’s what I ran to do it:

$ perf record ./bytesum_intrinsics The\ Newsroom\ S01E04.mp4
$ perf annotate --no-source

And here’s the result:

perf

The movdqa instructions have to do with accessing memory, and it spends 32% of its time on those instructions. So I think that means that it spends 32% of its time accessing RAM, and the other 68% of its time doing calculations. Super neat!

7 habits of highly successful Unix admins

7 habits of highly successful Unix admins

  1. Don’t wait for problems to find you
  2. Know your tools and your systems
  3. Prioritize, prioritize, prioritize
  4. Perform post mortems,  but don’t get lost in them
  5. Document your work
  6. Fix the problem AND explain
  7. Make time for yourself