SSL tests takes long time to run on linux
Something is wrong with the Ticket1978*Spec
It takes ~15 minutes longer to run all tests after the ssl tests were enabled.
Only problem on linux.
It looks like the following is run quickly:
[info] Ticket1978SHA1PRNGSpec:
[info] -
[info] - must support tell
[info] - must support ask
but then it hangs a long time. Something in shutdown (atTermination?)
It takes ~15 minutes longer to run all tests after the ssl tests were enabled.
Only problem on linux.
It looks like the following is run quickly:
[info] Ticket1978SHA1PRNGSpec:
[info] -
[info] - must support tell
[info] - must support ask
but then it hangs a long time. Something in shutdown (atTermination?)
Leave a comment
on 2012-06-25 09:43 *
By Patrik Nordwall
test in project akka-remote on scalable1:
[info] Passed: : Total 43, Failed 0, Errors 0, Passed 42, Skipped 1
[success] Total time: 1260 s, completed 2012-jun-25 11:36:29
[info] Passed: : Total 43, Failed 0, Errors 0, Passed 42, Skipped 1
[success] Total time: 1260 s, completed 2012-jun-25 11:36:29
on 2012-06-25 13:48 *
By bjorn.antonsson@typesafe.com
It's the entropy of /dev/random on Ubuntu causing problems again.
So the only test that runs fast is the Ticket1978SHA1PRNGSpec no matter if you set the maybe miss named configuration option sha1prng-random-source.
That config option tries to (and probably succeeds) set the system properties java.security.egd and securerandom.source, but it seems to be to late for it to have any effect.
If you set -Djava.security.egd=file:/dev/./urandom (please note file: and not only the path) on the command line, then the other tests run fast as well.
Since this seems to be a predominantly Linux/Ubuntu problem maybe we should not try to configure it by default inside akka but let people set it from the command line since we are trying to set system wide properties anyway, or install prng-tools to fix it the general entropy problem in Ubuntu.
So the only test that runs fast is the Ticket1978SHA1PRNGSpec no matter if you set the maybe miss named configuration option sha1prng-random-source.
That config option tries to (and probably succeeds) set the system properties java.security.egd and securerandom.source, but it seems to be to late for it to have any effect.
If you set -Djava.security.egd=file:/dev/./urandom (please note file: and not only the path) on the command line, then the other tests run fast as well.
Since this seems to be a predominantly Linux/Ubuntu problem maybe we should not try to configure it by default inside akka but let people set it from the command line since we are trying to set system wide properties anyway, or install prng-tools to fix it the general entropy problem in Ubuntu.
on 2012-06-28 05:39 *
By bjorn.antonsson@typesafe.com
So alla the tests still don't execute fast.
The two that are still slow are Ticket1978AES128CounterInetRNG and Ticket1978AES256CounterInetRNG which use the import org.uncommons.maths.random.DefaultSeedGenerator that no matter what you try to do will try to use "/dev/random" first.
What is the purpose of those two? Should we remove them or rewrite them to try random.org first and fall back to the secure random generator, instead of trying "/dev/random" first random org and then secure random.
The two that are still slow are Ticket1978AES128CounterInetRNG and Ticket1978AES256CounterInetRNG which use the import org.uncommons.maths.random.DefaultSeedGenerator that no matter what you try to do will try to use "/dev/random" first.
What is the purpose of those two? Should we remove them or rewrite them to try random.org first and fall back to the secure random generator, instead of trying "/dev/random" first random org and then secure random.
After the fixes that where just merged into master commit the slowest RNGSpec now has a total time on the order of 1 second.
Total build time dropped from 24 to 14 minutes.
The InetRNG now works as expected.
Total build time dropped from 24 to 14 minutes.
The InetRNG now works as expected.
on 2012-07-04 13:10 *
By viktorklang
Excellent!
Updating tickets (#2186, #2187, #2189, #2192, #2196, #2197, #2198, #2200, #2203, #2208, #2212, #2217, #2218, #2221, #2224, #2225, #2226, #2227, #2228, #2232, #2236, #2237, #2247, #2248, #2255, #2257, #2260, #2262, #2268, #2269, #2272, #2276, #2285, #2288, #2292, #2294, #2295, #2298, #2301, #2302, #2312, #2315, #2318, #2319, #2332, #2333, #2335, #2337, #2340, #2341, #2342, #2345)