How to tell if a RamDisk is being used as expected

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Matthew.Cary
Posts: 32
Joined: Fri Nov 10, 2017 11:43 am

How to tell if a RamDisk is being used as expected

Post by Matthew.Cary »

My Org is running XI on a single node with 1000 Hosts & 9500 Services and want to make sure we are following all the performance optimization best practices.

We have setup a RAMDisk per the XI Documentation and set it to 500M, but when we look out at the RamDisk from the OS it only shows it using 25M of space.

Is this expected? How much space should we expect files to take up on this disk?
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: How to tell if a RamDisk is being used as expected

Post by Box293 »

Normally a ramdisk shouldn't use that much space as the intended use is for temporary files to be written / deleted very quickly.

Exactly how much space being used totally depends on many factors.

If you look at the documentation https://assets.nagios.com/downloads/nag ... giosXI.pdf it lists the directories / files that should exist in specific locations. Check these files to asses their sizes and make a judgement from there.

Once you have a baseline on "normal usage" then you could implement a disk space check to ensure the ramdisk doesn't exceed this usage. If it does then something is wrong and hopefully you'll catch it before it becomes an issue.

Does this help?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Matthew.Cary
Posts: 32
Joined: Fri Nov 10, 2017 11:43 am

Re: How to tell if a RamDisk is being used as expected

Post by Matthew.Cary »

I'm not sure.
So if I understand you the file usage is transient & it may be normal for us to only be using 5% of our Ramdisk?

I'll take your advice and set a disk monitor to try to get some history on this. That may help me understand this better.

Does it make sense to move MRTG files to the Ramdisk? or is that a bad idea?
User avatar
tacolover101
Posts: 432
Joined: Mon Apr 10, 2017 11:55 am

Re: How to tell if a RamDisk is being used as expected

Post by tacolover101 »

yes, it is all pending how much files are in the folders @Box293 mentioned.

you could move mrtg files - a better question is, do you need to.

moving files to ramdisk will help by improving performance. typically, files that are accessed a lot with r/w make good candidates as the IO performance will improve greatly.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: How to tell if a RamDisk is being used as expected

Post by tgriep »

That is correct, files are created on the Ramdisk, processes and removed very quickly and it is not used to store files on a permanent basis.
The largest files on the ramdisk are the objects.cache and the status.dat and the size of those are determined by the number of checks.

I would not move the MRTG files to the ramdisk as they are used in the Bandwidth Usage report.
By nature, the files are stored in ram so if you reboot, they are gone forever.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked