summaryrefslogtreecommitdiffstats
path: root/tests/test_memory.py
diff options
context:
space:
mode:
authorndarshan <dnarayan@redhat.com>2015-03-24 11:57:01 +0530
committerSahina Bose <sabose@redhat.com>2015-04-28 00:00:36 -0700
commit76d76197c193dcc47478e6805dcfe5b569753e9e (patch)
treec01813695905bf82ee7e3de0878eaa8ecc60f83c /tests/test_memory.py
parent37e8b7b4c96e974968f74112bd7512d6f8856b7c (diff)
plugins: Deduct cached space from used space in memory utilization
This patch modifies memory utilization plugin to retrun memory used after deducting cached space from it. As this cached space can be got back by applications whenever needed. So we can consider cached space as free. Change-Id: I6e6b7d0fc8148065d806c735606e4605741534d4 Bug-Url: https://bugzilla.redhat.com/1204314 Signed-off-by: ndarshan <dnarayan@redhat.com> Reviewed-on: http://review.gluster.org/9977 Reviewed-by: Ramesh N <rnachimu@redhat.com> Reviewed-by: Sahina Bose <sabose@redhat.com>
Diffstat (limited to 'tests/test_memory.py')
-rw-r--r--tests/test_memory.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_memory.py b/tests/test_memory.py
index fb02b5b..f7f67d5 100644
--- a/tests/test_memory.py
+++ b/tests/test_memory.py
@@ -50,8 +50,8 @@ class memoryTests(TestCaseBase):
)
def _showMemStatus_warning_test(self):
- w = 40
- c = 60
+ w = 20
+ c = 30
actual = memory.showMemStat(
w, c,
test_memory_dataFile.SHOW_MEMORY_STATUS_WARNING_IP
@@ -62,8 +62,8 @@ class memoryTests(TestCaseBase):
)
def _showMemStatus_critical_test(self):
- w = 30
- c = 40
+ w = 10
+ c = 20
actual = memory.showMemStat(
w, c,
test_memory_dataFile.SHOW_MEMORY_STATUS_CRITICAL_IP