Obtain Linux CPU information (p6 version of Linux::Cpuinfo)
Perl 6
Switch branches/tags
Latest commit 6f87d20 Aug 17, 2017 @jonathanstowe No panda
Failed to load latest commit information.
lib/Linux Up version Apr 27, 2016
t Add meta test Aug 17, 2017
.gitignore Add precomp stuff to .gitignore Dec 24, 2015
.travis.yml Alter travis config to use zef Aug 2, 2017
LICENCE rename LICENCE as en_GB May 30, 2016
META6.json meta-version not meta6 Aug 17, 2017
README.md No panda Aug 17, 2017



Obtain Linux CPU information.

Build Status


  use Linux::Cpuinfo;

  my $cpuinfo = Linux::Cpuinfo.new();

  my $cnt  = $cpuinfo.num-cpus();   # > 1 for an SMP system

  for $cpuinfo.cpus -> $cpu {
     say $cpu.bogomips;


On Linux systems various information about the CPU ( or CPUs ) in the computer can be gleaned from /proc/cpuinfo. This module provides an object oriented interface to that information for relatively simple use in Perl programs.


Assuming you have a working perl6 installation you should be able to install this with zef :

# From the source directory

zef install .

# Remote installation

zef install Linux::Cpuinfo


Suggestions/patches are welcomed via github at:


I'd be particularly interested in the /proc/cpuinfo from a variety of architectures to test against, the ones that I already have can be seen in t/proc

I'm not able to test on a wide variety of platforms so any help there would be appreciated.


Please see the LICENCE file in the distribution.

© Jonathan Stowe 2015, 2016, 2017