public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* how to tell i386 from x86-64 kernel
@ 2008-02-01  0:42 Pavel Machek
  2008-02-01  0:46 ` Ray Lee
  2008-02-01  4:51 ` H. Peter Anvin
  0 siblings, 2 replies; 13+ messages in thread
From: Pavel Machek @ 2008-02-01  0:42 UTC (permalink / raw)
  To: kernel list, jikos

Hi!

Quiz: on a booted system, how do you tell 32bit from 64bit kernel?

A1: zcat /proc/config.gz | grep CONFIG_64

...but config.gz is optional

A2: cat /proc/meminfo  | grep High

...but i386 kernel could have highmem disabled

What is _your_ answer? ;-)>
									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

^ permalink raw reply	[flat|nested] 13+ messages in thread
[parent not found: <960D0E79B4E503448AD14B5E40A5C1C7BB54CE@USX1.corp.bb>]
* Re: how to tell i386 from x86-64 kernel
@ 2008-02-01 10:47 Rik Bobbaers
  2008-02-02 11:06 ` Pavel Machek
  0 siblings, 1 reply; 13+ messages in thread
From: Rik Bobbaers @ 2008-02-01 10:47 UTC (permalink / raw)
  To: linux-kernel

hi there,

since i'm not on the list... how about:

tail /proc/1/smaps and check the address size...
on 32 bit: ffffe000-fffff000 r-xp 00000000 00:00 0          [vdso]

on 64 bit: ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0
[vdso]

there you can clearly see that your address space is double... so
there's your 32 bit vs 64 bit

as a normal user, you can do the same but with your own processes

greetings,

> Hi!
> 
> Quiz: on a booted system, how do you tell 32bit from 64bit kernel?
> 
> A1: zcat /proc/config.gz | grep CONFIG_64
> ...but config.gz is optional
> 
> A2: cat /proc/meminfo  | grep High
> ...but i386 kernel could have highmem disabled
> 
> What is _your_ answer? ;-)>

-- 
harry
aka Rik Bobbaers

K.U.Leuven - LUDIT            -=- Tel: +32 485 52 71 50
Rik.Bobbaers@icts.kuleuven.be -=- http://harry.enzoverder.be

Don't steal - the government hates competition.



Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2008-02-10  1:27 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-01  0:42 how to tell i386 from x86-64 kernel Pavel Machek
2008-02-01  0:46 ` Ray Lee
2008-02-01  0:59   ` Jan Engelhardt
2008-02-01 11:53     ` Alejandro Riveira Fernández
2008-02-09 20:13       ` Jan Engelhardt
2008-02-09 22:34         ` Arjan van de Ven
2008-02-10  1:27           ` Pavel Machek
2008-02-01  1:03   ` Pavel Machek
2008-02-01  4:51 ` H. Peter Anvin
2008-02-01 10:07   ` Jiri Kosina
     [not found] <960D0E79B4E503448AD14B5E40A5C1C7BB54CE@USX1.corp.bb>
2008-02-01  1:37 ` Jan Engelhardt
  -- strict thread matches above, loose matches on Subject: below --
2008-02-01 10:47 Rik Bobbaers
2008-02-02 11:06 ` Pavel Machek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox