[Swift-commit] r4417 - trunk/libexec/log-processing

ketan at ci.uchicago.edu ketan at ci.uchicago.edu
Mon Apr 25 17:35:37 CDT 2011


Author: ketan
Date: 2011-04-25 17:35:37 -0500 (Mon, 25 Apr 2011)
New Revision: 4417

Added:
   trunk/libexec/log-processing/minmem
Log:
added minmem: a log processing script that checks the oom.log and reports the minimum the memory went during a run

Added: trunk/libexec/log-processing/minmem
===================================================================
--- trunk/libexec/log-processing/minmem	                        (rev 0)
+++ trunk/libexec/log-processing/minmem	2011-04-25 22:35:37 UTC (rev 4417)
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+#usage: ./minmem path/to/oom.log
+
+if [ $# -ne 1  ]
+then
+echo "usage: $0 /path/to/oom.log"
+fi
+
+minmem=4000
+for mem in `cat $1 | cut -d" " -f 10`
+do
+ if [ $mem -le $minmem ]
+ then
+  minmem=$mem
+ fi
+done
+echo $minmem


Property changes on: trunk/libexec/log-processing/minmem
___________________________________________________________________
Name: svn:executable
   + *




More information about the Swift-commit mailing list