Sponsored Content
Operating Systems Linux How to Calculate Disk Queue length and Disk Busy Time Post 302513916 by maruthu on Thursday 14th of April 2011 10:17:48 AM
Old 04-14-2011
How to Calculate Disk Queue length and Disk Busy Time

Hi,

Am doing an enhancements related to monitoring a Linux disk I/O statistics.

The /proc/diskstats file is used to get the each disk I/O statistics. But, It returns the raw value.

How to calculate the Disk Queue Length and Disk Busy time from the raw values.

Guide me.
 

8 More Discussions You Might Find Interesting

1. AIX

Hard disk usage is 100 Percent Busy for any command

hi, AIX 5.3 For any command(say tar command) I am getting 100% busy for my hdisk. But my CPU and Memory is not busy and have more idle also. Please advice for any performance analysing. Thanks in Advance, (3 Replies)
Discussion started by: npcrao
3 Replies

2. Shell Programming and Scripting

Calculate disk usage in different servers

Hello, I'm writing a script to monitor different filesystems in multiple servers. And depending on the % free, my script will send an Alert email if % free is less than threshold. I want to keep a input_feed_file which would have "server,filesystem". If I run a script a host 'a', then I can... (3 Replies)
Discussion started by: bperl
3 Replies

3. Solaris

( VxVM ) How to add the removed disk back to previous disk group

Previously , i remove the disk by #vxdg -g testdg -k rmdisk testdg02 But i got error when i -k adddisk bash-2.03# vxdisk list DEVICE TYPE DISK GROUP STATUS c0t0d0s2 auto:none - - online invalid c0t1d0s2 auto:none ... (1 Reply)
Discussion started by: waibabe
1 Replies

4. Linux

Umount of a "busy" disk

A product I am working on manages storage. We are currently porting it from Solaris to Linux. The product allows its user, among other things, to add and remove file server volumes, where these volumes are exported using the NFS or the CIFS protocol. The problem is that when the user requests to... (5 Replies)
Discussion started by: dhzdh
5 Replies

5. AIX

Topas total Disk Busy %

Hi Everyone, anyone know how to derive the value for the total disk busy % (shown in topas ) ? Thanks. Best Regards, ckwan (1 Reply)
Discussion started by: ckwan
1 Replies

6. AIX

Command to check the busy % for a hard disk device like hdisk5

Please help with command to check the busy % for a hard disk device like hdisk5 Best regards, Vishal (7 Replies)
Discussion started by: Vishal_dba
7 Replies

7. AIX

Need to know %age disk busy on AIX

Hi , Following alerts are coming for %busy device on a server Disk Device hdisk5 is 100% busy Please assist how do I analyse this and also how do I check the %age busy for hdisk5. Best regards, Vishal (4 Replies)
Discussion started by: Vishal_dba
4 Replies

8. Filesystems, Disks and Memory

DISK ARRAY PROTECTION SUSPENDED message displayed following disk replacement

Hello, On 4/20/2018, we performed a disk replacement on our IBM 8202 P7 server. After the disk was rebuilt, the SAS Disk Array sissas0 showed a status of degraded. However, the pdisks in the array all show a status of active. We did see a message in errpt. DISK ARRAY PROTECTION SUSPENDED. ... (1 Reply)
Discussion started by: terrya
1 Replies
Sys::Statistics::Linux::DiskStats(3pm)			User Contributed Perl Documentation		    Sys::Statistics::Linux::DiskStats(3pm)

NAME
Sys::Statistics::Linux::DiskStats - Collect linux disk statistics. SYNOPSIS
use Sys::Statistics::Linux::DiskStats; my $lxs = Sys::Statistics::Linux::DiskStats->new; $lxs->init; sleep 1; my $stat = $lxs->get; Or my $lxs = Sys::Statistics::Linux::DiskStats->new(initfile => $file); $lxs->init; my $stat = $lxs->get; DESCRIPTION
Sys::Statistics::Linux::DiskStats gathers disk statistics from the virtual /proc filesystem (procfs). For more information read the documentation of the front-end module Sys::Statistics::Linux. DISK STATISTICS
Generated by /proc/diskstats or /proc/partitions. major - The mayor number of the disk minor - The minor number of the disk rdreq - Number of read requests that were made to physical disk per second. rdbyt - Number of bytes that were read from physical disk per second. wrtreq - Number of write requests that were made to physical disk per second. wrtbyt - Number of bytes that were written to physical disk per second. ttreq - Total number of requests were made from/to physical disk per second. ttbyt - Total number of bytes transmitted from/to physical disk per second. METHODS
new() Call "new()" to create a new object. my $lxs = Sys::Statistics::Linux::DiskStats->new; Maybe you want to store/load the initial statistics to/from a file: my $lxs = Sys::Statistics::Linux::DiskStats->new(initfile => '/tmp/diskstats.yml'); If you set "initfile" it's not necessary to call sleep before "get()". It's also possible to set the path to the proc filesystem. Sys::Statistics::Linux::DiskStats->new( files => { # This is the default path => '/proc', diskstats => 'diskstats', partitions => 'partitions', } ); init() Call "init()" to initialize the statistics. $lxs->init; get() Call "get()" to get the statistics. "get()" returns the statistics as a hash reference. my $stat = $lxs->get; raw() Get raw values. EXPORTS
No exports. SEE ALSO
proc(5) REPORTING BUGS
Please report all bugs to <jschulz.cpan(at)bloonix.de>. AUTHOR
Jonny Schulz <jschulz.cpan(at)bloonix.de>. COPYRIGHT
Copyright (c) 2006, 2007 by Jonny Schulz. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2012-03-09 Sys::Statistics::Linux::DiskStats(3pm)
All times are GMT -4. The time now is 08:11 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy