Guest ten Posted January 25, 2006 Report Share Posted January 25, 2006 Hello, With AIX, bootinfo -y return CPU type : 64-bit bootinfo -K return Kernel type : 64-bit With linux, getconf WORD_BIT return Kernel type : 64-bit What is the command for getting CPU type with linux ??? Thanks Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted January 25, 2006 Report Share Posted January 25, 2006 uname -a Quote Link to comment Share on other sites More sharing options...
Guest ten Posted January 25, 2006 Report Share Posted January 25, 2006 Thanks, But : uname -a Linux ten #1 Mon Nov 8 14:27:23 CET 2004 i686 unknown unknown GNU/Linux uname -p => unknown uname -i => unknown cat /proc/cpuinfo don't give me the information Where can I find this ??? Quote Link to comment Share on other sites More sharing options...
devries Posted January 25, 2006 Report Share Posted January 25, 2006 Mon Nov 8 14:27:23 CET 2004 You live in the past :) Try uname -r Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted January 25, 2006 Report Share Posted January 25, 2006 cat /proc/cpuinfo works for me: cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 15 model : 2 model name : Mobile Intel(R) Celeron(R) CPU 1.80GHz stepping : 7 cpu MHz : 1794.793 cache size : 256 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe cid bogomips : 3547.13 Maybe the system isn't recognising your processor correctly from the kernel. What kernel are you running? What version of Linux?!? Quote Link to comment Share on other sites More sharing options...
Guest ten Posted January 25, 2006 Report Share Posted January 25, 2006 [ten]# uname -r 2.6.3-20mdk-i686-up-4GB I just want to know where I can find if my cpu-type is 32 or 64-bit I try lshw, dmidecode, getconf... but nothing ! With Aix : > bootinfo -y 64 > bootinfo -K 64 or > prtconf (...) CPU Type: 64-bit Kernel Type: 64-bit (...) Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted January 25, 2006 Report Share Posted January 25, 2006 So post the output when you use getconf WORD_BIT? Because when I do it, my output is this: getconf WORD_BIT 32 so tell me where it's not working then? My uname -a, gives me this: uname -a Linux europa.comprze.com.pl 2.6.12-14mdk #1 Tue Dec 20 15:45:27 MST 2005 i686 Mobile Intel(R) Celeron(R) CPU 1.80GHz unknown GNU/Linux this doesn't tell me whether 32 bit or 64 bit, but the getconf returns the value of "32", which leads me to believe it actually works. So, when you type getconf WORD_BIT on your system, what does it show? And surely, you should know what processor is in your system anyway? But moreover, what version of Linux are you running? Is it 32 bit? Is it 64 bit? You didn't say what kernel version either, but going by the date on your output, it sounds like a really old one, which would explain a LOT of your problems. Also, post the output when you type "cat /proc/cpuinfo" like I did? It tells you lots of CPU information in here, so it'd be really easy to work out if it's 32bit or 64bit. Update your system, or update us with more information, rather than telling us it doesn't work. Quote Link to comment Share on other sites More sharing options...
Gowator Posted January 25, 2006 Report Share Posted January 25, 2006 I'm prety certain uname only returns the running kernel and if it were a 32 bit on a 64 bit CPU then it will return 32... as will getconf WORDBIT cat /proc/cpuinfo |grep "model name" model name : AMD Athlon 64 Processor 3000+ and getconf WORD_BIT 32 Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted January 25, 2006 Report Share Posted January 25, 2006 That's what I mean :P The cat /proc/cpuinfo tells you what the processor is, so it's not hard to work out by the text as to whether it's a 32 bit processor or 64 bit processor. In addition to the getconf, it then helps to ascertain what processor, and whether you are running a 32 bit of 64 bit operating system. Unfortunately, we're missing ten's cpuinfo, so we can't help him decide whether he has a 32 bit or 64 bit processor. Quote Link to comment Share on other sites More sharing options...
Guest ten Posted January 25, 2006 Report Share Posted January 25, 2006 I have to explore a lot of servers, so I wan't a command to know if a cpu is 32 or 64-bit, from my desk :P # getconf WORD_BIT 32 # uname -a Linux ten 2.6.3-20mdk-i686-up-4GB #1 Mon Nov 8 14:27:23 CET 2004 i686 unknown unknown GNU/Linux # cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 15 model : 4 model name : Intel(R) Pentium(R) 4 CPU 2.93GHz stepping : 1 cpu MHz : 2927.653 cache size : 1024 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 5 wp : yes 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 pni monitor ds_cpl est cid bogomips : 5783.55 Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted January 25, 2006 Report Share Posted January 25, 2006 Going by your post above, the output of the cpuinfo is: model name : Intel® Pentium® 4 CPU 2.93GHz This isn't a 64 bit processor. This is just a 32 Bit Pentium 4 processor. It would have to be an IA64 or an EM64T to be a 64 bit processor. Or if you have AMD processors, then it would be an AMD Athlon 64. As per Gowator's post above. Your output of getconf, shows you are running a 32 bit version of Linux. Quote Link to comment Share on other sites More sharing options...
Gowator Posted January 25, 2006 Report Share Posted January 25, 2006 lshw -C cpu | grep width Quote Link to comment Share on other sites More sharing options...
Guest ten Posted January 26, 2006 Report Share Posted January 26, 2006 Thankyou everybody Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.