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
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
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
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
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
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
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
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
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
LEARN ABOUT DEBIAN
sys::statistics::linux::procstats
Sys::Statistics::Linux::ProcStats(3pm) User Contributed Perl Documentation Sys::Statistics::Linux::ProcStats(3pm)
NAME
Sys::Statistics::Linux::ProcStats - Collect linux process statistics.
SYNOPSIS
use Sys::Statistics::Linux::ProcStats;
my $lxs = Sys::Statistics::Linux::ProcStats->new;
$lxs->init;
sleep 1;
my $stat = $lxs->get;
Or
my $lxs = Sys::Statistics::Linux::ProcStats->new(initfile => $file);
$lxs->init;
my $stat = $lxs->get;
DESCRIPTION
Sys::Statistics::Linux::ProcStats gathers process statistics from the virtual /proc filesystem (procfs).
For more information read the documentation of the front-end module Sys::Statistics::Linux.
IMPORTANT
I renamed key "procs_blocked" to "blocked"!
LOAD AVERAGE STATISTICS
Generated by /proc/stat and /proc/loadavg.
new - Number of new processes that were produced per second.
runqueue - The number of currently executing kernel scheduling entities (processes, threads).
count - The number of kernel scheduling entities that currently exist on the system (processes, threads).
blocked - Number of processes blocked waiting for I/O to complete (Linux 2.5.45 onwards).
running - Number of processes in runnable state (Linux 2.5.45 onwards).
METHODS
new()
Call "new()" to create a new object.
my $lxs = Sys::Statistics::Linux::ProcStats->new;
Maybe you want to store/load the initial statistics to/from a file:
my $lxs = Sys::Statistics::Linux::ProcStats->new(initfile => '/tmp/procstats.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::ProcStats->new(
files => {
# This is the default
path => '/proc',
loadavg => 'loadavg',
stat => 'stat',
}
);
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::ProcStats(3pm)