HP-UX: Customize the kernel

This topic provides information on customizing the HP-UX kernel, and how to:

  • Modify the message queue depth
  • Modify the number of files used by a process

Modify the message queue depth

By default, HP-UX only allows a maximum of 256 unread messages to transit in a message queue. To customize this information, increase the value of the msgtql kernel parameter to 8192.

To customize the message queue:

  1. Log in as the root and enter the sam command.
  2. Select the following sub-menus, respectively:
    • Kernel Configuration
    • Configurable Parameters
  3. Set the pointer to the msgtql parameter.
  4. Select the Modify Configurable Parameter option in the Actions menu.
  5. Enter the new value of this parameter.
  6. Click on OK to confirm the change.
  7. Select the Add Exported File System option in the Actions menu.
  8. Select the Exit option in the File menu.
  9. Select the Create a new kernel now option and click on OK to confirm your selection.

Modify the number of files used by a process

By default, HP-UX allows a process to open only 64 files. To customize this information, increase the value of the maxfiles kernel parameter to 1024. To do so:

  1. Log in as the root and enter the sam command.
  2. Select the following sub-menus:
    • Kernel Configuration
    • Configurable Parameters
  3. Set the pointer to the maxfiles parameter.
  4. Select the Modify Configurable Parameter option in the Actions menu.
  5. Enter the new value for this parameter.
  6. Click on OK to confirm the change.
  7. Select the Add Exported File System option in the Actions menu.
  8. Select the Exit option in the File menu.
  9. Select the Create a new kernel now option and click on OK to confirm your selection.

Related Links