Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

...

Info

The NMIS Self Test settings may need to be adjusted if the nmis8/var directory is running at a high rate of usage.  Look for the following attributes in nmis8/conf/Config.nmis:

  • 'selftest_min_diskfree_percent' => 10
  • 'selftest_min_diskfree_mb' => 25

 

Step #2 - Create the RAM disk

...

Info

When creating the RAM disk the size parameter may be a number expressed with the suffix k, m or g (kilo, mega, and giga).  It may also be expressed with the % sign.  For example if you'd like to allow the ramdisk to consume up to 25 percent of the available RAM the following technique could be used.


mount -t tmpfs -o size=25% tmpfs /media/ramdisk

Keep in mind that the ramdisk will not immediately consume the amount of RAM specified.   This is the most it will be allowed to consume should it need to.  Also keep in mind that if the RAM is oversubscribed the ramdisk could be pushed into swap.  If the ramdisk find's itself in swap space it defeats the purpose of this expedition, so do try to avoid this situation.

Info

If you find yourself in a situation where you need to resize the ramdisk on the fly the following method may be useful.

Code Block
# mount -o remount,size=4096M /media/ramdisk

This does not require a reboot and will preserve the files that reside on the ramdisk.

 

Use the df command to confirm that the ramdisk was created.

...