Debian Codegraph @

README

raw
1 1 Unix::Processors
2 ******************
3
4 This is the Unix::Processors Perl Package.
5
6 1.1 Copyright
7 =============
8
9 This package is Copyright 1999-2017 by Wilson Snyder
10 <[email protected]>.
11
12 This program is free software; you can redistribute it and/or modify
13 it under the terms of either the GNU Lesser General Public License
14 Version 3 or the Perl Artistic License Version 2.0.
15
16 This code is provided with no warranty of any kind, and is used
17 entirely at your own risk.
18
19 1.2 Description
20 ===============
21
22 This package provides access to per-processor information from Perl.
23
24 my $procs = new Unix::Processors;
25 print $procs->max_online, " CPUs at ", $procs->max_clock, " MHz\n";
26 if ($procs->max_online != $procs->max_physical) {
27 print "Hyperthreading between ",$procs->max_physical," physical CPUs.\n";
28 }
29 (my $FORMAT = "%2s %-8s %4s \n") =~ s/\s\s+/ /g;
30 printf($FORMAT, "#", "STATE", "CLOCK", "TYPE", );
31 foreach my $proc (@{$procs->processors}) {
32 printf ($FORMAT, $proc->id, $proc->state, $proc->clock, $proc->type);
33 }
34
35 See `man Unix::Processors' after installation.
36
37 1.3 Obtaining Distribution
38 ==========================
39
40 The latest version is available at `http://www.perl.org/CPAN/'
41
42 Download the latest package from that site, and decompress. `gunzip
43 Unix-Processors_version.tar.gz ; tar xvf Unix-Processors_version.tar'
44
45 1.4 Supported Systems
46 =====================
47
48 This version of Unix::Processors has been built and tested on:
49
50 * i386-linux
51
52 * aix-4.3.3
53
54 * aix-5.1.0 (32 and 64 bit)
55
56 * alpha-osf
57
58 * freebsd (clock methods not supported before freebsd 5.4)
59
60 * hpux-11.00
61
62 * hpux-11.11
63
64 * sgi-irix
65
66 * sparc-sun-solaris2.6
67
68 * sparc-sun-solaris2.8
69
70 Porting will definately be necessary for other operating systems.
71
72 1.5 Installation
73 ================
74
75 1. `cd' to the directory containing this README notice.
76
77 2. Type `perl Makefile.PL' to configure Unix::Processors for your
78 system.
79
80 3. Type `make' to compile Unix::Processors.
81
82 4. Type `make install' to install the programs and any data files and
83 documentation.
84
85