LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-30-2005, 01:46 PM   #1
Henry_1
LQ Newbie
 
Registered: Sep 2003
Posts: 29

Rep: Reputation: 15
/proc/cpuinfo flag lm


Hi,

cat /proc/cpuinfo gives

rocessor : 1
vendor_id : GenuineIntel
cpu family : 15
model : 4
model name : Intel(R) Xeon(TM) CPU 3.20GHz
stepping : 1
cpu MHz : 3200.229
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 mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss tm lm
bogomips : 6396.31

I'm assuming the lm flag tells that the cpu has 64 bit extension. Is my assumption correct? I couldn't find much info about it.

Thanks.
 
Old 08-30-2005, 02:01 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
The lm flag is indeed x86-64.

The definitions of the flags can be found in the kernel source tree, in the include/asm/cpufeature.h header.
 
Old 03-15-2007, 08:58 PM   #3
thesmokeyt
LQ Newbie
 
Registered: Mar 2007
Posts: 2

Rep: Reputation: 0
standard flag for x86_64 procs?

so i'm in a similar boat. i'm trying to find out if lm is standard flag for x86_64 procs. couple things i've read make me think so, but i need to be as sure about it as i can.

have you two, or anyone else, ever run into 64 bit procs that do NOT have the lm flag?

if i find out more i'll post it.
thanks.
 
Old 03-15-2007, 09:42 PM   #4
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
The lm flag indicates that the CPU is a 64-bit proc. Thus, all x86-64 cpus have it, and no 32 bit CPUs have it. From /usr/include/asm/cpufeature.h: #define X86_FEATURE_LM (1*32+29) /* Long Mode (x86-64) */
 
Old 11-15-2007, 06:40 AM   #5
mkbane
LQ Newbie
 
Registered: Nov 2007
Posts: 2

Rep: Reputation: 0
Actually I'm pretty sure my Xeon is only 32-bit but yet it shows the 'lm' flags so I need convincing that 'lm' means 64-bit...

michael@ratty:~$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 4
model name : Intel(R) Xeon(TM) CPU 3.00GHz
stepping : 1
cpu MHz : 2793.136
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 lm constant_tsc pni monitor ds_cpl cid cx16 xtpr
bogomips : 5590.38

processor : 1
vendor_id : GenuineIntel
cpu family : 15
model : 4
model name : Intel(R) Xeon(TM) CPU 3.00GHz
stepping : 1
cpu MHz : 2793.136
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 lm constant_tsc pni monitor ds_cpl cid cx16 xtpr
bogomips : 5586.51


I will need to get the exact specs, but it's an Intel Xeon 3.0GHz with hyperthreading bought in Autumn 2004
 
Old 11-15-2007, 10:43 AM   #6
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by mkbane View Post
Actually I'm pretty sure my Xeon is only 32-bit but yet it shows the 'lm' flags so I need convincing that 'lm' means 64-bit...
Well get a 64bit live CD/DVD and boot with it then ...
 
Old 11-15-2007, 12:43 PM   #7
mkbane
LQ Newbie
 
Registered: Nov 2007
Posts: 2

Rep: Reputation: 0
aha, I apologise and I learn!

Using info from `dmesg` (Linux) I can determine my Xeon to be a 'SL7PE' and a quick search reveals it does support EM64T. So yes, it supports 64 bit computing. (But is it really a 64bit chip? I'm sure a colleague bought a Xeon after me and it was sold something like "64bit Xeon"...)
 
Old 11-15-2007, 11:37 PM   #8
thesmokeyt
LQ Newbie
 
Registered: Mar 2007
Posts: 2

Rep: Reputation: 0
Sorry, i did not reply sooner. work keeps me really busy.

I'm glad you discovered that lm is 'really' the flag for 64bit capability.

It sounds like to me, that you may have only a 32bit capable motherboard.
It might be worth looking into, and if it is, it might be worth looking into upgrading to a newer one.

cheers,
~smokey
 
Old 05-23-2019, 06:15 PM   #9
brolin_empey
LQ Newbie
 
Registered: Jan 2009
Location: /home/brolin/
Distribution: Ubuntu
Posts: 1

Rep: Reputation: 0
Thumbs up necropost

Today I was curious to know how the lscpu program from util-linux knows that an x86 computer has a 64-bit operating mode. I found the relevant part of the lscpu.c source code here:

https://github.com/karelzak/util-linux/blob/master/sys-utils/lscpu.c#L560

which made me curious to know if “lm” in this context means “long mode”, so I searched the Internet and found this topic, which confirmed that “lm” in this context does indeed mean “long mode”.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bad /proc/cpuinfo or processor overclocked!!! pulsez Linux - Laptop and Netbook 1 11-10-2005 05:19 AM
/proc/cpuinfo says processor is 700mhz? J--Lew Linux - Newbie 3 10-19-2005 08:18 AM
/proc/cpuinfo oops! feta Linux - Hardware 2 11-08-2004 10:16 PM
/proc/cpuinfo embsupafly Linux - General 3 12-29-2003 06:54 AM
Hypertherad Kernel 2.5.75 and your /proc/cpuinfo Kayaker Slackware 2 09-16-2003 08:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:22 AM.

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