[CalendarServer-changes] [6203] CalendarServer/trunk/contrib/performance
source_changes at macosforge.org
source_changes at macosforge.org
Mon Aug 30 09:30:54 PDT 2010
Revision: 6203
http://trac.macosforge.org/projects/calendarserver/changeset/6203
Author: exarkun at twistedmatrix.com
Date: 2010-08-30 09:30:52 -0700 (Mon, 30 Aug 2010)
Log Message:
-----------
Push the sudo into sample.sh; this way everything in benchmark.py runs privileged and nothing in sample.sh (such as for example CalendarServer) does
Modified Paths:
--------------
CalendarServer/trunk/contrib/performance/benchmark.py
CalendarServer/trunk/contrib/performance/sample.sh
Modified: CalendarServer/trunk/contrib/performance/benchmark.py
===================================================================
--- CalendarServer/trunk/contrib/performance/benchmark.py 2010-08-30 14:51:59 UTC (rev 6202)
+++ CalendarServer/trunk/contrib/performance/benchmark.py 2010-08-30 16:30:52 UTC (rev 6203)
@@ -190,9 +190,7 @@
proto = IOMeasureConsumer(started, stopped, _DTraceParser(self))
process = reactor.spawnProcess(
proto,
- "/usr/bin/sudo",
- ["/usr/bin/sudo",
- "/usr/sbin/dtrace",
+ ["/usr/sbin/dtrace",
# process preprocessor macros
"-C",
# search for include targets in the source directory containing this file
@@ -305,6 +303,7 @@
raise UsageError("Specify at least one benchmark")
+
def main():
from twisted.python.log import err
Modified: CalendarServer/trunk/contrib/performance/sample.sh
===================================================================
--- CalendarServer/trunk/contrib/performance/sample.sh 2010-08-30 14:51:59 UTC (rev 6202)
+++ CalendarServer/trunk/contrib/performance/sample.sh 2010-08-30 16:30:52 UTC (rev 6203)
@@ -32,7 +32,7 @@
./run -d -n
sleep 5
popd
- ./benchmark --label r$REV-$backend --log-directory $LOGS $BENCHMARKS
+ sudo ./benchmark --label r$REV-$backend --log-directory $LOGS $BENCHMARKS
data=`echo -n r$REV-$backend*`
for p in 1 9 81; do
for b in $BENCHMARKS; do
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100830/1c44c984/attachment.html>
More information about the calendarserver-changes
mailing list