Jeff Schroeder wrote:
> My 32-bit CPU shows this:
> 
> model name : AMD Athlon(tm) XP 1800+
> (snip)
> clflush size : 32
> 
> So maybe the clflush size parameter indicates 32- or 64-bit-ness?


Hmm.  That is an interesting though.  The machine I am looking at I know
has a 64bit processor, but I installed the 32bit kernel, and finding
something that sticks out is proving to be difficult.  Here are the
results of what most sites suggest:

[EMAIL PROTECTED] ~]# uname -m
i686

[EMAIL PROTECTED] ~]# getconf LONG_BIT
32

Both of these would indicate I have a 32bit processor, but this is only
what the kernel is reporting, not what is truly there.

As far as /proc/cpuinfo, the only 64 listed is in the clflush size.
Maybe this is a good indicator.  The AMD processors are so much easier
as they all say "Athlon 64" in the model name.  Intel is not quite so
nice in this regard.

[EMAIL PROTECTED] ~]# cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 15
model           : 6
model name      : Intel(R) Pentium(R) D CPU 3.20GHz
stepping        : 5
cpu MHz         : 3200.498
cache size      : 2048 KB
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 2
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 6
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca
cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm
constant_tsc pni monitor ds_cpl est cid cx16 xtpr lahf_lm
bogomips        : 6404.52
clflush size    : 64

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 15
model           : 6
model name      : Intel(R) Pentium(R) D CPU 3.20GHz
stepping        : 5
cpu MHz         : 3200.498
cache size      : 2048 KB
physical id     : 0
siblings        : 2
core id         : 1
cpu cores       : 2
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 6
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca
cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm
constant_tsc pni monitor ds_cpl est cid cx16 xtpr lahf_lm
bogomips        : 6400.30
clflush size    : 64

/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/

Reply via email to