how to tell i386 from x86-64 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,
Quoted 11 lines
Hi!
Quiz: on a booted system, how do you tell 32bit from 64bit kernel?
A1: zcat
/proc/config.gz| grepCONFIG_64
...but config.gz is optionalA2: cat
/proc/meminfo| grep High
...but i386 kernel could have highmem disabledWhat is _your_ answer? ;-)>
Signature · 11 lines
harry aka Rik Bobbaers K.U.Leuven - LUDIT -=- Tel: +32 485 52 71 50 [email protected] -=- http://harry.enzoverder.be Don't steal - the government hates competition. Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm
Quoted 7 lines · Rik Bobbaers
hi there,
since i'm not on the list... how about:
tail
/proc/1/smapsand check the address size...
on 32 bit: ffffe000-fffff000 r-xp 00000000 00:00 0 [vdso]
Quoted 7 lines
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
That tells you if _init_ is 32 or 64 bit, not kernel.
I'm running 32-bit distro on 64-bit kernel here. It works fine (as it should).
Pavel
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html