Link to home
Start Free TrialLog in
Avatar of redstar01
redstar01Flag for Viet Nam

asked on

I have question about iostat (hardisk detect)

Why parameters are different between iostat 1 -x and iostat -x

And it seem  iostat 1 -x  is more exact?

 User generated image
 User generated image
Avatar of woolmilkporc
woolmilkporc
Flag of Germany image

1 is the interval in seconds.

The first block of iostat  provides statistics concerning the time since the system was booted.

Without an interval parameter iostat will terminate after diplaying this.

When supplying an interval parameter each subsequent report covers the time since the previous report.

wmp
Avatar of redstar01

ASKER

I know that '1' is seconds update

But when overload, iostat 1 -x allway show %ubtile = 100 -> its exact
while iostat -x never show 100%util, only <50-60%, show it's not exact!

Because I want to get loadding of each harddisk (with programming script to get each disk)
And I wonder if there is any way to know exact %util

And really that   iostat -x   and  iostat 1 -x  is seem conflict?

>> And really that   iostat -x   and  iostat 1 -x  is seem conflict? <<

It's just another base - accumulated since reboot or in last interval.
yes,
but "-x" , parameters seem not exact, allway show <50%util if hdd really overload
while "1 -x" show parameters greater much, and 100%util if hdd  really overload
My target:
I need know one HDD is overload or Not any time!
ASKER CERTIFIED SOLUTION
Avatar of woolmilkporc
woolmilkporc
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial