02-09-2015
Moderator's Comments:
|
|
I don't feel like taking the time to throw away the hundreds of FONT and COLOR tags you have added inside the CODE tags in your posts in this thread that seem to be intended to make it difficult to read or to understand what information you're trying to convey. Presenting white text on a light gray background with sixteen fields with no space between them seems to be intended to obfuscate any information that may be hidden in your posts.
Please edit your posts in this thread to remove FONT and COLOR tags and add appropriate field and line breaks so we can understand the data you are trying to present.
|
|
This User Gave Thanks to Don Cragun For This Post:
9 More Discussions You Might Find Interesting
1. Filesystems, Disks and Memory
I'm a freshman here and I have a simple question.
Does unix use interrupts which is like Dos? Are they the same?
Thx.:cool: (6 Replies)
Discussion started by: Frank_M
6 Replies
2. UNIX for Dummies Questions & Answers
hey i have been facing a problem,can you tell me if we can catch ctrl d in unix i have tried and sucessfully catched and disabled ctrl-c and ctrl -z but am not sure if we can do the same for CTRL-D, so got any clue mail on he forum or ...i mean c programming in Unix thats what i am working on (1 Reply)
Discussion started by: toughguy2handle
1 Replies
3. UNIX for Advanced & Expert Users
Hello,
we practise our server with operating system ReliantUNIX 5.45 and we are using Informix Dynamic Server 7.31.
I ascertained a lot of cpu interrupts per second (int/s). The count of int/s exceeds critical maximum value considerably.
Machine specific notes for Informix Dynamic Server... (1 Reply)
Discussion started by: urbale
1 Replies
4. UNIX for Advanced & Expert Users
Hi,
My machine is a Unixware 7.1.3 is a files server, and I had never problem with that machine, but since two days, the machine presents slows problems, i think that the problem is te device interrupts, I had checked all and I dont found it any problem.
Any idea?
Thanks, (sorry my... (2 Replies)
Discussion started by: By_Jam
2 Replies
5. UNIX for Dummies Questions & Answers
Well, I don't know where exactly to ask this doubt so I'm asking in the newbie section. I was reading about traps and interrupts when I thought of traps as something that cease the control of the OS from the user and interrupts that cease the control yet provide support for multitasking. Am I right... (3 Replies)
Discussion started by: Legend986
3 Replies
6. UNIX for Dummies Questions & Answers
Hi all,
I am new here ,i want to know about interrupts in detail.What r
Interrupts .how they r handeled.
Thanx in adavnce. (1 Reply)
Discussion started by: vishwasrao
1 Replies
7. Programming
Hi. I have a program whose job it is to manage 15 child processes. Sometimes these children die (sometimes deliberately other times with a SEGV). This causes a SIGCHLD to be sent to my program which uses waitpid() in the signal handler to gather information and, in most cases, restart the child.... (3 Replies)
Discussion started by: jrichemont
3 Replies
8. Programming
Hi,
I'm working on an AMD opteron running Linux 2.6.28.6
I want to preload a module specific register (MSR) with a value to have it overflow after a number of a specific event counts. As I understand, when the counter in the register overflows, an interrupt will be generated and handled by the... (2 Replies)
Discussion started by: mylinuxforums
2 Replies
9. UNIX for Dummies Questions & Answers
I recently went through Understanding the linux kernel, to get an idea of how system calls and interrupts function in an x86 based machine.
However, the level of detail has left me slightly confused. Here's what I understand.
System call process:
User mode:
User code calls a library... (11 Replies)
Discussion started by: ab_tall
11 Replies
LEARN ABOUT DEBIAN
sys::statistics::linux::cpustats
Sys::Statistics::Linux::CpuStats(3pm) User Contributed Perl Documentation Sys::Statistics::Linux::CpuStats(3pm)
NAME
Sys::Statistics::Linux::CpuStats - Collect linux cpu statistics.
SYNOPSIS
use Sys::Statistics::Linux::CpuStats;
my $lxs = Sys::Statistics::Linux::CpuStats->new;
$lxs->init;
sleep 1;
my $stats = $lxs->get;
Or
my $lxs = Sys::Statistics::Linux::CpuStats->new(initfile => $file);
$lxs->init;
my $stats = $lxs->get;
DESCRIPTION
Sys::Statistics::Linux::CpuStats gathers cpu statistics from the virtual /proc filesystem (procfs).
For more information read the documentation of the front-end module Sys::Statistics::Linux.
CPU STATISTICS
Generated by /proc/stat for each cpu (cpu0, cpu1 ...). cpu without a number is the summary.
user - Percentage of CPU utilization at the user level.
nice - Percentage of CPU utilization at the user level with nice priority.
system - Percentage of CPU utilization at the system level.
idle - Percentage of time the CPU is in idle state.
total - Total percentage of CPU utilization.
Statistics with kernels >= 2.6.
iowait - Percentage of time the CPU is in idle state because an I/O operation
is waiting to complete.
irq - Percentage of time the CPU is servicing interrupts.
softirq - Percentage of time the CPU is servicing softirqs.
steal - Percentage of stolen CPU time, which is the time spent in other
operating systems when running in a virtualized environment (>=2.6.11).
METHODS
new()
Call "new()" to create a new object.
my $lxs = Sys::Statistics::Linux::CpuStats->new;
Maybe you want to store/load the initial statistics to/from a file:
my $lxs = Sys::Statistics::Linux::CpuStats->new(initfile => '/tmp/cpustats.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::CpuStats->new(
files => {
# This is the default
path => '/proc'
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 $stats = $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::CpuStats(3pm)