Tweaks for testing performance
This commit is contained in:
parent
e5786550a6
commit
53cd6ac382
|
@ -31,6 +31,7 @@ import dorkboxTest.network.rmi.cows.TestCowImpl
|
||||||
import io.aeron.driver.ThreadingMode
|
import io.aeron.driver.ThreadingMode
|
||||||
import kotlinx.coroutines.*
|
import kotlinx.coroutines.*
|
||||||
import org.agrona.ExpandableDirectByteBuffer
|
import org.agrona.ExpandableDirectByteBuffer
|
||||||
|
import org.agrona.concurrent.NoOpIdleStrategy
|
||||||
import org.agrona.concurrent.SigInt
|
import org.agrona.concurrent.SigInt
|
||||||
import org.slf4j.LoggerFactory
|
import org.slf4j.LoggerFactory
|
||||||
import sun.misc.Unsafe
|
import sun.misc.Unsafe
|
||||||
|
@ -286,9 +287,9 @@ class AeronRmiClientServer {
|
||||||
config.appId = "aeron_test"
|
config.appId = "aeron_test"
|
||||||
config.enableIPv6 = false
|
config.enableIPv6 = false
|
||||||
|
|
||||||
// config.enableIpc = true
|
config.enableIpc = true
|
||||||
config.enableIpc = false
|
// config.enableIpc = false
|
||||||
config.uniqueAeronDirectory = true
|
// config.uniqueAeronDirectory = true
|
||||||
|
|
||||||
config.forceAllowSharedAeronDriver = true
|
config.forceAllowSharedAeronDriver = true
|
||||||
|
|
||||||
|
@ -300,10 +301,12 @@ class AeronRmiClientServer {
|
||||||
|
|
||||||
|
|
||||||
// only if there are enough threads on the box!
|
// only if there are enough threads on the box!
|
||||||
// config.conductorIdleStrategy = BusySpinIdleStrategy.INSTANCE
|
if (Runtime.getRuntime().availableProcessors() > 4) {
|
||||||
// config.sharedIdleStrategy = NoOpIdleStrategy.INSTANCE
|
// config.conductorIdleStrategy = BusySpinIdleStrategy.INSTANCE
|
||||||
// config.receiverIdleStrategy = BusySpinIdleStrategy.INSTANCE
|
// config.sharedIdleStrategy = NoOpIdleStrategy.INSTANCE
|
||||||
// config.senderIdleStrategy = NoOpIdleStrategy.INSTANCE
|
config.receiverIdleStrategy = NoOpIdleStrategy.INSTANCE
|
||||||
|
config.senderIdleStrategy = NoOpIdleStrategy.INSTANCE
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// https://blah.cloud/networks/test-jumbo-frames-working/
|
// https://blah.cloud/networks/test-jumbo-frames-working/
|
||||||
|
|
Loading…
Reference in New Issue