OCF-Linux: Benchmarks

Home  Downloads  Hardware  Benchmarks  TODO  Links

Here are the results of some tests run on OCF under linux. The platform was a 533MHz Intel Xscale IXP425 platform (ARM big endian). The board has a Safenet 1141 and a Hifn7956 on the PCI bus and also the IXP425 has a built in crypto engine. The are three sets of results, the first is crypto performance using openssl speed, the second is using scp and the final shows CPU usage while running "openssl speed".

OpenSSL speed


The following tests were done using the following commands.

    openssl speed -evp des -elapsed
    openssl speed -evp des3 -elapsed
    openssl speed -evp aes128 -elapsed

"-engine cryptodev" was added to the command when OCF acceleration was desired.
The OCF modules used are:

    none            - completely user mode software crypto
    soft            - using crypto framework with software crypto engine
    ixp             - using crypto framework with IXP crypto engine
    safe            - using crypto framework with safenet crypto engine
    hifn            - using crypto framework with hifn7751 crypto engine

I dropped the max packet size down to 2048 bytes,  8192 seems a little
unrealistic.  Needless to say,  the HW crypto is even further ahead if 8K
buffers are used.

cipher       mod.   16 bytes     64 bytes    256 bytes   1024 bytes   2048 bytes
--------------------------------------------------------------------------------
des-cbc      none   3242.58k     3476.85k    2500.50k    3556.51k      3558.74k
des-cbc      soft    599.42k     1430.98k    2157.60k    2475.15k      2548.56k
des-cbc      ixp     319.86k     1241.91k    3966.76k    8928.50k     11253.42k
des-cbc      safe    214.06k      832.87k    3022.58k    9102.30k     13646.28k
des-cbc      hifn    303.75k     1194.30k    4041.97k   10765.15k     14793.54k

des-ede3-cbc none   1210.71k     1242.87k    1251.15k    1253.03k      1253.38k
des-ede3-cbc soft    458.60k      827.31k    1021.27k    1105.26k      1119.89k
des-ede3-cbc ixp     316.26k     1191.99k    3584.68k    7283.75k      8648.86k
des-ede3-cbc safe    212.69k      814.54k    2863.80k    7540.52k     10240.68k
des-ede3-cbc hifn    301.64k     1189.50k    4009.70k   10844.36k     14786.03k

aes-128-cbc  none   4310.24k     4665.73k    4769.11k    4824.06k      4866.05k
aes-128-cbc  soft    634.60k     1757.17k    3105.63k    3837.95k      4087.81k
aes-128-cbc  ixp     315.41k     1178.61k    3892.92k    8756.07k     10856.65k
aes-128-cbc  safe    202.33k      788.55k    2907.59k    8517.74k     12694.32k
aes-128-cbc  hifn    299.59k     1166.92k    3992.46k   10735.10k     14707.49k

The following tests are the same as above only 10 threads were run in
parallel by adding the "-multi 10" option to openssl speed.

cipher       mod.   16 bytes     64 bytes    256 bytes   1024 bytes   2048 bytes
--------------------------------------------------------------------------------
des-cbc      none   3341.99k     3466.05k    3529.22k     3546.45k     4342.21k
des-cbc      soft    621.61k     1436.51k    2121.16k     2465.51k     3563.15k
des-cbc      ixp     319.98k     1125.40k    3767.24k    11120.65k    18265.33k
des-cbc      safe    214.63k      759.77k    2765.68k     8333.99k    14822.97k
des-cbc      hifn    266.48k      912.98k    3246.08k     8448.16k    14278.80k

des-ede3-cbc none   1263.44k     1239.99k    1247.61k     1249.49k     1515.03k
des-ede3-cbc soft    486.85k      825.53k    1015.55k     1086.95k     1694.90k
des-ede3-cbc ixp     316.42k     1068.97k    3920.77k    10992.50k    15275.92k
des-ede3-cbc safe    210.07k      790.05k    2634.24k     8135.15k    14517.53k
des-ede3-cbc hifn    263.97k      941.32k    3055.82k     8676.27k    15540.53k

aes-128-cbc  none   4527.08k     4657.06k    4699.30k     4745.20k     6291.12k
aes-128-cbc  soft    683.02k     1753.95k    3095.38k     3850.84k     5443.03k
aes-128-cbc  ixp  *   53.45       213.40      853.51      3414.50      6791.65
aes-128-cbc  safe    200.14k      751.70k    2522.32k     7837.76k    13627.92k
aes-128-cbc  hifn    261.87k      898.68k    3006.17k     8706.53k    15294.92k

* = some strange reproducible anomaly :-(

scp tests

Tests using "scp -c cipher" of a 19Mb file:

cipher    module    scp output
-----------------------------------------
3des      none      100%   19MB 734.4KB/s
3des      soft      100%   19MB 652.7KB/s
3des      ixp       100%   19MB   1.7MB/s
3des      safe      

Same as above using 4 copies at the same time and averaging the results:

cipher    module    scp output
-----------------------------------------
3des      none      100%   19MB 216.7KB/s
3des      soft      TBD
3des      ixp       100%   19MB 543.7KB/s
3des      safe      TBD

OpenSSL speed with CPU usage

Here are some basic CPU utilisation tests results while running OpenSSL
speed.

No cryptodev support
----------------------------

openssl speed -elapsed -evp des-ede3-cbc -cpu
type             16 bytes /cpu     64 bytes /cpu    256 bytes /cpu   1024 bytes /cpu   8192 bytes /cpu
des-ede3-cbc      1154.87k/%100     1187.49k/%100     1202.24k/%100     1223.41k/%100     1234.93k/%100

openssl speed -elapsed -evp des-ede3-cbc -multi 20 -cpu
type             16 bytes /cpu     64 bytes /cpu    256 bytes /cpu   1024 bytes /cpu   8192 bytes /cpu
des-ede3-cbc      1436.42k/%100     1176.54k/%100     1149.90k/%100     1163.10k/%100     2378.49k/%100

openssl speed -elapsed -evp des-ede3-cbc -multi 40 -cpu
type             16 bytes /cpu     64 bytes /cpu    256 bytes /cpu   1024 bytes /cpu   8192 bytes /cpu
des-ede3-cbc      1831.07k/%100     1540.82k/%100     1597.23k/%100     2062.04k/%100     3532.88k/%100

Safenet 1141 (33MHz PCI)
----------------------------

openssl speed -elapsed -evp des-ede3-cbc -engine cryptodev -cpu
type             16 bytes /cpu     64 bytes /cpu    256 bytes /cpu   1024 bytes /cpu   8192 bytes /cpu
des-ede3-cbc       198.20k/%87       756.48k/%90      2678.40k/%64      7008.20k/%66     10705.05k/%57

openssl speed -elapsed -evp des-ede3-cbc -engine cryptodev -multi 20 -cpu
type             16 bytes /cpu     64 bytes /cpu    256 bytes /cpu   1024 bytes /cpu   8192 bytes /cpu
des-ede3-cbc       232.05k/%100      573.22k/%100     1889.49k/%100     6337.79k/%100    21588.91k/%97

openssl speed -elapsed -evp des-ede3-cbc -engine cryptodev -multi 40 -cpu
type             16 bytes /cpu     64 bytes /cpu    256 bytes /cpu   1024 bytes /cpu   8192 bytes /cpu
des-ede3-cbc       292.48k/%100      781.91k/%100     2587.21k/%100    10444.41k/%100    44173.58k/%76

IXP425 (Internal)
----------------------------

openssl speed -elapsed -evp des-ede3-cbc -engine cryptodev -cpu
type             16 bytes /cpu     64 bytes /cpu    256 bytes /cpu   1024 bytes /cpu   8192 bytes /cpu
des-ede3-cbc       385.74k/%88      1396.35k/%81      3949.09k/%61      7566.81k/%29      9934.75k/%29 

openssl speed -elapsed -evp des-ede3-cbc -engine cryptodev -multi 20 -cpu
type             16 bytes /cpu     64 bytes /cpu    256 bytes /cpu   1024 bytes /cpu   8192 bytes /cpu
des-ede3-cbc       348.78k/%100      863.65k/%100     2777.94k/%99      7639.23k/%78     26018.31k/%60 

openssl speed -elapsed -evp des-ede3-cbc -engine cryptodev -multi 40 -cpu
type             16 bytes /cpu     64 bytes /cpu    256 bytes /cpu   1024 bytes /cpu   8192 bytes /cpu
des-ede3-cbc       420.74k/%100     1132.74k/%94      4220.55k/%80     12970.66k/%60     57113.27k/%52 


Mailing-List: http://lists.sourceforge.net/mailman/listinfo/ocf-linux-users
Contact: David McCullough