Configuring the xpram device on RHEL

For one performance test, we configured the xpram device.

The steps we used to configure the xpram device on RHEL were:

  1. Create a directory to mount the xpram device

    mkdir /db2logs_xpram

  2. Change the permissions of the directory so that data can be written to it

    chmod 777 /db2logs_xpram

  3. Edit the file /etc/rc.local and add the following lines

    modprobe xpram devs=1

    mkfs.ext3 /dev/slram0

    sleep 1

    mount /dev/slram0 /db2logs_xpram

  4. Run /etc/rc.local
  5. Issue the df command to check if the xpram device was mounted correctly
    Filesystem    1K-blocks   Used   Available   Use%   Mounted on
    /dev/slram0     2064204  35880     1923468     2%   /db2logs xpram
    /dev/slram1     2064204  35880     1923468     2%   /db2data xpram

For the data files, we configured slram1 accordingly.