Heartbeat timeouts during Vdbench startup
By Henk Vandenbergh on Apr 01, 2010
One of the most complex things in Vdbench (and Swat also) on Solaris is trying to translate file names, volume names and device numbers to the proper Kstat instance names. To accomplish that I use output of iostat and the ls /dev/rdsk command, and match and merge those outputs. Never realizing how bad that could be I did not bother with efficiency, so I do numerous sequential lookups in both iostat and ls output. And then of course I am finding iostat outputs with several thousand lines, and then ls output of course with at least that many. At times it can take over two minutes to do all this matching and merging, causing heartbeat timeouts during Vdbench startup. Add -d27 as an extra execution parameter to change the default two minutes heartbeat timeout to 15 minutes.
The next release of Vdbench will have a fix for this problem by creating hash tables for all the ls and iostat output.