Operating System - HP-UX
1834299 Members
2150 Online
110066 Solutions
New Discussion

Getting 32/64 bit and processor info

 
SOLVED
Go to solution
Steven Buschman_3
Frequent Advisor

Getting 32/64 bit and processor info

Looking for efficient way to get the following 2 pieces of info:

Am I running 32 or 64 bit kernel?
(some releases/platforms can run either)

How many processors are on my system?
Currently I'm using ioscan to look for processors and counting each but I'm thinking there is a better way.

Thanks!
11 REPLIES 11
Helen French
Honored Contributor
Solution

Re: Getting 32/64 bit and processor info

Try these:

# print_manifest

1) For kernel info (32 or 64):

# getconf KERNEL_BITS (works in 11.X systems)

2) For processor information:

# top
# stm
# sam -> performance monitors -> system properties
Life is a promise, fulfill it!
Craig Rants
Honored Contributor

Re: Getting 32/64 bit and processor info

Also, to see what you box can handle

getconf HW_CPU_SUPP_BITS

GL,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
James George_1
Trusted Contributor

Re: Getting 32/64 bit and processor info

Hi

# getconf KERNEL_BITS will give u the info about ur os kernel bits.

# top 10 ...will give u the no of CPU's

Rgds / James
forum is for techies .....heaven is for those who are born again !!
Pete Randall
Outstanding Contributor

Re: Getting 32/64 bit and processor info

getconf KERNEL_BITS
will give you 32/64 info.

`ioscan -k |grep -n processor |wc -l`
will give you # of processors

Pete

Pete
Olav Baadsvik
Esteemed Contributor

Re: Getting 32/64 bit and processor info


Hi,

To see if you are running a 32- or 64-bit
kernel use this command:

getconf KERNEL_BITS

Regards
Olav
S.K. Chan
Honored Contributor

Re: Getting 32/64 bit and processor info

# getconf KERNEL_BITS
==> gives 32 or 64 bits info

# echo runningprocs/D | adb -k /stand/vmunix /dev/mem
==> gives # of processors
PIYUSH D. PATEL
Honored Contributor

Re: Getting 32/64 bit and processor info

Hi,

getconf KERNEL_BITS
for 32 or 64 bit kernel

for no. of processors
top
cstm
print_manifest if you are using Ignite UX

Piyush

MANOJ SRIVASTAVA
Honored Contributor

Re: Getting 32/64 bit and processor info

Hi Steven


1. getconf KERNEL_BITS if you aer using 11.00 and above 10.2 is 32 bits only.

2.ioscan | grep proc | wc -l
/var/adm/syslog
stm
print_manifest
sam--->perforamnce monitors--->system properties


will all give you the no of processors.


Manoj Srivastava
Aashish Raj
Valued Contributor

Re: Getting 32/64 bit and processor info

To check whether your hardware can support 64 bit kernel run ,
getconf HW_32_64_capable .
if it returns 1, then you can install 64 bit kernel on the box if it is not already installed.

AR
John Dvorchak
Honored Contributor

Re: Getting 32/64 bit and processor info

You might want to try a simple script:

>bits=`getconf KERNEL_BITS`;echo Bits $bits;proc=`dmesg|grep process|wc -l`;echo Processors $proc



If it has wheels or a skirt, you can't afford it.
Deoncia Grayson_1
Honored Contributor

Re: Getting 32/64 bit and processor info

#getconf KERNEL_BITS will give u the 32/64 bit os...

running top will give u the number of processors
If no one ever took risks, Michelangelo would have painted the Sistine floor. -Neil Simon