Skip to content

Commit

Permalink
io depth fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
esmaeilmirvakili committed Aug 24, 2020
1 parent 3741bcb commit 47edea3
Show file tree
Hide file tree
Showing 9 changed files with 2,193 additions and 230 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
venv
__pycache__
.ipynb_checkpoints
.idea
*.pkl
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion .idea/radossim.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1,985 changes: 1,985 additions & 0 deletions experiments/codelTests/codel_experiments.ipynb

Large diffs are not rendered by default.

84 changes: 0 additions & 84 deletions experiments/latModel/latModelValidation.ipynb

This file was deleted.

12 changes: 6 additions & 6 deletions scripts/optimization.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def __init__(self, optimizationMethod, model, time):

def runSimulationAndCalculateError(self, paramList):
targetLat, interval = paramList
throughput, osdQueueLen = radossim.runSimulation(self.model, targetLat=targetLat, measInterval=interval, time=self.time)
throughput, osdQueueLen, _, _ = radossim.runSimulation(self.model, targetLat=targetLat, measInterval=interval, time=self.time)
return self.error(throughput, osdQueueLen)

def error(self, throughput, osdQueueLen):
Expand All @@ -28,8 +28,8 @@ def error(self, throughput, osdQueueLen):
print(f'Error for ({throughput}, {osdQueueLen}): {osdQLenError + throughputError}')
return osdQLenError + throughputError

def optimize(self, targetLatStartPoint, intervalBoundsStartPoint, targetLatBounds=(500, 5000), intervalBounds=(1000, 200000)):
throughput, _ = radossim.runSimulation(self.model, targetLat=targetLat, measInterval=interval,
def optimize(self, targetLatStartPoint, intervalBoundsStartPoint, targetLatBounds=(50, 5000), intervalBounds=(100, 100000)):
throughput, _, _, _ = radossim.runSimulation(self.model, targetLat=targetLat, measInterval=interval,
time=self.time, useCoDel=False)
self.originalThroughput = throughput
print(f'Original Throughput: {self.originalThroughput} B/s')
Expand All @@ -49,9 +49,9 @@ def optimize(self, targetLatStartPoint, intervalBoundsStartPoint, targetLatBound
help='filepath of latency model (default "latency_model_4K.yaml")'
)
args = parser.parse_args()
targetLat = 1000
interval = 50000
time = 5 * 60 * 1_000_000 # 5 mins
targetLat = 100
interval = 1000
time = 10 * 1_000_000 # 5 mins
optimizer = Optimizer('L-BFGS-B', args.model, time)
res = optimizer.optimize(targetLat, interval)
print(res)
Loading

0 comments on commit 47edea3

Please sign in to comment.