Sponsored Content
Operating Systems HP-UX How to find the number of physical processors and architecture in a hp-ux machine Post 302332211 by Midcain on Wednesday 8th of July 2009 10:46:54 AM
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!
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
pset_assign(2)							System Calls Manual						    pset_assign(2)

NAME
pset_assign() - change processor set assignment SYNOPSIS
DESCRIPTION
The function assigns the processor spu to the processor set pset, removing the processor spu from its current processor set. A processor may not belong to more than one processor set at any given time. If opset is not it contains the processor set ID of the previously assigned processor set upon successful operation. A user with the privilege or a user with WRITE permissions on the processor sets may change the processor set assignment for a processor using the function. A user without the privilege must have WRITE permissions in both processor sets to make the processor reassignment, unless the target processor set is the system default processor set. That is, only a user with the privilege may move a processor out of the system default processor set. Currently, processor 0 cannot be reassigned to another processor set from the system default processor set. The system default processor set is never empty. If pset is or the processor spu is assigned to the system default processor set. If pset is the processor's assignment is not changed, but the current processor set ID of processor spu is returned in opset. Neither WRITE permission nor the privilege is needed for operation. If there are threads or processes with binding to the processor spu (in its old processor set), the binding of affected threads and pro- cesses is changed to another processor in that processor set. If spu is the last processor in the locality domain that contributes to its current processor set and there are threads or processes with binding to the locality domain, their binding is changed to another locality domain in the processor set. See mpctl(2) for binding to processors and locality domains. If spu is the last processor in its current processor set, the behavior of is dependent on the value of the attribute. The following attribute values are defined for this attribute: Assign the processor to the specified processor set, and migrate all threads and processes to the system default processor set, This is the default behavior. If the threads and processes being migrated to the system default processor set (pset) have binding to processor or locality domain, their binding is reassigned to another processor or locality domain in the system default processor set. Make the request fail if there are active threads and processes assigned to the processor set. Security Restrictions Some or all of the actions associated with this system call require the privilege. Processes owned by the superuser have this privilege. Processes owned by other users may have this privilege, depending on system configuration. See privileges(5) for more information about privileged access on systems that support fine-grained privileges. Note on Logical Processor and Hyper-Threading Feature On systems with the Hyper-Threading (HT) feature enabled at the firmware, each hyper-thread is represented as a logical processor (LCPU). For migration of a logical processor in a processor core may also migrate that logical processor's sibling logical processor, which belongs to the same physical processor core. Otherwise the resulting configuration would violate the processor set contract, which specifies that applications bound to a processor set have complete and exclusive control of all processor cores within that processor set. When a processor core is assigned to another pset, depending on the source and target processor sets' (see pset_setattr(2)) value, the num- ber of logical processors from that processor core may change. EXAMPLES
Reassign spu from its current processor set to new_pset, and retrieve the current processor set in old_pset. RETURN VALUE
returns zero on successful completion. Otherwise, -1 is returned and is set to indicate the error. ERRORS
fails if one or more of the following is true: The processor set currently assigned to the processor spu has active threads and processes, and the processor set attributes do not allow this operation. The memory location pointed to by opset is not writable by the user. The operation was interrupted. The processor spu or processor set pset is not valid. The spu is not enabled. The memory location pointed to by opset is and the operation is requested. The processor set functionality is not supported by the underlying HP-UX version. The user does not have necessary permissions to assign spu to pset. SEE ALSO
mpctl(2), pset_bind(2), pset_create(2), pset_ctl(2), pset_destroy(2), pset_getattr(2), pset_setattr(2), privgrp(4), privileges(5). pset_assign(2)
All times are GMT -4. The time now is 12:34 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy