![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V. |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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.
|
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
All 8800's are dual core.
|
|
#3
|
|||
|
|||
|
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 |
|
#4
|
|||
|
|||
|
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. |
|
#5
|
|||
|
|||
|
Did you even try the ioscan command? It had nothing to do with the top comment.
|
|
#6
|
||||
|
||||
|
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" |
|
#7
|
|||
|
|||
|
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.
|
|||
| Google The UNIX and Linux Forums |