Deepees’s Blog

Just another weblog

Is your HP-UX kernel 32 bit or 64 bit ?

Posted by deepees on February 18, 2009

Itanium is 64 bit all the way but PARISC processors come in 32bit and 64bit varieties, it can be important to verify which of these the current kernel is (32bit or 64bit).

One can use the command getconf to get the number of bits used by the currently running kernel:

$ getconf KERNEL_BITS

One can also get the number of bits supported by the hardware, as well as find out if the hardware supports a 32-bit as well as 64-bit mode:

$ getconf HW_CPU_SUPP_BITS
$ getconf HW_32_64_CAPABLE


Another way to get this done is to use the print_manifest though you need to be root to run this command:

# print_manifest | grep -i "os mode"
    OS mode:            64 bit

However, since the print_manifest command documents the entire system, it takes a lot longer than the getconf command does.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: