rajib
01-24-2009, 01:16 AM
As many of our users have noticed, the "Physical Memory Usage" test on Linux (monitored using NET-SNMP agent) often returns a high value like 98%. This is due to the fact that Linux uses available memory for I/O cache. The cached memory is released when an application needs it. While this provides improved I/O performance (ever wonder why the second 'find' command is much faster than the first one :-) it can create confusion and false alarms in Traverse.
Fortunately, you can use the Composite Monitor to work around this issue. Here are the steps that you will need to follow to create a new test the reflects the true memory utilization:
Step 1: Rename Existing Memory Usage Test
- Navigate to Administration -> Devices
- Locate the device in question and click on "Tests"
- Locate the "Physical Memory Usage" and click on modify icon
- Change the test name to "Total Memory Usage"
- Change warning and critical thresholds to 100
- Take note of the "Maximum Value" parameter; we will need this for the next step
- Click on "Submit"
Step 2: Monitor Cached Memory Usage
- Navigate to Administration -> Devices
- Locate the device in question and click on "Tests"
- Click on "Create New Advanced Tests"
- Enable "Advanced SNMP Test" and set following parameters:
Test Name : I/O Cache Memory Usage
Warning Threshold : 100
Critical Threshold : 100
SNMP Object ID : .1.3.6.1.4.1.2021.4.15.0
Maximum Value : (maximum value from previous step)
Post Processing Directive : Percent
Test Units : %
As test value rises, severity: Ascends
Monitor Instance: Use Existing
- Click on "Provision Tests"
Step 3: Calculate Real Memory Utilization
- Navigate to Administration -> Devices
- Locate the device in question and click on "Tests"
- Click on "Create New Advanced Tests"
- Enable "Composite Test" and set following parameters:
Test Name : Physical Memory Usage
Warning Threshold : 85
Critical Threshold : 95
- Click on "Add" (Child Tests)
- From the pop-up, select "I/O Cache Memory Usage" and "Total Memory Usage"
- Click on "Add Tests" (pop-up closes)
- In "Expression" field, enter "T1 - T2" (w/o the quotes) where T1 is "Total Memory Usage"
- Click on "Provision Tests"
Now navigate to Status -> Devices and drill-down into the device in question. Within a few minutes, you should see the correct memory utilization (without the portion used by I/O cache) reflected in the (composite) "Physical Memory Utilization" test.
Fortunately, you can use the Composite Monitor to work around this issue. Here are the steps that you will need to follow to create a new test the reflects the true memory utilization:
Step 1: Rename Existing Memory Usage Test
- Navigate to Administration -> Devices
- Locate the device in question and click on "Tests"
- Locate the "Physical Memory Usage" and click on modify icon
- Change the test name to "Total Memory Usage"
- Change warning and critical thresholds to 100
- Take note of the "Maximum Value" parameter; we will need this for the next step
- Click on "Submit"
Step 2: Monitor Cached Memory Usage
- Navigate to Administration -> Devices
- Locate the device in question and click on "Tests"
- Click on "Create New Advanced Tests"
- Enable "Advanced SNMP Test" and set following parameters:
Test Name : I/O Cache Memory Usage
Warning Threshold : 100
Critical Threshold : 100
SNMP Object ID : .1.3.6.1.4.1.2021.4.15.0
Maximum Value : (maximum value from previous step)
Post Processing Directive : Percent
Test Units : %
As test value rises, severity: Ascends
Monitor Instance: Use Existing
- Click on "Provision Tests"
Step 3: Calculate Real Memory Utilization
- Navigate to Administration -> Devices
- Locate the device in question and click on "Tests"
- Click on "Create New Advanced Tests"
- Enable "Composite Test" and set following parameters:
Test Name : Physical Memory Usage
Warning Threshold : 85
Critical Threshold : 95
- Click on "Add" (Child Tests)
- From the pop-up, select "I/O Cache Memory Usage" and "Total Memory Usage"
- Click on "Add Tests" (pop-up closes)
- In "Expression" field, enter "T1 - T2" (w/o the quotes) where T1 is "Total Memory Usage"
- Click on "Provision Tests"
Now navigate to Status -> Devices and drill-down into the device in question. Within a few minutes, you should see the correct memory utilization (without the portion used by I/O cache) reflected in the (composite) "Physical Memory Utilization" test.