Permalink
Browse files

Tweak benchmark

  • Loading branch information...
NEMS Linux
NEMS Linux committed Nov 13, 2018
1 parent cbe7ca8 commit 066ddaf10b162a892b9fe5e9d568d59018938aa1
Showing with 12 additions and 2 deletions.
  1. +12 −2 benchmark.sh
  2. BIN test_file.0
  3. BIN test_file.1
  4. BIN test_file.10
  5. BIN test_file.100
  6. BIN test_file.101
  7. BIN test_file.102
  8. BIN test_file.103
  9. BIN test_file.104
  10. BIN test_file.105
  11. BIN test_file.106
  12. BIN test_file.107
  13. BIN test_file.108
  14. BIN test_file.109
  15. BIN test_file.11
  16. BIN test_file.110
  17. BIN test_file.111
  18. BIN test_file.112
  19. BIN test_file.113
  20. BIN test_file.114
  21. BIN test_file.115
  22. BIN test_file.116
  23. BIN test_file.117
  24. BIN test_file.118
  25. BIN test_file.119
  26. BIN test_file.12
  27. BIN test_file.120
  28. BIN test_file.121
  29. BIN test_file.122
  30. BIN test_file.123
  31. BIN test_file.124
  32. BIN test_file.125
  33. BIN test_file.126
  34. BIN test_file.127
  35. BIN test_file.13
  36. BIN test_file.14
  37. BIN test_file.15
  38. BIN test_file.16
  39. BIN test_file.17
  40. BIN test_file.18
  41. BIN test_file.19
  42. BIN test_file.2
  43. BIN test_file.20
  44. BIN test_file.21
  45. BIN test_file.22
  46. BIN test_file.23
  47. BIN test_file.24
  48. BIN test_file.25
  49. BIN test_file.26
  50. BIN test_file.27
  51. BIN test_file.28
  52. BIN test_file.29
  53. BIN test_file.3
  54. BIN test_file.30
  55. BIN test_file.31
  56. BIN test_file.32
  57. BIN test_file.33
  58. BIN test_file.34
  59. BIN test_file.35
  60. BIN test_file.36
  61. BIN test_file.37
  62. BIN test_file.38
  63. BIN test_file.39
  64. BIN test_file.4
  65. BIN test_file.40
  66. BIN test_file.41
  67. BIN test_file.42
  68. BIN test_file.43
  69. BIN test_file.44
  70. BIN test_file.45
  71. BIN test_file.46
  72. BIN test_file.47
  73. BIN test_file.48
  74. BIN test_file.49
  75. BIN test_file.5
  76. BIN test_file.50
  77. BIN test_file.51
  78. BIN test_file.52
  79. BIN test_file.53
  80. BIN test_file.54
  81. BIN test_file.55
  82. BIN test_file.56
  83. BIN test_file.57
  84. BIN test_file.58
  85. BIN test_file.59
  86. BIN test_file.6
  87. BIN test_file.60
  88. BIN test_file.61
  89. BIN test_file.62
  90. BIN test_file.63
  91. BIN test_file.64
  92. BIN test_file.65
  93. BIN test_file.66
  94. BIN test_file.67
  95. BIN test_file.68
  96. BIN test_file.69
  97. BIN test_file.7
  98. BIN test_file.70
  99. BIN test_file.71
  100. BIN test_file.72
  101. BIN test_file.73
  102. BIN test_file.74
  103. BIN test_file.75
  104. BIN test_file.76
  105. BIN test_file.77
  106. BIN test_file.78
  107. BIN test_file.79
  108. BIN test_file.8
  109. BIN test_file.80
  110. BIN test_file.81
  111. BIN test_file.82
  112. BIN test_file.83
  113. BIN test_file.84
  114. BIN test_file.85
  115. BIN test_file.86
  116. BIN test_file.87
  117. BIN test_file.88
  118. BIN test_file.89
  119. BIN test_file.9
  120. BIN test_file.90
  121. BIN test_file.91
  122. BIN test_file.92
  123. BIN test_file.93
  124. BIN test_file.94
  125. BIN test_file.95
  126. BIN test_file.96
  127. BIN test_file.97
  128. BIN test_file.98
  129. BIN test_file.99
@@ -1,15 +1,23 @@
#!/bin/bash
start=`date +%s`
plannedend=$(($start + 18000))
nemsinit=`/usr/local/bin/nems-info init`
if [[ $nemsinit == 0 ]]; then
echo "NEMS hasn't been initialized. Benchmark rejected."
exit
fi
# Set a runtime
if [[ -f /var/log/nems/benchmarks/runtime ]]; then
lastruntime=`cat /var/log/nems/benchmarks/runtime`
thisruntime=$(($lastruntime+120)) # +2 minutes from the last runtime
else
thisruntime=18000 # 10 minutes
fi
plannedend=$(($start + $thisruntime))
# Schedule downtime on CPU Load notifications for 5 hours during benchmarks
/usr/bin/printf "[%lu] SCHEDULE_SVC_DOWNTIME;NEMS;Current Load;$start;$plannedend;0;0;18000;NEMS Linux;Weekly Benchmarks Running\n" $start > /usr/local/nagios/var/rw/nagios.cmd
/usr/bin/printf "[%lu] SCHEDULE_SVC_DOWNTIME;NEMS;Current Load;$start;$plannedend;0;0;$thisruntime;NEMS Linux;Weekly Benchmarks Running\n" $start > /usr/local/nagios/var/rw/nagios.cmd
echo "NEMS System Benchmark... Please Wait (may take a while)."
@@ -86,6 +94,8 @@ end=`date +%s`
runtime=$((end-start))
echo "Benchmark of this benchmark: "$runtime" seconds" >> /tmp/nems-benchmark.log
echo $runtime > /var/log/nems/benchmarks/runtime
cat /tmp/nems-benchmark.log
rm /tmp/nems-benchmark.log
Oops, something went wrong.

0 comments on commit 066ddaf

Please sign in to comment.