The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > HP-UX
Google UNIX.COM


HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
No: of processors bishweshwar UNIX for Advanced & Expert Users 3 11-14-2006 03:38 AM
Multicore from a different angle Midcain HP-UX 7 12-08-2005 03:46 PM
number of processors csaunders HP-UX 1 02-12-2004 01:22 PM
Dual processors jwbrown UNIX for Dummies Questions & Answers 3 05-30-2001 11:40 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 11-30-2005
Registered User
 

Join Date: Nov 2005
Posts: 25
How do I detect multicore processors?

I'm fairly new to HP-UX, and I need to know how to identify the number of cores on a PA-8800 processor from the command line. Any help here would be appreciated.
Reply With Quote
Forum Sponsor
  #2  
Old 12-08-2005
Registered User
 

Join Date: Nov 2005
Location: Arizona
Posts: 82
All 8800's are dual core.
Reply With Quote
  #3  
Old 12-08-2005
Registered User
 

Join Date: Nov 2005
Location: Arizona
Posts: 82
So run top and divide by two for the number of dual core processors you have.
Or there are other various fancy ways to do this etc
/etc/ioscan -k -C processor | grep processor | wc -l
There are easily 10 ways to find this out, and thousands of ways to format the info etc.
Best Regards,
Aaron
Reply With Quote
  #4  
Old 12-08-2005
Registered User
 

Join Date: Nov 2005
Posts: 25
Wouldn't work . . .

Dividing by two would indeed solve the problem -- right up until HP moved to quad-core, or introduced a technology similar to Hyper-Threading. And if I happen to be running on a single-core system with only one processor, suddenly my script is only detecting half a processor.

Nice try, but it isn't as simple as it looks at first glance.
Reply With Quote
  #5  
Old 12-08-2005
Registered User
 

Join Date: Nov 2005
Location: Arizona
Posts: 82
Did you even try the ioscan command? It had nothing to do with the top comment.
Reply With Quote
  #6  
Old 12-13-2005
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,667
ioscan does not seem to help. However I do notice that dualcore cpu's seem to have the same serial number if they are in the same chip. But there are several serial number fields and you need to get the right one. Try:

echo "scl q cpu;info;wait;infolog" | cstm | grep -E "CPU on path|^Serial Number"
Reply With Quote
  #7  
Old 12-13-2005
Registered User
 

Join Date: Nov 2005
Posts: 25
Whoa, you lost me around "cstm". What version of HP-UX are you running? I can't even find a manpage to tell me what the command does.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 04:38 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0