Another item from the meeting...

Whether the x86 CPU is 32 or 64 bit, and how many cores there are.  `cat
/proc/cpuinfo' shows `flags', the interesting ones being the modes,
rm=real-mode=16-bit, tm=transparent=32, and lm=long=64.  This awk shows
the flags and how many CPU entries there are.

    $ awk '$1 == "flags" {for (f = 3; f <= NF; f++) if ($f ~ /^[rtl]m$/) m[$f] 
= 1; c++}
    >     END {for (t in m) printf "%s ", t; print c}' /proc/cpuinfo
    tm lm 4
    $ 

Separately, there's whether the kernel is 32 or 64-bit.  It's possible
to run a 32-bit kernel on a 64-bit CPU but it's not making best use of
the hardware.  `uname -m' shows `i686' for 32-bit, `x86_64' for 64.

Cheers, Ralph.

-- 
Next meeting:  Bournemouth, Tuesday, 2013-10-01 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread on mailing list:  mailto:[email protected]
How to Report Bugs Effectively:  http://goo.gl/4Xue

Reply via email to