Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-orbit
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Katerina Roukounaki
cloud-orbit
Commits
2597ba17
Commit
2597ba17
authored
Jan 14, 2015
by
Aggelos Giantsios
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Script to run the sequential orbit
parent
b7b263c5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
2 deletions
+28
-2
runner.py
runner.py
+3
-2
seq.py
seq.py
+25
-0
No files found.
runner.py
View file @
2597ba17
...
...
@@ -25,7 +25,7 @@ def run_dist(master, slaves, version, workers, iwp):
reps
=
2
iwp
=
False
max_cpu
=
16
versions
=
[
"short"
,
"intermediate"
,
"long"
]
versions
=
[
"short"
]
master
=
{
"host"
:
"127.0.0.1"
,
"port"
:
5050
}
slaves
=
[
{
"host"
:
"127.0.0.1"
,
"port"
:
5051
}
,
{
"host"
:
"127.0.0.1"
,
"port"
:
5052
}
...
...
@@ -44,7 +44,8 @@ f = open('statistics.txt', 'w')
for
nSlaves
in
range
(
1
,
len
(
slaves
)
+
1
):
for
iwp
in
[
False
,
True
]:
for
vsn
in
versions
:
for
n
in
range
(
2
,
2
*
max_cpu
+
1
,
2
):
# for n in range(2, 2*max_cpu+1, 2):
n
=
nSlaves
slvs
=
slaves
[
0
:
nSlaves
]
print
(
"Slaves:
%
s, Workers:
%
s, Version:
%
s, IWP:
%
s"
%
(
nSlaves
,
n
,
vsn
,
iwp
),
file
=
f
)
ts
=
[]
...
...
seq.py
0 → 100755
View file @
2597ba17
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import
subprocess
,
time
reps
=
1
versions
=
[
"short"
,
"intermediate"
,
"long"
]
node
=
{
"host"
:
"127.0.0.1"
,
"port"
:
5050
}
print
"Sequential Orbit"
print
"----------------------------------------------------------------------"
print
"Versions:
%
s"
%
versions
print
"Repetitions per Configuration:
%
s"
%
reps
print
"Node @
%
s"
%
node
print
"======================================================================"
for
vsn
in
versions
:
for
rep
in
range
(
reps
):
print
"Version:
%
s, Execution:
%
s"
%
(
vsn
,
rep
)
t1
=
time
.
time
()
cmd
=
"./orbit seq
%
s
%
s
%
s > /dev/null"
%
(
vsn
,
node
[
"host"
],
node
[
"port"
])
p
=
subprocess
.
Popen
(
cmd
,
shell
=
True
)
p
.
wait
()
t2
=
time
.
time
()
print
"
%
s sec(s)"
%
(
t2
-
t1
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment