The AIX mkramdisk command allows system administrators to create memory-resident file systems. The performance benefits of using RAM disk can be astonishing. The unload of a large TSM database was reduced from 40 hours on SAN disks down to 10 minutes using RAM disk.
The configuration of a RAM disk file system is very simple and takes just a few minutes. Once the file system is mounted, it can be used like any other file system. There are three steps involved: creating the RAM disk, making the file system and then mounting the file system.
First, we create the RAM disk, specifying the size we want. Let's create a RAM disk of 4 GB:
# mkramdisk 4GThe system will assign the next available RAM disk. Since this is our first one, it will be assigned the name ramdisk0:
If there isn't sufficient available memory to create the RAM disk you have requested, the mkramdisk command will alert you. Free up some memory or create a smaller size RAM disk. You can use Dynamic LPAR on the HMC or IVM to assign more memory to your partition.# ls -l /dev/ram* brw------- 1 root system 46, 0 Sep 22 08:01 /dev/ramdisk0
We could use the RAM disk /dev/ramdisk0 as a raw logical volume, but here we
If you found this useful, here's more on the same topic(s) in our blog:
- Proper vmstat output
- System administration best practices
- Proper vmstat output
- Resolving IBM.DRM software errors
- Howto setup AIX 'boot debugger'
UNIX Health Check delivers software to scan Linux and AIX systems for potential issues. Run our software on your system, and receive a report in just a few minutes. UNIX Health Check is an automated check list. It will report on perfomance, capacity, stability and security issues. It will alert on configurations that can be improved per best practices, or items that should be improved per audit guidelines. A report will be generated in the format you wish, and the report includes the issues discovered and information on how to solve the issues as well.
Interested in learning more?
Interested in learning more?



