Enabling asynchronous disk I/O

For HP Tru64 UNIX

Enable asynchronous disk I/O.

This step is recommended for HP Tru64 users.

HP Tru64 automatically enables asynchronous I/O but, by default, limits the number of concurrent I/O requests to 64. If you expect that you need additional requests for your Adaptive Server installation, add the following lines to the /etc/sysconfigtab file:

rt:
aio-max-num=1024

To determine the current value of aio-maximum, enter:

/sbin/sysconfig -q -rt 

For HP-UX

Enable asynchronous disk I/O.

This step is mandatory for HP users.

To improve I/O performance on character or raw and block devices, enable asynchronous I/O by installing the HP asynchronous I/O driver from SAM. For help with installing this driver, contact your operating system administrator or HP technical support.

NoteBefore executing the following instructions, shut down Adaptive Server (or SQL Server).

To enable asynchronous I/O:

  1. From the SAM Kernel Configuration menu, choose Drivers and set the Pending State for asyncdisk to In by adding the driver.

    An alternate step could be done by adding the asyncdsk subsystem keyword to /stand/system.

  2. Rebuild the kernel, and reboot the system.

  3. Execute the following commands using the userid root:

    #/etc/mknod/dev/async c 101 4
    #chmod 0660/dev/async
    #chown <uid> /dev/async
    #/etc/setprivgrp <ugrp> MLOCK
    

    Where:

    <uid> is the identification (user ID)used by the user that is booting Adaptive Server.

    <ugrp> is the user group for the <uid> userid.

  4. At the UNIX prompt, execute the following statements as “root”. The user ID of the user who is starting Adaptive Server and Backup Server must be the owner of the /dev/async directory.

HP-UX 11.23

Enable asynchronous disk I/O.

This step is mandatory for HP users.

To improve I/O performance on character or raw block devices, enable asynchronous I/O by installing the HP asynchronous I/O driver from SAM. For help with installing this driver, contact your operating system administrator or HP technical support.

NoteBefore executing the following instructions, shut down Adaptive Server (or SQL Server).

  1. To launch the Kernel Configuration use kcweb -F.

  2. Select Modules.

  3. Select asyncdsk and change the next boot to static.

  4. Rebuild the kernel, and reboot the system.

  5. Execute the following commands using the userid root:

    #/etc/mknod/dev/async c 101 4
    #chmod 0660/dev/async
    #chown <uid> /dev/async
    #/etc/setprivgrp <ugrp> MLOCK
    

    Where:

    <uid> is the identification (user ID)used by the user that is booting Adaptive Server.

    <ugrp> is the user group for the sybase userid.

  6. At the UNIX prompt, execute the following statements as “root”. The user ID of the user who is starting Adaptive Server and Backup Server must be the owner of the /dev/async directory.

HP-UX on Itanium

To verify that the async I/O is active on the Itanium machine:

  1. Log in as root.

  2. Issue the command:

    # kcmodule -a l grep aync
    

    Result: asyncdsk static required

    or you can also use the following:

    # ls /dev/asyn*
    idev/async /dev/asyncdsk
    

For IBM AIX

Enable asynchronous disk I/O.

This step is mandatory for IBM users.

Enable asynchronous I/O by adjusting the kernel parameters, using the System Management Interface Tool (SMIT):

  1. Enter “smit” at the UNIX prompt.

  2. From the Devices menu, select Asynchronous I/O.

  3. Select Change/Show Characteristics of Asynchronous I/O.

  4. Enter the values from Table 3-2:

Table 3-2: SMIT parameters for asynchronous I/O

SMIT parameter

Values for RS/6000 AIX 4.3.3

MINIMUM number of servers

1

MAXIMUM number of servers

10

MAXIMUM number of REQUESTS I/O

4096

Server PRIORITY

39

ASYNC I/O STATE (to be configured at system restart)

Available

If your system uses more than seven disks at the same time for Asynchronous I/O, increase the MAXIMUM number of servers value by 1 for every active device.

NoteSetting the minor device number on /dev/async to 4 reduces or eliminates transient 605 errors in Adaptive Server.

If you are using LVM mirroring, set the minor device number to 0x0.

For Silicon Graphics IRIX

Silicon Graphics IRIX has two methods of executing asynchronous I/O: