[Swift-commit] r4017 - usertools/worker-profile
noreply at svn.ci.uchicago.edu
noreply at svn.ci.uchicago.edu
Thu Jan 20 10:37:15 CST 2011
Author: wozniak
Date: 2011-01-20 10:37:15 -0600 (Thu, 20 Jan 2011)
New Revision: 4017
Modified:
usertools/worker-profile/README.txt
usertools/worker-profile/worker_jobs.zsh
usertools/worker-profile/worker_jobs_lib.zsh
usertools/worker-profile/worker_jobs_sorted.zsh
usertools/worker-profile/worker_profile_util.zsh
Log:
More notes
Modified: usertools/worker-profile/README.txt
===================================================================
--- usertools/worker-profile/README.txt 2011-01-20 16:35:43 UTC (rev 4016)
+++ usertools/worker-profile/README.txt 2011-01-20 16:37:15 UTC (rev 4017)
@@ -17,9 +17,25 @@
Sorted output for the above.
+Example usage:
+
+ ~/swift_tools/worker-profile> ./worker_jobs_sorted.zsh out.data ~/worker.log
+
+ ~/swift_tools/worker-profile> ../plotter/lines.zsh jobs-meta.cfg tmp.eps out.data
+PLOTTED: tmp.eps
+
worker_profile_util.zsh:
Extracts the load over time for a given worker log.
Example output is at:
http://www.ci.uchicago.edu/wiki/bin/view/SWFT/WorkerProfile
+Example usage:
+
+ ~/swift_tools/worker-profile> ./worker_profile_util.zsh ~/worker.log out.data 1
+USAGE: 143.412
+TOTAL: 39.985
+UTIL: 3.587
+
+~/swift_tools/worker-profile> ../plotter/lines.zsh load-meta.cfg tmp.eps out.data
+PLOTTED: tmp.eps
Modified: usertools/worker-profile/worker_jobs.zsh
===================================================================
--- usertools/worker-profile/worker_jobs.zsh 2011-01-20 16:35:43 UTC (rev 4016)
+++ usertools/worker-profile/worker_jobs.zsh 2011-01-20 16:37:15 UTC (rev 4017)
@@ -2,6 +2,7 @@
# Lists worker job counts
# Uses worker_jobs_lib.zsh
+# usage: worker_jobs.zsh <RESULT> <LOGS>
if [[ ${#*} == 0 ]]
then
@@ -9,6 +10,9 @@
print "usage: worker_jobs.zsh <RESULT> <LOGS>"
fi
+RESULT=$1
+shift
+
PLOTS=$( dirname $0 )
TOOLS=${PLOTS}
Modified: usertools/worker-profile/worker_jobs_lib.zsh
===================================================================
--- usertools/worker-profile/worker_jobs_lib.zsh 2011-01-20 16:35:43 UTC (rev 4016)
+++ usertools/worker-profile/worker_jobs_lib.zsh 2011-01-20 16:37:15 UTC (rev 4017)
@@ -1,16 +1,15 @@
# Lists worker job counts from all given worker logs
# Should just require log level INFO
+# 3-column output: <ID> <JOB COUNT> <LOG>
worker_jobs()
{
if [[ ${#*} == 0 ]]
then
print "Lists worker job counts"
- print "usage: worker_jobs.zsh <RESULT> <LOGS>"
+ print "usage: worker_jobs <LOGS>"
fi
- RESULT=$1
- shift
LOGS=${*}
for LOG in ${LOGS}
do
Modified: usertools/worker-profile/worker_jobs_sorted.zsh
===================================================================
--- usertools/worker-profile/worker_jobs_sorted.zsh 2011-01-20 16:35:43 UTC (rev 4016)
+++ usertools/worker-profile/worker_jobs_sorted.zsh 2011-01-20 16:37:15 UTC (rev 4017)
@@ -3,6 +3,8 @@
# Lists worker job counts, sorted for plotting
# usage: worker_jobs_sorted.zsh <RESULT> <LOGS>
# The result is a tabular file compatible with plotter/lines.zsh
+# Note that the output contains comments, this is OK for lines.zsh
+# Output: <NUMBER> <JOB COUNT> # <ID> <LOG>
if [[ ${#*} == 0 ]]
then
Modified: usertools/worker-profile/worker_profile_util.zsh
===================================================================
--- usertools/worker-profile/worker_profile_util.zsh 2011-01-20 16:35:43 UTC (rev 4016)
+++ usertools/worker-profile/worker_profile_util.zsh 2011-01-20 16:37:15 UTC (rev 4017)
@@ -9,6 +9,7 @@
LOG=$1
DATA=$2
# If given, set the output data time granularity in seconds
+# (default 0.1)
GRANULARITY=${3:-0.1}
PLOTS=$( dirname $0 )
More information about the Swift-commit
mailing list