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:
- Create a directory to mount the xpram device
mkdir /db2logs_xpram
- Change the permissions of the directory so that data can be written to
it
chmod 777 /db2logs_xpram
- 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
- Run /etc/rc.local
- 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.