[Swift-commit] r2278 - log-processing/libexec

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Sun Oct 5 21:47:05 CDT 2008


Author: benc
Date: 2008-10-05 21:47:04 -0500 (Sun, 05 Oct 2008)
New Revision: 2278

Added:
   log-processing/libexec/all-logs-active-jobsubmissions-count-graph
   log-processing/libexec/everylog-active-submissions.plot
Log:
script to plot every karajan ACTIVE JOB_SUBMISSION from a directory tree of log files

Added: log-processing/libexec/all-logs-active-jobsubmissions-count-graph
===================================================================
--- log-processing/libexec/all-logs-active-jobsubmissions-count-graph	                        (rev 0)
+++ log-processing/libexec/all-logs-active-jobsubmissions-count-graph	2008-10-06 02:47:04 UTC (rev 2278)
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+find /Users/benc/work/logs/ -type f -name \*.log -exec grep 'DEBUG TaskImpl Task(type=JOB_SUBMISSION, identity=' {} \; | grep 'setting status to Active' | ./iso-to-secs | cut -d ' ' -f 1 | sort -n | ./number-sites-list  > all-logs-active-tasks.data.1.tmp
+
+while read l r ; do
+  echo $(date -r $l +"%Y-%m-%d") $r
+done < all-logs-active-tasks.data.1.tmp > all-logs-active-tasks.data
+
+gnuplot everylog-active-submissions.plot
+


Property changes on: log-processing/libexec/all-logs-active-jobsubmissions-count-graph
___________________________________________________________________
Name: svn:executable
   + *

Added: log-processing/libexec/everylog-active-submissions.plot
===================================================================
--- log-processing/libexec/everylog-active-submissions.plot	                        (rev 0)
+++ log-processing/libexec/everylog-active-submissions.plot	2008-10-06 02:47:04 UTC (rev 2278)
@@ -0,0 +1,13 @@
+set terminal png
+set output 'all-logs-active-tasks.png'
+
+set ylabel 'cumulative invocations'
+set xlabel 'time (s)'
+
+set timefmt '%Y-%m-%d'
+set xdata time
+
+set key outside below
+
+plot 'all-logs-active-tasks.data' using 1:2 with lines
+




More information about the Swift-commit mailing list