From: Rohit T. <roh...@gm...> - 2014-07-25 09:59:09
|
Hi On going through the source code, I suspect that the service time is being given in milli seconds. Also, I was wrong in assuming that service time received by calling the getServiceTime function will give me the amount of time taken to write the number of bytes between two different calls to the disk usage object, but it tells the service time at that specific clock tick. It would be a great addition if there was a function that could give the difference in values between two multiple calls for read bytes, write bytes, service time etc. On Wed, Jul 23, 2014 at 3:07 PM, Rohit Talwar <roh...@gm...> wrote: > Hi > > I am trying to monitor my application to find which resource is limiting > my code's performance and to help me focus on areas which needs specific > optimization. Hence I want to calculate the disk utilization percentage, > for which I am using the formula - utilization = ( (read requests + write > requests) * service time in ms / 1000 ms ) * 100%. > The DiskUsage package gives the data pertaining the reads (getReads), > writes (getWrites) and service time (getServiceTime), but I am at a loss at > how interpret this data - especially the values provided by getServiceTime. > I searched the forum to find the time units of the return value of the > getServiceTime method, but could not find any information about this. I > request all of you to kindly help me, and also to please direct me if this > is a correct way to determine disk utilization. > > -- > Regards > > Rohit Talwar > -- Regards Rohit Talwar |