Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.181.320 Times

Solaris::Kstat 0.05a

  Date Added: January 18, 2010  |  Visits: 1.719

Solaris::Kstat

Report Broken Link
Printer Friendly Version


Product Homepage
Download (166 downloads)



Solaris::Kstat is a Perl module to access Solaris Kstats from Perl. SYNOPSIS use Solaris::Kstat; my $kstat = Solaris::Kstat->new(); my ($usr1, $sys1, $wio1, $idle1) = @{$kstat->{cpu_stat}{0}{cpu_stat0}}{qw(user kernel wait idle)}; print("usr sys wio idlen"); while (1) { sleep 5; if ($kstat->update()) { print("Configuration changedn"); } my ($usr2, $sys2, $wio2, $idle2) = @{$kstat->{cpu_stat}{0}{cpu_stat0}}{qw(user kernel wait idle)}; printf(" %.2d %.2d %.2d %.2dn", ($usr2 - $usr1) / 5, ($sys2 - $sys1) / 5, ($wio2 - $wio1) / 5, ($idle2 - $idle1) / 5); $usr1 = $usr2; $sys1 = $sys2; $wio1 = $wio2; $idle1 = $idle2; } This module provides a tied hash interface to the Solaris kstats library. The kstats library allows you to get access to all the stats used by sar, iostat, vmstat etc, plus a lot of others that arent accessible through the usual utilities. Solaris categorises statistics using a 3-part key - module, instance and name. For example, the root disk stats can be found under sd.0.sd0, and the cpu statistics can be found under cpu_stat.0.cpu_stat0, as in the above example. The method Solaris::Kstats-new()> creates a new 3-layer tree of perl hashes with exactly the same structure - i.e. the stats for disk 0 can be accessed as $ks-{sd}{0}{sd0}>. The bottom (4th) layer is a tied hash used to hold the individual statistics values for a particular system resource. Creating a Solaris::Kstat object doesnt actually read all the possible statistics in, as this would be horribly slow and inefficient. Instead it creates a 3-layer structure as described above, and only reads in the individual statistics as you reference them. For example, accessing $ks-{sd}{0}{sd0}{reads} will read in all the statistics for sd0, including writes, bytes read/written, service times etc. Once you have accessed a bottom level statitics value, calling $ks->update() will automatically update all the individual values of any statistics that you have accessed. Note that there are two values per bottom-level hash that can be read without causing the full set of statistics to be read from the kernel. These are "class" which is the kstat class of the statistics and "crtime" which is the time that the kstat was created. See kstat(3K) for full details of these fields..

Requirements: No special requirements
Platforms: Linux
Keyword: Access Cpu Libraries Module Perl Perl Module Programming Solaris Solaris Kstats Solariskstat Statistics
Users rating: 0/10

License: Freeware Size: 24.58 KB
USER REVIEWS
More Reviews or Write Review


SOLARIS::KSTAT RELATED
Libraries  -  Sys::CPU 0.45
Sys::CPU is a Perl extension for getting CPU information. Currently only number of CPUs supported. SYNOPSIS use Sys::CPU; $number_of_cpus = Sys::CPU::cpu_count(); printf("I have %d CPUsn",$number_of_cpus); print " Speed :...
5.12 KB  
Libraries  -  XML::ApacheFOP 0.03
XML::ApacheFOP is a Perl module that can access Apache FOP from Perl to create PDF files using XSL-FO. SYNOPSIS use XML::ApacheFOP; my $Fop = XML::ApacheFOP->new(); # create a PDF using a xml/xsl tranformation $Fop->fop(xml=>"foo.xml",...
7.17 KB  
Programming  -  CGI::Application::Plugin::Config::Perl 1.40
CGI::Application::Plugin::Config::Perl adds easy access to a pure Perl config file to your CGI::Application projects. Lazy loading is used to prevent the config file from being parsed if no configuration variables are accessed during the request,...
10.24 KB  
Modules  -  Node Gallery Access 6.x-2.0-beta2
Node Gallery Access is a module that adds access control to Node Gallery.Node Gallery Access allows a gallery owner to specify a gallery as one of three different types: * Public: The gallery is accessible by anyone whom can view content. *...
20.48 KB  
Libraries  -  Chemistry::SQL 0.01
Chemistry::SQL is an access database functions module. SYNOPSIS use strict; use Chemistry::SQL; use Chemistry::Artificial::SQL; my $db_name = $ARGV[0]; my $file = $ARGV[1]; my $db1 =...
14.34 KB  
Programming  -  SANE 1.0.18
SANE comes from "Scanner Access Now Easy" and is an application programming interface (API) that provides standardized access to any raster image scanner hardware (flatbed scanner, handheld scanner, video and still cameras, framegrabbers, etc.)....
3.15 MB  
Utilities  -  SAB Gateway 5.0.0
SAB Gateway is a versatile WLAN access controller implemented in Perl. It delivers easy-to-use broadband access at the WLAN hotspot without requiring the end-user to install any client-side software.
9.87 MB  
Science  -  Algorithm::MatchingModel 0.1
Algorithm::MatchingModel is a perl library for running match simulations and statistics for two-sided matching problems. It includes classes for a preference factory, algorithm plug-ins, and gathering statistics between rounds.
8.57 KB  
Utilities  -  Dylan Code Collection 1.7
A collection of useful libraries written in the Dylan programming language. The intent of this project is to provide easily accessible libraries for people developing applications using Functional Developer and/or Gwydion Dylan.
673.63 KB  
Programming  -  kin 0.0.2
kin is a set of libraries and tools supporting meta-programming for engineering and technical computing applications. This JVM version of kin has been superseded by the stand-alone version being developed at http://purl.org/net/kin.
477.44 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB