From 3555b48ff45a109e6456923d597fa174084387ab Mon Sep 17 00:00:00 2001 From: Federico Ressi Date: Fri, 24 Jan 2020 06:49:03 +0100 Subject: [PATCH] Switch to python3 for memory_peak service When starting 'memory_peak' service is using python command instead of python3, while psutil (required package) is most probably being installed into the python3 environment (as we are dropping python2.7 support). Closes-Bug: #1860753 Change-Id: Ia2b7e2e33d784560443131e2965f520b361a54e3 --- tools/memory_tracker.sh | 2 +- tools/mlock_report.py | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) mode change 100755 => 100644 tools/mlock_report.py diff --git a/tools/memory_tracker.sh b/tools/memory_tracker.sh index 63f25ca2de..6c36534f01 100755 --- a/tools/memory_tracker.sh +++ b/tools/memory_tracker.sh @@ -14,7 +14,7 @@ set -o errexit -PYTHON=${PYTHON:-python} +PYTHON=${PYTHON:-python3} # time to sleep between checks SLEEP_TIME=20 diff --git a/tools/mlock_report.py b/tools/mlock_report.py old mode 100755 new mode 100644 index 07716b04d6..b15a0bf80b --- a/tools/mlock_report.py +++ b/tools/mlock_report.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python - # This tool lists processes that lock memory pages from swapping to disk. import re