Locality-Optimized Resource Alignment for Superdome 2

18
Using mpsched to enforce good alignment for Java
HP-UX is usually able to achieve good alignment when running Java. Here are some guidelines for
explicit tunes to enforce good alignment when running multiple instances of the Java virtual machine.
We will assume that each Java instance is small enough in terms of processor and memory resources
to fit into a single locality. It is best to subdivide the Java instance if it exceeds the capacity of a
single locality.
Use the command mpsched –s to determine the number of localities in the partition and the locality
identifier corresponding to each locality. It is usually not necessary to use any launch policy if there
are fewer than three localities in the partition. If there are many localities, use commands similar to
the following to launch Java, distributing the Java virtual machines instances evenly across two
localities:
mpsched l 2 java
mpsched l 2 java
mpsched l 3 java
mpsched l 3 java
Since Java is highly threaded, it may be beneficial to set the numa_policy parameter to 3.