LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-20-2008, 08:16 AM   #1
laucian
Member
 
Registered: Oct 2005
Distribution: Ubuntu 9.04
Posts: 124
Blog Entries: 2

Rep: Reputation: 15
getting cpu information 32/64 bit


hi everyone,
how can i get information about my CPU..i want to know is it is 32 or 64 bit. i used cat /proc/cpuinfo, here is the output but i don't really get it.

Code:
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 5
model name      : AMD Opteron(tm) Processor 250
stepping        : 10
cpu MHz         : 2388.168
cache size      : 1024 KB
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext lm 3dnowext 3dnow
bogomips        : 4781.71
TLB size        : 1024 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp

processor       : 1
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 5
model name      : AMD Opteron(tm) Processor 250
stepping        : 10
cpu MHz         : 2388.168
cache size      : 1024 KB
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext lm 3dnowext 3dnow
bogomips        : 4776.67
TLB size        : 1024 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp
there are 2 processors shown, i don't get it either..i don't think it is a 2 core-cpu box. anyway where can i see if it is 23 or 64 bit? thanks
 
Old 03-20-2008, 08:29 AM   #2
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 33
clflush size : 64

as for the 2 cpu's listed, e.g. if you enable hyper threading on a p4 it will also show 2 cpu's in /proc/cpuinfo
 
Old 03-20-2008, 08:50 AM   #3
laucian
Member
 
Registered: Oct 2005
Distribution: Ubuntu 9.04
Posts: 124

Original Poster
Blog Entries: 2

Rep: Reputation: 15
thanks for your reply..
but now i have 2 more questions?
1.what does clflush mean?
2.i know nothing about enabling hyper threading..is there a way to see the real(physical) number of the cpus?
 
Old 03-20-2008, 09:02 AM   #4
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 33
was just a wild guess to be honest...

as for what clflash means... looks like you dont even try to use google to find answeres:
http://www.google.de/search?q=clflush
 
Old 03-20-2008, 09:12 AM   #5
slimm609
Member
 
Registered: May 2007
Location: Chas, SC
Distribution: slackware, gentoo, fedora, LFS, sidewinder G2, solaris, FreeBSD, RHEL, SUSE, Backtrack
Posts: 430

Rep: Reputation: 67
AMD Opteron(tm) Processor 250

as far as i remember every opteron chip ever made has been 64 bit.

I believe the Opteron was AMD's first 64-bit server chip

Last edited by slimm609; 03-20-2008 at 09:16 AM.
 
Old 03-20-2008, 09:14 AM   #6
laucian
Member
 
Registered: Oct 2005
Distribution: Ubuntu 9.04
Posts: 124

Original Poster
Blog Entries: 2

Rep: Reputation: 15
oh my god! not again..here is why i don't "TRY" to use google..

-i don't know something and i ask..the question is open the everyone..
-you answer, you are kind if you do so..but you don't have to..
-if you answer you are being helpful and saving my time from the information bin called internet and giving me information based on "experience".
-and the 3.person who needs this information can read from "this" thread
-and of the course you help this nice LQ Society get bigger..

if i use google, i know the answer..and it is over..you got me mein freund?
 
Old 03-20-2008, 09:18 AM   #7
slimm609
Member
 
Registered: May 2007
Location: Chas, SC
Distribution: slackware, gentoo, fedora, LFS, sidewinder G2, solaris, FreeBSD, RHEL, SUSE, Backtrack
Posts: 430

Rep: Reputation: 67
http://en.wikipedia.org/wiki/Opteron

It was the first intel based 64-bit processor.
 
Old 03-20-2008, 09:23 AM   #8
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 33
Quote:
Originally Posted by laucian View Post
oh my god! not again..here is why i don't "TRY" to use google..

-i don't know something and i ask..the question is open the everyone..
-you answer, you are kind if you do so..but you don't have to..
-if you answer you are being helpful and saving my time from the information bin called internet and giving me information based on "experience".
-and the 3.person who needs this information can read from "this" thread
-and of the course you help this nice LQ Society get bigger..

if i use google, i know the answer..and it is over..you got me mein freund?
no need to get upset... i help my fair share here at lq! yet i personally (and some others do too) expect simple things to be searched first!!! i would not have refered you to google if there had not been a good hit in the first page.
if you are so concerened about others finding the same info you could have looked it up and then posted brief info here.
so get a grip and stop wining about!!
 
Old 03-21-2008, 07:28 AM   #9
laucian
Member
 
Registered: Oct 2005
Distribution: Ubuntu 9.04
Posts: 124

Original Poster
Blog Entries: 2

Rep: Reputation: 15
well i wasn't really upset, i wasn't wining either. I was just critisizing the way you post. I mean if you don't know answer of the question, just don't post anything..it is better then giving annoying advises (as of course i think searching in google) and much better then giving wrong information..anyway i am cutting the edge here, we shouldn't make a personal discussion here. Please send me PM if you need something to say.

the previous information is wrong, i don't know what is clflush size but it has nothing to do with the bit-model of the cpu. I have a 32-bit Pentium M 735 CPU at home, i ran /proc/cpuinfo and guess what came out..clflush size = 64!!!

In google i didn't really find any clear information about clflush size.

so i need to refresh this thread with a question;
how can i learn how many bits is my CPU?

thanks
 
Old 03-21-2008, 08:07 AM   #10
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by laucian View Post
oh my god! not again..here is why i don't "TRY" to use google..

-
Forums like LQ do not exist so that people can come and ask: "What is a donut?" We are here to help each other solve problems. Sometimes we can do that by simply showing someone the easy way to find the answer. At other times, we get in deep on something and figure it out.

For the simple stuff, other members either know the answer, or they know how easy it is to type 5-10 letters into Google.

When you create the impression that you are asking simple questions because you don't want to make the effort to search Google, Wikipedia, or Webster's online dictionary, then you will sometimes get grumped at.

If you say something like "I can't find this anywhere." or "I found this on Google, and I'm not sure I understand it." THEN you will generally get a very positive reaction.
 
Old 03-21-2008, 08:09 AM   #11
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by laucian View Post
how can i learn how many bits is my CPU?

thanks
Start by reading what is already posted here!!! (At least 2 replies)
Opteron is 64-bits
 
Old 03-21-2008, 08:39 AM   #12
laucian
Member
 
Registered: Oct 2005
Distribution: Ubuntu 9.04
Posts: 124

Original Poster
Blog Entries: 2

Rep: Reputation: 15
i think i should have stated my question clearer.
i wanted to know that in "general"..if you are working on remote machine, where you have no firefox access, you can't really check if Opteron is 32/64 bits..let me give a case example..

you are installing software to a remote machine via ssh. you need to know if the machine 32 or 64 bits.. all i needed is a command for that..

anyway thanks for all the replies, sorry for the raging language..
 
Old 03-21-2008, 08:44 AM   #13
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Quote:
Originally Posted by laucian View Post
address sizes : 40 bits physical, 48 bits virtual
I'm pretty sure only 64-bit CPUs can have 48 bit virtual addressing.

Physical address size has a lot more room for variation between otherwise similar models, so it might not tell you anything about whether the CPU is 64 bit or 32 bit. But the virtual address size should answer whether the CPU is 64 bit or 32 bit.

Quote:
Originally Posted by laucian View Post
you are installing software to a remote machine via ssh. you need to know if the machine 32 or 64 bits.. all i needed is a command for that..
That's a very different question. You don't want to know if the CPU is 64-bit. You want to know if the Linux kernel is 64-bit.

Usually uname -a will tell you. (I'm not certain it will on all Linux systems). The output from that will typically say x86_64 a few times if it is a 64 bit kernel and will say things like i686 and i386 instead if it is 32-bit.

Last edited by johnsfine; 03-21-2008 at 08:53 AM.
 
Old 03-21-2008, 09:01 AM   #14
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
/proc/cpuinfo

http://www.brandonhutchinson.com/Und...c_cpuinfo.html

You'll never guess how I found this.....
 
Old 03-21-2008, 10:13 AM   #15
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
I prefer lshw or sometimes dmidecode

Code:
user@it-etch:~$ lshw -C processor
WARNING: you should run this program as super-user.
  *-cpu
       product: Intel(R) Pentium(R) D CPU 2.80GHz
       vendor: Intel Corp.
       physical id: 1
       bus info: cpu@0
       version: 15.4.7
       serial: 0000-0F47-0000-0000-0000-0000
       size: 18EHz
       width: 64 bits
       capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr 
             pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx 
             x86-64 constant_tsc pni monitor ds_cpl cid cx16 xtpr lahf_lm
       configuration: id=0
     *-logicalcpu:0
          description: Logical CPU
          physical id: 0.1
          width: 64 bits
          capabilities: logical
     *-logicalcpu:1
          description: Logical CPU
          physical id: 0.2
          width: 64 bits
          capabilities: logical
Code:
it-etch:~# dmidecode


Handle 0x0400, DMI type 4, 40 bytes
Processor Information
        Socket Designation: Microprocessor
        Type: Central Processor
        Family: Pentium 4
        Manufacturer: Intel
        ID: 47 0F 00 00 FF FB EB BF
        Signature: Type 0, Family 15, Model 4, Stepping 7
        Flags:
                FPU (Floating-point unit on-chip)
                VME (Virtual mode extension)
                DE (Debugging extension)
                PSE (Page size extension)
                TSC (Time stamp counter)
                MSR (Model specific registers)
                PAE (Physical address extension)
                MCE (Machine check exception)
                CX8 (CMPXCHG8 instruction supported)
                APIC (On-chip APIC hardware supported)
                SEP (Fast system call)
                MTRR (Memory type range registers)
                PGE (Page global enable)
                MCA (Machine check architecture)
                CMOV (Conditional move instruction supported)
                PAT (Page attribute table)
                PSE-36 (36-bit page size extension)
                CLFSH (CLFLUSH instruction supported)
                DS (Debug store)
                ACPI (ACPI supported)
                MMX (MMX technology supported)
                FXSR (Fast floating-point save and restore)
                SSE (Streaming SIMD extensions)
                SSE2 (Streaming SIMD extensions 2)
                SS (Self-snoop)
                HTT (Hyper-threading technology)
                TM (Thermal monitor supported)
                PBE (Pending break enabled)
        Version: Not Specified
        Voltage: 1.8 V
        External Clock: 800 MHz
        Max Speed: 5200 MHz
        Current Speed: 2800 MHz
        Status: Populated, Enabled
        Upgrade: ZIF Socket
        L1 Cache Handle: 0x0700
        L2 Cache Handle: 0x0701
        L3 Cache Handle: Not Provided
        Serial Number: Not Specified
        Asset Tag: Not Specified
        Part Number: Not Specified
Flags from cat /proc/cpuinfo
Quote:
flags : fpu vme de pse tsc msr pae mce cx8 apic sep 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 cid cx16 xtpr lahf_lm
CPU Flag meanings

LM - Long Mode. (64bit Extensions, AMD’s AMD64 or Intel’s EM64T).



Odd how dmidecode doesn't show all the CPU flags or detail that lshw or 'cat /proc/cpuinfo' does.. guess that explains why I prefer lshw

Last edited by farslayer; 03-21-2008 at 10:22 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
64 bit cpu-64 bit Ubuntu-are there 32 bit app issues? sofasurfer Ubuntu 7 04-09-2014 02:02 PM
CPU and Memory information DavidDiggs Linux - Hardware 6 03-20-2008 08:36 PM
CPU information : how is it possible?? sachinh Linux - Server 6 06-06-2007 07:04 AM
CPU run information cygnus-x1 Other *NIX 3 05-15-2007 11:15 AM
CPU information structure alltime Programming 2 10-31-2005 05:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration