the "proper" way to identify the bitness of your kernel and CPU
- From: "Robert P. J. Day" <rpjday@xxxxxxxxxxxxxx>
- Date: Fri, 3 Apr 2009 14:34:44 -0400 (EDT)
what is the fedora-approved way to identify the wordsize of both
your running kernel and your CPU? for the kernel, i'm used to running
$ uname -r
and just looking at the suffix, which in my case would be either
"i686" or "x86_64". is there a simpler way? does one of the "uname"
options reliably report just that portion -- the wordsize of the
running kernel?
and, secondly, regardless of the bitness of the kernel, what about
identifying the wordsize of the actual CPU (since you can obviously
have a 32-bit kernel running on an x86_64 CPU).
my standard tricks are one of:
$ grep lm /proc/cpuinfo (where "lm" stands for long mode)
$ getconf LONG_BIT (should print 32 or 64)
in that second case, would "uname -p" reliably show a 64-bit CPU, even
with a 32-bit OS?
thanks.
rday
--
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
Have classroom, will lecture.
http://crashcourse.ca Waterloo, Ontario, CANADA
========================================================================
--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
- Follow-Ups:
- Re: the "proper" way to identify the bitness of your kernel and CPU
- From: Gregory P. Ennis
- Re: the "proper" way to identify the bitness of your kernel and CPU
- From: Sharpe, Sam J
- Re: the "proper" way to identify the bitness of your kernel and CPU
- Prev by Date: Re: Fedora internet connection issues
- Next by Date: Re: Kernel-firmware package and Anaconda.
- Previous by thread: Fedora internet connection issues
- Next by thread: Re: the "proper" way to identify the bitness of your kernel and CPU
- Index(es):
Relevant Pages
|