Linux::Cpuinfo::Cpu - per cpu core information.

NAME

Linux::Cpuinfo::Cpu - per cpu core information.

METHODS

The below is a list of fields that I found when I first documented the Perl 5 version of this module, the actual methods present will be generated at run-time from the field names found in the /proc/cpuinfo so will almost certainly differ.

The full list can be discovered by calling .fields.keys on the object.

  • processor

This is the index of the processor this information is for, it will be zero for a the first CPU (which is the only one on single-proccessor systems), one for the second and so on.

  • vendor_id

This is a vendor defined string for X86 CPUs such as 'GenuineIntel' or 'AuthenticAMD'. 12 bytes long, since it is returned via three 32 byte long registers.

  • cpu_family

This should return an integer that will indicate the 'family' of the processor - This is for instance '6' for a Pentium III. Might be undefined for non-X86 CPUs.

  • model or cpu_model

An integer that is probably vendor dependent that indicates their version of the above cpu_family

  • model_name

A string such as 'Pentium III (Coppermine)'.

  • stepping

I'm lead to believe this is a version increment used by intel.

  • cpu_mhz

I guess this is self explanatory - it might however be different to what it says on the box. The Mhz is measured at boot time by the kernel and represents the true Mhz at that time.

  • bus_mhz

The MHz of the bus system.

  • cache_size

The cache size for this processor - it might well have the units appended ( such as 'KB' )

  • fdiv_bug

True if this bug is present in the processor.

  • hlt_bug

True if this bug is present in the processor.

  • sep_bug

True if this bug is present in the processor.

  • f00f_bug

True if this bug is present in the processor.

  • coma_bug

True if this bug is present in the processor.

  • fpu

True if the CPU has a floating point unit.

  • fpu_exception

True if the floating point unit can throw an exception.

  • cpuid_level

The cpuid assembler instruction is only present on X86 CPUs. This attribute represents the level of the instruction that is supported by the CPU. The first CPUs had only level 1, newer chips have more levels and can thus return more information.

  • wp

No idea what this is on X86 CPUs.

  • flags

This is the set of flags that the CPU supports - this is returned as an array

  • byte_order

The byte order of the CPU, might be little endian or big endian, or undefined for unknown.

  • bogomips

A system constant calculated when the kernel is booted - it is a (rather poor) measure of the CPU's performance.

Linux::Cpuinfo v0.1.1

Get the kernel CPU information on Linux

Authors

  • Jonathan Stowe

License

Artistic-2.0

Dependencies

Test Dependencies

Provides

  • Linux::Cpuinfo
  • Linux::Cpuinfo::Cpu

Documentation

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.