Operating System - HP-UX
1837970 Members
2739 Online
110124 Solutions
New Discussion

Re: 32 bit or 64 bit enabled

 
SOLVED
Go to solution
Peter Gillis
Super Advisor

32 bit or 64 bit enabled

Hi,
We run hp ux11.0 op system. I believe we are running at 64bit. I have been asked if we really are 64 bit enabled. I can see in sam that the kernel width is 64 bit. is there a way to display whether or not we are actually 64bit enabled?

hope that makes some sort of sense.
Thanks for helping.
Maria.
9 REPLIES 9
Mei Jiao
Respected Contributor

Re: 32 bit or 64 bit enabled

Hi,

If you do follow this:
# sam --> Performance Monitors --> System Properties

You'll see what OS kernel bits you're running from SAM. Another way is to run the command (posted in another thread) :)
Michael Tully
Honored Contributor

Re: 32 bit or 64 bit enabled

Hi Maria,

There are actually three helpful commands with this:

# getconf KERNEL_BITS (reads the running kernel)
and
# getconf HW_32_64_CAPABLE (which tells you what the server is capable of running.

# getconf HW_CPU_SUPP_BITS (CPU)

Regards
Michael
Anyone for a Mutiny ?
Peter Gillis
Super Advisor

Re: 32 bit or 64 bit enabled

Thankyou. I understand that they tell me that I am, or rather the system is set to 64 bit, but does this also mean that the system is enabled for 64 bit? I know this is splitting hairs, but well that is what some people are put on earth for! dont you think?
Thanks again
maria
Michael Tully
Honored Contributor
Solution

Re: 32 bit or 64 bit enabled

The kernel tell you that it 64 bit enabled by running the KERNEL_BITS switch as below.

# getconf KERNEL_BITS (reads the running kernel)

If the system was running a 32 bit system or kernel the output from the command would report 32 and not 64. Hope this clears it up.
Anyone for a Mutiny ?
Sridhar Bhaskarla
Honored Contributor

Re: 32 bit or 64 bit enabled

Hi Maria,

32-bit OS cannot run 64 bit binaries. Your kernel is 64bit means your system is not 32bit otherwise it won't boot.

On the other hand 64bit systems allow 32bit code to run on them. So, on your system you can run both 64bit and 32bit programs.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Peter Gillis
Super Advisor

Re: 32 bit or 64 bit enabled

Thanks Sri and Michael. All cleared up. some people not looking too frizzy around the edges now!

keeping smiling
Maria.
Peter Gillis
Super Advisor

Re: 32 bit or 64 bit enabled

Michael,
I have just run the command getconf HW_32_64_CAPABLE The reply I got was '1'. I have also tried getconf HW_32_64_CAPABLE (CPU) and I got was: /sbin/sh: Syntax error: `(' is not expected.

What is happening with this one?
Thanks
Maria.
Muthukumar_5
Honored Contributor

Re: 32 bit or 64 bit enabled

Hai,

We can know the kernel type using the getconf and SAM settings.

HP-UX platform supports 32 (to allow 32 bit applications) and 64 for 64 bit application(s) or binaries. The size of data type is varied in the application.

We can use the file,chatr command to know the binary type. To dump the object informations we can use elfdump (IPF) and odump for (PA-RISC) machines.

Regards,
Muthukumar
Easy to suggest when don't know about the problem!
Mei Jiao
Respected Contributor

Re: 32 bit or 64 bit enabled

#getconf HW_32_64_CAPABLE (CPU)
/sbin/sh: Syntax error: `(' is not expected.

This is because (CPU) is no part of the command. The command to run is:
# getconf HW_32_64_CAPABLE

For the output of 1 from the above command, I need to check further for what does it means firsst.

To check CPU bits, you can run this command:
# getconf HW_CPU_SUPP_BITS