Case study 28: How to grant MLOCK permission during async i/o settings
Platform: HP-UX 11
Sybase ASE version: All
Background story: In document describing preinstallation steps for Sybase on HP-UX, there is a paragraph saying this:
To optimize asynchronous I/O and to prevent the paging of shared memory, you must grant MLOCK permissions before you install Adaptive Server.
To grant MLOCK permissions to a group, enter:
/etc/privgrp add mlock
For someone who is not so experienced with UNIX-like systems, this could be a problem what should be done in order to follow this step. Here is more detailed explanation of this step.
Task: Describe the process of granting MLOCK permission in more details
Log in to the HP-UX machine as the root user.
Using any text editor, open the /etc/privgroup file, or create it if necessary.
Add or edit the following line, which begins with the name of the dba group(group in which user which is going to install Sybase exsists - usually sybase user), specifying the privilege MLOCK:
Note: You must use only one line to specify the privileges for a particular group in this file. If the file already contains a line for the dba group, then add the MLOCK privilege on the same line.
Save the file, and quit the text editor.
Enter the following command to grant the privileges to the dba group:
/usr/sbin/setprivgrp -f /etc/privgroup
Enter the following command to verify that the privileges are set correctly:
For more details, how async i/o could be turned on on Sybase, You can follow this Oracle (sic!) document .