OpenSolaris

Printable Version Enter a New Search
Bug ID 6644731
Synopsis iostat should not take the last configuration snapshot as it's not used to print statistics data
State 10-Fix Delivered (Fix available in build)
Category:Subcategory utility:performance
Keywords rtiq_reviewed
Responsible Engineer William Roche
Reported Against solaris_10u3
Duplicate Of
Introduced In solaris_10
Commit to Fix snv_83
Fixed In snv_83
Release Fixed solaris_nevada(snv_83) , solaris_10u6(s10u6_01) (Bug ID:2157533)
Related Bugs 6588453 , 6611108
Submit Date 21-December-2007
Last Update Date 13-February-2008
Description
The iostat command gets the IO statistics from configuration snapshots and can compare those snapshots to select some data to display.

The main algorithm is:

newss = acquire_snapshot(...);
do {
	print_statistics_data(newss);
	if (only_asked_iteration == 1)
		continue;
	oldss = newss;
	newss = acquire_snapshot(...);
	report_changes_between(oldss, newss);
}  while (--iteration);


So if we ask for a specific number of iterations to run - "count" > 0 in:
	iostat [interval [count]]
iostat will display the requested number of lines but after printing out the last line, will not exit immediately, but will take the time to get an additional snapshot and compare it with the previous one.
-> The only information this snapshot may provide are about possible configuration (and/or state) change messages.

A more logical behaviour would be to exit immediately after the last requested line is printed out without waiting for more - the same way as when we only ask for one data line.
And it also helps to get better interactive performance for this command.
Work Around
N/A
Comments
N/A