OpenSolaris

Printable Version Enter a New Search
Bug ID 6206598
Synopsis relationship between aggregations and switchrate needs to be documented
State 8-Fix Available (Fix has been made (either putback, or just prior))
Category:Subcategory doc:dtrace
Keywords
Responsible Engineer Paul Echeverri
Reported Against
Duplicate Of
Introduced In
Commit to Fix s10u6_fcs
Fixed In s10u6_fcs
Release Fixed
Related Bugs 6206604
Submit Date 9-December-2004
Last Update Date 1-August-2008
Description
Runnning the following script produces unexpected results:

#!/usr/sbin/dtrace -s

tick-20ms
{
        @ticks["ticks"] = sum(1);
}

tick-200ms
{
        printa(@ticks);
        clear(@ticks);
}

One would expect 5 outputs per second, where each output prints "10".
Instead, we get one output of 50, and four more of 0:

  ticks                                                            50

  0  31809                      :tick-200ms 
  ticks                                                             0

  0  31809                      :tick-200ms 
  ticks                                                             0

  0  31809                      :tick-200ms 
  ticks                                                             0

  0  31809                      :tick-200ms 
  ticks                                                             0

Tuning 'switchrate' to 200ms gives the correct behavior.
 xxxxx@xxxxx.com 2004-12-09 19:36:20 GMT
Work Around
N/A
Comments
N/A