Sun Solutions by Forsythe
Chad Mynhier
Master Consultant

Chad Mynhier's blog

user warning: Duplicate entry '827686' for key 1 query: INSERT INTO dr_accesslog (title, path, url, hostname, uid, sid, timer, timestamp) values('Becoming an Environmentalist', 'node/107', '', '38.107.191.86', 0, '6embtud40on8btpkpfo7jdofd4', 251, 1268788557) in /usr/local/apache/htdocs/includes/database.mysql.inc on line 172.

100,000%

Fri, 08/21/2009 - 12:41 by Chad Mynhier

I've written before about achieving a 300x performance improvement. While that sounds impressive, it was effectively in a lab situation, so it doesn't really count. But now I've done even better than that, and in this case, it was a real-world improvement.



New in DTrace: the CPC provider

Wed, 02/18/2009 - 22:27 by Chad Mynhier

A couple of days ago, I blogged about CPU performance counters (aka CPC's) and the Solaris tools cpustat(1M) and cputrack(1M). That post was actually a prelude to this post. Jon Haslam has recently putback the code for the DTrace cpc provider.



CPU Performance Counters

Mon, 02/16/2009 - 18:40 by Chad Mynhier

Modern CPUs provide performance counters that let you look at certain aspects of the performance of the system. For example, CPUs generally give you counters to track the number of instructions executed and the number of elapsed clock cycles. Given these two, you can calculate the CPI for an application – the number of cycles per instruction. Ideally, this ratio is very small, with one or even less than one being very good. This means that the application is being as efficient as possible, getting the most work done as quickly as possible.



How I got here

Tue, 12/23/2008 - 21:02 by Chad Mynhier

I jumped right in to this blog without much in the way of an introduction, so I'll correct that oversight now.



Measuring the length of a linked list

Wed, 11/19/2008 - 22:47 by Chad Mynhier

How do you measure the length of a linked list?



Ptime modifications

Wed, 11/19/2008 - 22:41 by Chad Mynhier

Late last year I made a proposal to make some modifications to ptime(1) (the full text of the proposal can be found in the second message here



Memory alignment on SPARC, or a 300x speedup!

Wed, 11/19/2008 - 22:36 by Chad Mynhier

I remember first running across SIGBUS in an introductory programming course some years ago. You'll get a SIGBUS when you have a misaligned memory access. For example, if you're on a 32-bit processor, an integer is going to be 4-byte aligned, i.e., the address to access that integer will be evenly divisible by 4.