run memory_tracker as root
In order to get memlocked pages this needs to be run as root, just start it as root so that we don't have issues with the inability to run sudo later in the run. Change-Id: I7adab8cbb6d89d4717e427aec22e316d27bea075
This commit is contained in:
parent
d18d7c8658
commit
5ae945244e
@ -24,12 +24,12 @@ function start_dstat {
|
||||
# To enable memory_tracker add:
|
||||
# enable_service memory_tracker
|
||||
# to your localrc
|
||||
run_process memory_tracker "$TOP_DIR/tools/memory_tracker.sh"
|
||||
run_process memory_tracker "sudo $TOP_DIR/tools/memory_tracker.sh"
|
||||
|
||||
# remove support for the old name when it's no longer used (sometime in Queens)
|
||||
if is_service_enabled peakmem_tracker; then
|
||||
deprecated "Use of peakmem_tracker in devstack is deprecated, use memory_tracker instead"
|
||||
run_process peakmem_tracker "$TOP_DIR/tools/memory_tracker.sh"
|
||||
run_process peakmem_tracker "sudo $TOP_DIR/tools/memory_tracker.sh"
|
||||
fi
|
||||
}
|
||||
|
||||
|
@ -86,7 +86,7 @@ function tracker {
|
||||
# list processes that lock memory from swap
|
||||
if [[ $unevictable -ne $unevictable_point ]]; then
|
||||
unevictable_point=$unevictable
|
||||
sudo ./tools/mlock_report.py
|
||||
./tools/mlock_report.py
|
||||
fi
|
||||
|
||||
echo "]]]"
|
||||
|
Loading…
Reference in New Issue
Block a user