Example:
you have a node of the cluster with 4 application server on AIX box with 4 processor and you want to assign 1 processor to each java process.
# prtconf | grep Processor
Processor Type: PowerPC_POWER7
Processor Implementation Mode: POWER 7
Processor Version: PV_7_Compat
Number Of Processors: 4
Processor Clock Speed: 3300 MHz
Model Implementation: Multiple Processor, PCI bus
+ proc0 Processor
+ proc4 Processor
+ proc8 Processor
+ proc12 Processor
SMT is the the Simultaneous Multithreading Mode. Running the command smtctl output below it shows each core (Processor) can run 4 threads, so each Processor has like 4 "virtual" core (Processor):
#smtctl
This system is SMT capable.
This system supports up to 4 SMT threads per processor.
...
proc0 has 4 SMT threads.
Bind processor 0 is bound with proc0
Bind processor 1 is bound with proc0
Bind processor 2 is bound with proc0
Bind processor 3 is bound with proc0
Then the commands to assign CORE-JVM:
#execrset -F -c 0-3 -e AppServer_dir/profiles/profileName/bin/startServer.sh server1
#execrset -F -c 4-7 -e AppServer_dir/profiles/profileName/bin/startServer.sh server2#execrset -F -c 8-11 -e AppServer_dir/profiles/profileName/bin/startServer.sh server3
#execrset -F -c 12-15 -e AppServer_dir/profiles/profileName/bin/startServer.sh server4
Terminology of IBM core:
http://www-01.ibm.com/software/passportadvantage/pvu_terminology_for_customers.html
Other commands to get useful information on processors:
lparstat -i
topas -C
mpstat
Nessun commento:
Posta un commento