32 bit vs. 64 bit kernel

Evan Leibovitch evan-ieNeDk6JonTYtjvyW6yDsg at public.gmane.org
Mon Nov 20 22:59:32 UTC 2006


Paul Mora wrote:
>> uname -a will tell you
>
> So what would I see on, for example, a 64-bit system running a 32-bit
> kernel?
The most reliable thing for me is

`uname -m` (to tell me the kernel running)

`grep "model name" /proc/cpuinfo` (to tell me the CPU installed)

On my Mandriva 64-bit system, `uname -p` correctly identifies the
processor hardware but on a 32-bit Ubuntu box the same command returns
`unknown`. So it can't be reliably trusted.

(I don't have a 64-bit system running a 32-bit kernel so I can't exactly
test this scenario using the above commands. Maybe someone else here can
confirm or deny the utility of this combination. YMMV)

- Evan

--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list