Operating System - HP-UX
1833873 Members
4351 Online
110063 Solutions
New Discussion

Re: How to know 32/64 bit?

 
ericfjchen
Regular Advisor

How to know 32/64 bit?

How to know if the HP-UX is 32 or 64 bit?

Thanks

10 REPLIES 10
Robert-Jan Goossens
Honored Contributor

Re: How to know 32/64 bit?

Hi,

# file /stand/vmunix
/stand/vmunix: ELF-64 executable object file - PA-RISC 2.0 (LP64)

Regards,
Robert-Jan
Vibhor Kumar Agarwal
Esteemed Contributor

Re: How to know 32/64 bit?

getconf KERNEL_BITS
Vibhor Kumar Agarwal
Joseph Loo
Honored Contributor

Re: How to know 32/64 bit?

hi,

or thru SAM > Performance Monitor > System Properties > Processor tab, under Kernel Width Support.

or

# getconf KERNEL_BITS

regards.
what you do not see does not mean you should not believe
Cem Tugrul
Esteemed Contributor

Re: How to know 32/64 bit?

Hi,

i know 3 ways to get 32/64 information
and they are still suggested.

Good Luck,
Our greatest duty in this life is to help others. And please, if you can't
H.Merijn Brand (procura
Honored Contributor

Re: How to know 32/64 bit?

On my site there is a FAQ that answers this and many more related questions:

http://mirrors.develooper.com/hpux/faq.html

--8<---
Does my system support 64bit builds

You can find out if your kernel supports 64bit binaries by issuing:

a5:/usr/local 110 > file /stand/vmunix
/stand/vmunix: ELF-64 executable object file - PA-RISC 2.0 (LP64)
a5:/usr/local 111 > getconf KERNEL_BITS
64
a5:/usr/local 112 > getconf HW_32_64_CAPABLE
1
a5:/usr/local 113 >

HP-UX 10.20 does not support 64bit objects
-->8---

And there probably legio other possible ways to get to that info

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Elif Gius
Valued Contributor

Re: How to know 32/64 bit?

print_manifest |grep mode

that should work also
MarkSyder
Honored Contributor

Re: How to know 32/64 bit?

uname -a

Part of the information will be the operating system. 11.11 or earlier is 32 bit. 11.23 is 64 bit.

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
rick jones
Honored Contributor

Re: How to know 32/64 bit?

Yet another way (although the getconf KERNEL_BITS is the best):

If the CPU is PA-8500 or later (including IPF) then the kernel is 64 bit.

If the CPU is PA-7200 or earlier then the kernel is 32-bit.

If the CPU is PA-8000 or PA-8200 then the kernel could be either 32 or 64 bit.

Regardless, 32 bit applications run just fine on a 64-bit kernel. The only "concern" one should have with a 64 vs 32 bit kernel would be if the application wants to muck around with kerne-specific things, or if the application has an in-the-kernel component.
there is no rest for the wicked yet the virtuous have no pillows
Ted Buis
Honored Contributor

Re: How to know 32/64 bit?

Just to correct a prior post. HP-UX 11.0 and 11.11 can be either 32-bit or 64-bit. Newer servers only support the 64-bit version of 11.11 however.
Mom 6
Babu A
Frequent Advisor

Re: How to know 32/64 bit?

Hi,

# getconf KERNEL_BITS

is the easier way to know the whether the HP-UX is 32 or 64 bit...

Regards,

Babu