Skip to content
This repository was archived by the owner on Mar 11, 2019. It is now read-only.

Commit 545f8c5

Browse files
committed
fix(build): update jdk version for travis
1 parent 2179b48 commit 545f8c5

File tree

4 files changed

+51
-7
lines changed

4 files changed

+51
-7
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ scala:
2727
- 2.11.7
2828

2929
jdk:
30-
- openjdk7
30+
- oraclejdk8
3131

3232
# workaround for openjdk buffer overflow
3333
addons:

powerapi-core/src/main/scala/org/powerapi/module/disk/simple/DiskSimpleFormula.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,9 @@
2222
*/
2323
package org.powerapi.module.disk.simple
2424

25-
import java.time.Clock
2625
import java.util.UUID
2726

2827
import akka.actor.Actor
29-
import akka.event.LoggingReceive
3028
import org.joda.time.DateTime
3129
import org.powerapi.core.MessageBus
3230
import org.powerapi.core.target.Target

powerapi-core/src/main/scala/org/powerapi/reporter/InfluxDisplay.scala

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,9 @@
2222
*/
2323
package org.powerapi.reporter
2424

25-
import java.util.UUID
26-
2725
import com.paulgoldbaum.influxdbclient.Parameter.Precision
2826
import com.paulgoldbaum.influxdbclient.{InfluxDB, Point}
2927
import org.powerapi.PowerDisplay
30-
import org.powerapi.core.power.Power
31-
import org.powerapi.core.target.Target
3228
import org.powerapi.module.PowerChannel.AggregatePowerReport
3329

3430
/**

powerapi-core/src/test/resources/configuration-suite.conf

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ powerapi.procfs.process-path = "p4/%?pid"
2929
powerapi.sysfs.timeinstates-path = "p5"
3030
powerapi.sysfs.cgroup-sysfs-path = "p6"
3131
powerapi.procfs.disk-stats-path = "p7"
32+
powerapi.procfs.mounts-path = "p1/mounts"
3233
powerapi.cpu.tdp = 120
3334
powerapi.cpu.tdp-factor = 0.80
3435
powerapi.sigar.native-path = "./../external-libs/sigar-bin"
@@ -116,3 +117,52 @@ rapl.supported-architectures = [
116117
{id = 63, model = "Haswell-EP"}
117118
{id = 61, model = "Broadwell"}
118119
]
120+
121+
122+
powerapi.disk.formulae = [
123+
{ name = "sda",
124+
models = {
125+
read = [
126+
{ condition = "<= 78966784", coeffs = [ 0.00, 1.01e-07 ] }
127+
{ condition = "> 78966784", coeffs = [ 7.62, 1.72e-10 ] }
128+
],
129+
write = [
130+
{ condition = "<= 66674688", coeffs = [ 0.00, 1.13e-07 ] }
131+
{ condition = "> 66674688", coeffs = [ 8.33, 1.79e-09 ] }
132+
]
133+
}
134+
}
135+
136+
{ name = "sdb",
137+
models = {
138+
read = [
139+
{ condition = "<= 10", coeffs = [ 0.00, 0.003 ] }
140+
{ condition = "> 10", coeffs = [ 2, 0.15 ] }
141+
],
142+
write = [
143+
{ condition = "<= 5", coeffs = [ 0.00, 0.001 ] }
144+
{ condition = "> 5", coeffs = [ 3, 0.25 ] }
145+
]
146+
}
147+
}
148+
]
149+
powerapi.disk.interval = 1s
150+
151+
disk-test {
152+
powerapi.disk.formulae = [
153+
{ name = "sdb",
154+
models = {
155+
read = [
156+
{ condition = "<= 100", coeffs = [ 0.00, 0.0013 ] }
157+
{ condition = "> 100", coeffs = [ 2.13, 0.28 ] }
158+
],
159+
write = [
160+
{ condition = "<= 1000", coeffs = [ 0.00, 0.0016 ] }
161+
{ condition = "> 1000", coeffs = [ 3.15, 0.40 ] }
162+
]
163+
}
164+
}
165+
]
166+
167+
powerapi.disk.interval = 250ms
168+
}

0 commit comments

Comments
 (0)