9 More Discussions You Might Find Interesting
1. Linux
I have Lenovo laptop with vista pre installed.
I am planning to install linux .
can u suggest/advice which linux operating system is better for my laptop.
i am installing linux mainly for technical use. (7 Replies)
Discussion started by: vkca
7 Replies
2. Red Hat
Hello,
I am planning to install Linux on my laptop. I will be using it for mailing testing as well as scripting. Basically I want to hand on with Linux to be used as File and Mail Server.
Please advise suitable Linux distribution. (3 Replies)
Discussion started by: darshakraut
3 Replies
3. Solaris
Hello Forum!
I need to install Solaris 2.6, but it seems difficult to find that old version...any ideas where to find / buy the installation cd's?
Best regards,
/roinepe (2 Replies)
Discussion started by: roinepe
2 Replies
4. Solaris
Hi.. i need to find when solaris os is last installed in server? Is there any command or log files to find installation date (6 Replies)
Discussion started by: vadivukumar
6 Replies
5. Linux
Hi,
I am trying to do a silent installation of a JDk on a linux machine. Can anyone give me a command that would do it for me.
Thanx
Sundeep (2 Replies)
Discussion started by: eamani_sun
2 Replies
6. UNIX for Dummies Questions & Answers
What is the industry standard for number of servers per Unix/Linux engineer and are there any white papers or the like that discuss this? (1 Reply)
Discussion started by: Rav78uk
1 Replies
7. UNIX for Dummies Questions & Answers
Hi,
Well I am installing Enterprise Linux 3.0 version, using CD...
but what my doubt is , is there any possibility for me, to copy the contents of all the cd and have it in a folder like disk1,disk2,disk3 and disk4...
while switching on the server, it will ask for the boot mode, like, CD... (3 Replies)
Discussion started by: vasikaran
3 Replies
8. Programming
HI,
In unix we can get profile on a c program like this ::
cc -g -p -o cpp_sw_gsmconverter_shailesh5 cpp_sw_gsmconverter_shailesh5.c
prof cpp_sw_gsmconverter_shailesh5
In the same manner how can I collect statistics in linux using gcc command.
Thanks in advance. (1 Reply)
Discussion started by: chprvkmr
1 Replies
9. Ubuntu
for installing fc4 , or even ubuntu , i got this problem
after booting from vmlinuz and initrd (from both cd and ftp) display i got was very scattered.
I was not able to make out from that display. ( it was a default display of blue window and black background).
I have debian already installed... (6 Replies)
Discussion started by: yogesh_powar
6 Replies
Sys::Statistics::Linux::PgSwStats(3pm) User Contributed Perl Documentation Sys::Statistics::Linux::PgSwStats(3pm)
NAME
Sys::Statistics::Linux::PgSwStats - Collect linux paging and swapping statistics.
SYNOPSIS
use Sys::Statistics::Linux::PgSwStats;
my $lxs = Sys::Statistics::Linux::PgSwStats->new;
$lxs->init;
sleep 1;
my $stat = $lxs->get;
Or
my $lxs = Sys::Statistics::Linux::PgSwStats->new(initfile => $file);
$lxs->init;
my $stat = $lxs->get;
DESCRIPTION
Sys::Statistics::Linux::PgSwStats gathers paging and swapping statistics from the virtual /proc filesystem (procfs).
For more information read the documentation of the front-end module Sys::Statistics::Linux.
PAGING AND SWAPPING STATISTICS
Generated by /proc/stat or /proc/vmstat.
pgpgin - Number of pages the system has paged in from disk per second.
pgpgout - Number of pages the system has paged out to disk per second.
pswpin - Number of pages the system has swapped in from disk per second.
pswpout - Number of pages the system has swapped out to disk per second.
The following statistics are only available by kernels from 2.6.
pgfault - Number of page faults the system has made per second (minor + major).
pgmajfault - Number of major faults per second the system required loading a memory page from disk.
METHODS
new()
Call "new()" to create a new object.
my $lxs = Sys::Statistics::Linux::PgSwStats->new;
Maybe you want to store/load the initial statistics to/from a file:
my $lxs = Sys::Statistics::Linux::PgSwStats->new(initfile => '/tmp/pgswstats.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::PgSwStats->new(
files => {
# This is the default
path => '/proc',
stat => 'stat',
vmstat => 'vmstat',
}
);
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::PgSwStats(3pm)