Merge "add dstat to see top process info"

This commit is contained in:
Jenkins 2014-02-12 17:27:12 +00:00 committed by Gerrit Code Review
commit cc3fcc8c8e
4 changed files with 15 additions and 0 deletions

1
files/apts/dstat Normal file
View File

@ -0,0 +1 @@
dstat

1
files/rpms-suse/dstat Normal file
View File

@ -0,0 +1 @@
dstat

1
files/rpms/dstat Normal file
View File

@ -0,0 +1 @@
dstat

View File

@ -298,6 +298,8 @@ SYSLOG_PORT=${SYSLOG_PORT:-516}
SYSSTAT_FILE=${SYSSTAT_FILE:-"sysstat.dat"}
SYSSTAT_INTERVAL=${SYSSTAT_INTERVAL:-"1"}
DSTAT_FILE=${DSTAT_FILE:-"dstat.txt"}
PIDSTAT_FILE=${PIDSTAT_FILE:-"pidstat.txt"}
PIDSTAT_INTERVAL=${PIDSTAT_INTERVAL:-"5"}
@ -879,6 +881,16 @@ if is_service_enabled sysstat; then
fi
fi
if is_service_enabled dstat; then
# Per-process stats
DSTAT_OPTS="-tcndylp --top-cpu-adv"
if [[ -n ${SCREEN_LOGDIR} ]]; then
screen_it dstat "cd $TOP_DIR; dstat $DSTAT_OPTS | tee $SCREEN_LOGDIR/$DSTAT_FILE"
else
screen_it dstat "dstat $DSTAT_OPTS"
fi
fi
if is_service_enabled pidstat; then
# Per-process stats
PIDSTAT_OPTS="-l -p ALL -T ALL"