Sys::CPU(3pm)

Sys::CPU3pm

Perl extension for getting cpu information. currently only number of cpu's supported.

Usage

  use Sys::CPU;
  $number_of_cpus = Sys::CPU::cpu_count();
  printf("I have %d CPU's\n",$number_of_cpus);
  print "  Speed : ",Sys::CPU::cpu_clock(),"\n";
  print "  Type  : ",Sys::CPU::cpu_type(),"\n";

Overview

In responce to a post on perlmonks.org, a module for counting the number of CPU's on a system. Support has now also been added for type of CPU and clock speed. While much of the code is from UNIX::Processors, win32 support has been added (but not tested).

v0.45 - Corrected solaris support (Thanks Cloyce)

v0.60 - Added FreeBSD support (Thanks Johan & SREZIC) v0.61 - Fix test numbering issue

Export

None by default.

Maintenance

Marc Koderer

Releases

11 releases since Debian 3.1 (Sarge); the text changed 8 times.

  1. 3.1–4.0
  2. 5.0–6.0
  3. 7
  4. 8
  5. 9
  6. 10
  7. 11
  8. 12
  9. 13

Author

Matt Sanford

License

From libsys-cpu-perl 0.61-3+b4 in Debian 13 (Trixie). Parsed by carta from the page's man source.