HP 9000 Containers A.03.01 on HP Integrity Server Administrator Guide HP-UX 11i v3 (5900-3112, June 2013)

/sbin commands) or under /var/opt/HP9000-Containers inside the container. These
can be copied back for testing.
For example,
$ cp -p /var/opt/HP9000-Containers/usr/sbin/<command> /usr/sbin
Use container rules to disallow execution. To allow execution of the command, remove the
entry of the command from the /opt/HP9000-Containers/config/
hp9000.disallowed.cmds file. Then run the $ setrules command.
If the recovered command works as expected inside the container, remove the entry for the command
from the /var/opt/HP9000-Containers/hp9000sys_delete_commands file inside the
container. Also, remove the entry from the files
/opt/HP9000-Containers/config/hp9000sys_delete_commands and
/opt/HP9000-Containers/config/hp9000.disallowed.cmds.
12.10 Performance tuning
This section discusses the options to tune HP 9000 containers for better performance.
12.10.1 Switching commands to Integrity native commands
If the application is script intensive, performance might be significantly hit when it is run inside an
HP 9000 container. This is because scripts are usually short living processes and have flat execution
profiles that do not suit emulation.
HP 9000 Containers provides an option to replace commonly used shells and commands with
Integrity native versions. The list of commands that are copied is available in the /opt/
HP9000-Containers/config/hp9000_switch_commands file.
To switch commands, run the following commands:
$ srp -stop <srp_name>
$ srp add <srp_name> -t cmdv3 -b
NOTE: After switching the commands, patching them inside the container is not supported. If the
files are overwritten as a result of patching, recover them manually. Also, when the commands are
patched on the host, the commands cannot be automatically copied into the container. You can
run the replace operation to copy all the latest commands again, but this requires container
downtime.
To copy the commands again, run the following commands:
$ srp -stop <srp_name>
$ srp replace <srp_name> -t cmdv3
To switch to HP 9000 commands, run the following commands:
$ srp -stop <srp_name>
$ srp delete <srp_name> -t cmdv3
12.10.2 Tuning ARIES emulation
Performance of certain applications can be improved by tuning ARIES. The ARIES configuration
parameters are specified in /.ariesrc for 32-bit applications and /.aries64rc for 64-bit
applications. The configuration files might also reside in the user home directory or application
directory, if required.
The following options are available for tuning ARIES emulation:
Enable trace scheduling:
84 HP 9000 Containers troubleshooting