Guest User

Untitled

a guest
Jul 16th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. Traceback (most recent call last):
  2. File "run1.py", line 44, in <module>
  3. bl = list(bl_trees)
  4. File "/home/zal/.local/lib/python3.5/site-packages/multiprocess/pool.py", line 731, in next
  5. raise value
  6. IndexError: list index out of range
  7.  
  8. i = 0
  9. for workload in workloads:
  10. print(workload)
  11. for M, dM in [(1000, 50)]:
  12. print(M, dM)
  13.  
  14. try:
  15. print("Baseline.")
  16. bl_trees = LSMulator.cache_vs_bloom_vs_buf_threaded(workload, M, dM=dM, balloc=baseline_assignment, verbose=True)
  17. bl = list(bl_trees)
  18. for t in bl:
  19. t.clear_data()
  20. with open('./results-{}-{}-{}-{}.pkl'.format(str(workload), M, dM, "bl"), 'wb') as f:
  21. pickle.dump((str(workload), M, dM, bl), f)
  22. except Exception as ex:
  23. traceback.print_exc()
  24.  
  25. try:
  26. print("Monkey.")
  27. mk_trees = LSMulator.cache_vs_bloom_vs_buf_threaded(workload, M, dM=dM, balloc=monkey_assignment, verbose=True)
  28. mk = list(mk_trees)
  29. for t in mk:
  30. t.clear_data()
  31. with open('./results-{}-{}-{}-{}.pkl'.format(str(workload), M, dM, "mk"), 'wb') as f:
  32. pickle.dump((str(workload), M, dM, mk), f)
  33. except Exception as ex:
  34. traceback.print_exc()
  35.  
  36. i += 1
Add Comment
Please, Sign In to add comment