How to find the number of physical processors and architecture in a hp-ux machine


 
Thread Tools Search this Thread
Operating Systems HP-UX How to find the number of physical processors and architecture in a hp-ux machine
# 1  
Old 07-08-2009
How to find the number of physical processors and architecture in a hp-ux machine

Hi,

I have two questions here.
I need to find out the number of physical processors the HP-UX operating system is running in. Here i am referring to the physical processors in a system and not the number of cores.

I can get the number of cores using the command 'ioscan -fnkC processor'. But what I need is the physical procesor count. So if a processor is dual-core, number of cores will be 2 and number of physical processors will be 1.

Also I need to find out the architecture of the processor whether it is 32/64 bit. here I am referring to the processor capability and not whether the kernel is 64 or 32 bit.


Can you please help me on this??
# 2  
Old 07-08-2009
Hi,

you can try it by sam. Just open sam, click on Performance Monitors Section and then click on System Properties. There you can open The category processor and you will have your solution.
# 3  
Old 07-08-2009
Hi ortsvorsteher,
thnks for ur reply. I forgot to mention that I am actually looking to determine this information programatically. If it is not possible programatically, then a command output is also fine.
# 4  
Old 07-08-2009
For itanium machines, look at the output of machinfo command, for PA-RISC its seems more tricky...
CPU architecture 32/64?
Code:
lod # getconf HW_CPU_SUPP_BITS                                    
64

# 5  
Old 07-08-2009
Computer Check the pstat library

This is going to be dependent on which levels of the OS you're hoping to have this work on. If you're using 11.11 or earlier, you're pretty much out of luck. There are some scripts and so forth that I can point you at that will get you a count that is reasonably close.

However, for HP-UX 11i v3 (11.31) the /usr/include/sys/pstat.h library was updated to allow precise counting of chips and cores. This update was ported back to 11i v2 (11.23) with kernel patch PHKL_34912, with a few special considerations.

The relevant calls are the mpctl() call and the pstat_getprocessor() call.

If you have access to the HP Developer Support site, you can look up a paper called "Dynamic logical processors for Hyper-Threading on HP-UX 11i v3" (4AA0-7695ENW, Rev 1, March 2007). Also, this link may give you some info Update to the IntelŪ ItaniumŪ 2 Processor Reference Manual for Software Development and Optimization.

Hope that helps!
# 6  
Old 07-08-2009
You can find some CPU infos in "machinfo" command
# 7  
Old 07-09-2009
Hi Midcain,

Thnx for the info. I think I can get the number of sockets(physical processors) from the psp_socket_id in pstat_getprocessor().

And before 11 iv3 release, these fields don't exist in the pst_processor struct or anywhere else and so as you said I may not be able to find it(CPU soclets or physical processors) before 11iv3.

Masanamuthu - machinfo still returns the number of cores.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

How to find whether Solaris installed on physical machine or on a VMware/KVM?

Hi All, . I am trying to find whether Solaris 11 installed on physical server or on VMware/KVM. I tried uname -a but it's giving only whether i installed on X86 or sparc machine. I tried prtdiag command but it's giving below information. command : prtdiag -v |grep "System... (2 Replies)
Discussion started by: sravani25
2 Replies

2. AIX

Virtualizing Physical Machine

Hi Experts - we have power710 (no VIOs) that is already connected to hmc and everything . I already have a Physical LPAR in there and network configured . Now I plan to delete that LPAR and then put Virtualization code (COD) to virtualize that machine by building VIO servers and stuff.Also ordered... (9 Replies)
Discussion started by: JME2015
9 Replies

3. Red Hat

Number of physical and virtual processors

Hi, i am trying to find out hpw many virtual and physical processors does any linux machine has: output of /proc/cpuinfo is as below : # cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 26 model name : Intel(R) Xeon(R) CPU... (8 Replies)
Discussion started by: omkar.jadhav
8 Replies

4. Solaris

How to count number of physical and virtual processors on Solaris machine.?

hi, I am using command psrinfo -p to check the number of physical processors present on any soalris machine.I want to check the number of virtual processors assigned for particular solaris machine. which command/set of command need to be used which can grep or show the total virtual processors... (8 Replies)
Discussion started by: omkar.jadhav
8 Replies

5. High Performance Computing

PBS - restrict total number of processors per user

Hello everyone! I am a bit inexperienced with administering queueing programs. I installed Torque (a PBS derivative) on a Linux cluster and it is running well. There is one annoying problem though: users can run massively parallel jobs and serial jobs too. Almost all users do a mix of the two. I... (0 Replies)
Discussion started by: gnuplot
0 Replies

6. UNIX for Advanced & Expert Users

How to find locked processors

Hi all, i have no of processors .in that some processors locked. how to find the particular locked processors into list of all the processors. i hav no of processors like ex: processors 1021 1022 1023 1024 1025 ---it is locked 1026 -- - - - - -- 2334334 so i don't know 1025 is... (1 Reply)
Discussion started by: venkatreddy
1 Replies

7. AIX

Maximum Limit of HMC to handle Physical Power Virtualization Physical Machine

Hello All, Can anybody please tell me what is the maximum limit of Physical IBM Power Machine which can be handled by single HMC at a single point of time? Thanks, Jenish (1 Reply)
Discussion started by: jenish_shah
1 Replies

8. Solaris

Limiting number of processors used by an application

Hello, Using a Solaris SunOS 5.10, is there anyway to limit the number of processors utilised by an external vendor application over the server, from the unix OS perspective? (1 Reply)
Discussion started by: pgop
1 Replies

9. UNIX for Dummies Questions & Answers

Command to know the architecture of the machine

Hi, Is there any command to know whether the machine 64 bit or 32 bit? now I am using "uname -p" for this purpose but I want a straight command if it is there. (1 Reply)
Discussion started by: siba.s.nayak
1 Replies

10. Programming

trying to find number of caches on a machine

I am trying to find the number of caches on a machine programatically. #include <stdio.h> #include <malloc.h> int main(void) { int *ptr,*ptr1,i,j; j=0; i=1; printf("Changing allocation with brk()\n"); while(1) { for(j=0;j<i;j++) { ptr =... (1 Reply)
Discussion started by: jacques83
1 Replies
Login or Register to Ask a Question