From dea3083d984569eac9647f1a28f10ae98afc42f7 Mon Sep 17 00:00:00 2001 From: Vasyl Saienko Date: Tue, 1 Aug 2017 00:16:51 +0300 Subject: [PATCH] Fix path to mlock_report This patch fixes path to mlock_report.py. Also add python-psutil to dstat depends as it is required by mlock_report. Change-Id: Ia2b507a7b923f1e3393a9cb7746c66d39d6abfde --- files/debs/dstat | 1 + files/rpms/dstat | 1 + tools/memory_tracker.sh | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/files/debs/dstat b/files/debs/dstat index 2b643b8b1b..0d9da4434f 100644 --- a/files/debs/dstat +++ b/files/debs/dstat @@ -1 +1,2 @@ dstat +python-psutil diff --git a/files/rpms/dstat b/files/rpms/dstat index 2b643b8b1b..0d9da4434f 100644 --- a/files/rpms/dstat +++ b/files/rpms/dstat @@ -1 +1,2 @@ dstat +python-psutil diff --git a/tools/memory_tracker.sh b/tools/memory_tracker.sh index cbdeb8f420..63f25ca2de 100755 --- a/tools/memory_tracker.sh +++ b/tools/memory_tracker.sh @@ -88,7 +88,7 @@ function tracker { # list processes that lock memory from swap if [[ $unevictable -ne $unevictable_point ]]; then unevictable_point=$unevictable - ${PYTHON} ./tools/mlock_report.py + ${PYTHON} $(dirname $0)/mlock_report.py fi echo "]]]"