Dear All,
Our HPUX 8 GB 8CPU database server is behaving abnormally for the last 4+ weeks. I have generated a sar output and it is here-
11:46:52 %usr %sys %wio %idle
11:46:53 1 1 6 92
11:46:54 0 1 0 99
11:46:55 0 1 0... (3 Replies)
Since yesterday the vmstat command is displaying the cpu idle time at 100%At each time interval. It never changes. Not sure what it means other than it Quit calculating that stat. And I'm curious why. Using sar I can display a correctCpu idle percent, but vmstat does not. Any ideas why or... (2 Replies)
hi,
i want to know cpu utilizatiion per process per cpu..for single processor also if multicore in linux ..to use these values in shell script to kill processes exceeding cpu utilization.ps (pcpu) command does not give exact values..top does not give persistant values..psstat,vmstat..does njot... (3 Replies)
Hi, I checking yesterday's SAR logs for one of our servers and it was showing that utilisation was down to 0% for 10 minutes at 2am. We're unaware of any jobs running at this time so need to find out which process caused this spike.
Is there anything built into SAR (or does anything else exist)... (11 Replies)
I am using Ubuntu 9.04. I want to write a shell script to get the information about cpu idle from top command at the real time when i call it, compare cpu idle with 20 (20%), if cpu idle > 20 exit 1, vice versa exit 0. Anybody can help me to resolve it ?
Thanks alot. (7 Replies)
I need a shell script that will monitor a few conditions and not execute until the these conditions are met. The problem I'm having is that I can not perform a database snapshot (backup) of a sybaseIQ database unless the CPU Status Idle % is above 60% or the snapshot (backup) fails.
If... (2 Replies)
Hi Everybody,
Can anybody explain how CPU idle% is about 50%, but runq-sz more than 1?
sar from Solaris 10:
00:00:05 %usr %sys %wio %idle
17:00:08 27 12 0 61
17:20:05 40 15 0 45
17:40:05 27 12 0 61
18:00:05 23... (2 Replies)
Discussion started by: sant
2 Replies
LEARN ABOUT DEBIAN
sys::statistics::linux::loadavg
Sys::Statistics::Linux::LoadAVG(3pm) User Contributed Perl Documentation Sys::Statistics::Linux::LoadAVG(3pm)NAME
Sys::Statistics::Linux::LoadAVG - Collect linux load average statistics.
SYNOPSIS
use Sys::Statistics::Linux::LoadAVG;
my $lxs = Sys::Statistics::Linux::LoadAVG->new;
my $stat = $lxs->get;
DESCRIPTION
Sys::Statistics::Linux::LoadAVG gathers the load average from the virtual /proc filesystem (procfs).
For more information read the documentation of the front-end module Sys::Statistics::Linux.
LOAD AVERAGE STATISTICS
Generated by /proc/loadavg.
avg_1 - The average processor workload of the last minute.
avg_5 - The average processor workload of the last five minutes.
avg_15 - The average processor workload of the last fifteen minutes.
METHODS
new()
Call "new()" to create a new object.
my $lxs = Sys::Statistics::Linux::LoadAVG->new;
It's possible to set the path to the proc filesystem.
Sys::Statistics::Linux::LoadAVG->new(
files => {
# This is the default
path => '/proc',
loadavg => 'loadavg',
}
);
get()
Call "get()" to get the statistics. "get()" returns the statistics as a hash reference.
my $stat = $lxs->get;
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::LoadAVG(3pm)