Dieharder Tests on a qemu VM – 2: Results

Continued from Dieharder Tests on a qemu VM – 1: Setup

I kept a log of the entropy on the host and the guest every 45 seconds using

$ watch -n 45 "cat /proc/sys/kernel/random/entropy_avail \
    | tee -a entropy_log.txt"

The time variation for both the entropies came to be (gnuplot!):

Host Entropy
Host Entropy

The sudden spikes are for some user activity occurring in that period. If left inactive, entropy stays around 170.

Guest Entropy
Guest Entropy

The tests take a long time to complete (The whole set took me around four hours, and left me with an insanely overheated machine!)

Here is what dieharder returned:

#=============================================================================#
#            dieharder version 3.31.1 Copyright 2003 Robert G. Brown          #
#=============================================================================#
   rng_name    |rands/second|   Seed   |
stdin_input_raw|  2.47e+06  |1371137764|
#=============================================================================#
        test_name   |ntup| tsamples |psamples|  p-value |Assessment
#=============================================================================#
   diehard_birthdays|   0|       100|     100|0.86862896|  PASSED  
      diehard_operm5|   0|   1000000|     100|0.09873382|  PASSED  
  diehard_rank_32x32|   0|     40000|     100|0.39552041|  PASSED  
    diehard_rank_6x8|   0|    100000|     100|0.39218537|  PASSED  
   diehard_bitstream|   0|   2097152|     100|0.85712947|  PASSED  
        diehard_opso|   0|   2097152|     100|0.65776718|  PASSED  
        diehard_oqso|   0|   2097152|     100|0.19758082|  PASSED  
         diehard_dna|   0|   2097152|     100|0.27897319|  PASSED  
diehard_count_1s_str|   0|    256000|     100|0.83681957|  PASSED  
diehard_count_1s_byt|   0|    256000|     100|0.96680935|  PASSED  
 diehard_parking_lot|   0|     12000|     100|0.66719833|  PASSED  
    diehard_2dsphere|   2|      8000|     100|0.37057540|  PASSED  
    diehard_3dsphere|   3|      4000|     100|0.70806712|  PASSED  
     diehard_squeeze|   0|    100000|     100|0.53966681|  PASSED  
        diehard_sums|   0|       100|     100|0.02822295|  PASSED  
        diehard_runs|   0|    100000|     100|0.61266236|  PASSED  
        diehard_runs|   0|    100000|     100|0.91609332|  PASSED  
       diehard_craps|   0|    200000|     100|0.60334904|  PASSED  
       diehard_craps|   0|    200000|     100|0.99227047|  PASSED  
 marsaglia_tsang_gcd|   0|  10000000|     100|0.19080480|  PASSED  
 marsaglia_tsang_gcd|   0|  10000000|     100|0.90001880|  PASSED  
         sts_monobit|   1|    100000|     100|0.36930675|  PASSED  
            sts_runs|   2|    100000|     100|0.08069978|  PASSED  
          sts_serial|   1|    100000|     100|0.29611422|  PASSED  
          sts_serial|   2|    100000|     100|0.67776624|  PASSED  
          sts_serial|   3|    100000|     100|0.99390925|  PASSED  
          sts_serial|   3|    100000|     100|0.81490996|  PASSED  
          sts_serial|   4|    100000|     100|0.43241627|  PASSED  
          sts_serial|   4|    100000|     100|0.00546390|  PASSED  
          sts_serial|   5|    100000|     100|0.39402393|  PASSED  
          sts_serial|   5|    100000|     100|0.34953549|  PASSED  
          sts_serial|   6|    100000|     100|0.76867851|  PASSED  
          sts_serial|   6|    100000|     100|0.89268070|  PASSED  
          sts_serial|   7|    100000|     100|0.95917368|  PASSED  
          sts_serial|   7|    100000|     100|0.92632458|  PASSED  
          sts_serial|   8|    100000|     100|0.95194884|  PASSED  
          sts_serial|   8|    100000|     100|0.92765999|  PASSED  
          sts_serial|   9|    100000|     100|0.60964619|  PASSED  
          sts_serial|   9|    100000|     100|0.19973194|  PASSED  
          sts_serial|  10|    100000|     100|0.30045937|  PASSED  
          sts_serial|  10|    100000|     100|0.28046316|  PASSED  
          sts_serial|  11|    100000|     100|0.39479056|  PASSED  
          sts_serial|  11|    100000|     100|0.93644086|  PASSED  
          sts_serial|  12|    100000|     100|0.39082598|  PASSED  
          sts_serial|  12|    100000|     100|0.12484222|  PASSED
          sts_serial|  13|    100000|     100|0.88230291|  PASSED  
          sts_serial|  13|    100000|     100|0.28399163|  PASSED  
          sts_serial|  14|    100000|     100|0.30412173|  PASSED  
          sts_serial|  14|    100000|     100|0.38876109|  PASSED  
          sts_serial|  15|    100000|     100|0.32394068|  PASSED  
          sts_serial|  15|    100000|     100|0.06754801|  PASSED  
          sts_serial|  16|    100000|     100|0.27237626|  PASSED  
          sts_serial|  16|    100000|     100|0.33825605|  PASSED  
         rgb_bitdist|   1|    100000|     100|0.96008377|  PASSED  
         rgb_bitdist|   2|    100000|     100|0.70661060|  PASSED  
         rgb_bitdist|   3|    100000|     100|0.79542560|  PASSED  
         rgb_bitdist|   4|    100000|     100|0.68858655|  PASSED  
         rgb_bitdist|   5|    100000|     100|0.90823465|  PASSED  
         rgb_bitdist|   6|    100000|     100|0.91443686|  PASSED  
         rgb_bitdist|   7|    100000|     100|0.79858739|  PASSED  
         rgb_bitdist|   8|    100000|     100|0.95913929|  PASSED  
         rgb_bitdist|   9|    100000|     100|0.60175923|  PASSED  
         rgb_bitdist|  10|    100000|     100|0.96923959|  PASSED  
         rgb_bitdist|  11|    100000|     100|0.15208339|  PASSED  
         rgb_bitdist|  12|    100000|     100|0.26135873|  PASSED 
rgb_minimum_distance|   2|     10000|    1000|0.77861169|  PASSED  
rgb_minimum_distance|   3|     10000|    1000|0.00212982|   WEAK   
rgb_minimum_distance|   4|     10000|    1000|0.31023346|  PASSED  
rgb_minimum_distance|   5|     10000|    1000|0.40301991|  PASSED  
    rgb_permutations|   2|    100000|     100|0.50882956|  PASSED  
    rgb_permutations|   3|    100000|     100|0.31787007|  PASSED  
    rgb_permutations|   4|    100000|     100|0.47652641|  PASSED  
    rgb_permutations|   5|    100000|     100|0.92450336|  PASSED  
      rgb_lagged_sum|   0|   1000000|     100|0.26333265|  PASSED  
      rgb_lagged_sum|   1|   1000000|     100|0.75116347|  PASSED  
      rgb_lagged_sum|   2|   1000000|     100|0.13950855|  PASSED  
      rgb_lagged_sum|   3|   1000000|     100|0.93462392|  PASSED  
      rgb_lagged_sum|   4|   1000000|     100|0.99538753|   WEAK   
      rgb_lagged_sum|   5|   1000000|     100|0.84015937|  PASSED  
      rgb_lagged_sum|   6|   1000000|     100|0.39294482|  PASSED  
      rgb_lagged_sum|   7|   1000000|     100|0.95276622|  PASSED  
      rgb_lagged_sum|   8|   1000000|     100|0.38480211|  PASSED  
      rgb_lagged_sum|   9|   1000000|     100|0.12822922|  PASSED  
      rgb_lagged_sum|  10|   1000000|     100|0.75884102|  PASSED  
      rgb_lagged_sum|  11|   1000000|     100|0.81236992|  PASSED  
      rgb_lagged_sum|  12|   1000000|     100|0.47372927|  PASSED
     rgb_kstest_test|   0|     10000|    1000|0.41691852|  PASSED  
     dab_bytedistrib|   0|  51200000|       1|0.50909808|  PASSED  
             dab_dct| 256|     50000|       1|0.63160301|  PASSED  
        dab_filltree|  32|  15000000|       1|0.00756161|  PASSED  
        dab_filltree|  32|  15000000|       1|0.27671644|  PASSED
       dab_filltree2|   0|   5000000|       1|0.44752389|  PASSED  
       dab_filltree2|   1|   5000000|       1|0.78668278|  PASSED
        dab_monobit2|  12|  65000000|       1|0.08419938|  PASSED

Which is fairly good! I should try to find out what happens if you’re not feeding entropy from the host, and simply run dieharder.

Advertisements

1 thought on “Dieharder Tests on a qemu VM – 2: Results”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s