<div dir="ltr"><div><span style="color:rgb(0,0,0)">Hi Team,<br><span style="color:rgb(0,0,0)"><span class="im"></span></span></span><br></div><div>I want to test openssl performance with and without using cryptodev driver.I tried 2 things but my both cases are fluctuating.<br><br></div><div><b>1. "Openssl speed test" with and without HW</b><br><br></div><div>When i am running openssl speed test using the below command,<br><br><span style="background-color:rgb(255,255,0)">"openssl speed -evp aes-128-cbc"</span><br><br></div><div><b>I am getting outstanding improved performance difference in openssl while using with the cryptodev engine</b>.Below are the the numbers. <br></div><div><br></div><div>Without Cryptodev<br>===========<br><br>The 'numbers' are in 1000s of bytes per second processed.
<br> 64B Bytes = 27056.32k
<br> 256 Bytes = 28244.65k
<br> 1024 Bytes = 28558.34k
<br> 8192 Bytes = 28639.23k
<br><br>With Cryptodev<br>===========<br><br>The 'numbers' are in 1000s of bytes per second processed.
<br> 64B Bytes = 77508.52k
<br> 256 Bytes = 428194.13k
<br> 1024 Bytes = 1285770.97k
<br> 8192 Bytes = 32507084.80k
<br> <br></div><div><b>2. Openssl encryption test with and without HW</b><br><br><span style="background-color:rgb(255,255,0)">I tried running this openssl command on my box:<br>
<br>
date ; cat bigfile | openssl enc -e -aes-128-cbc -bufsize 8192 -pass pass:testing123 >  /dev/null ; date<br>
<br>
where 'bigfile' is some large file of > 2 GB in size.</span><br>
<span style="background-color:rgb(255,255,0)">Then i rerun it using<br>
<br>
date ; cat bigfile | openssl enc <b>-engine cryptodev</b> -e -aes-128-cbc -bufsize 8192 -pass pass:testing123 >  /dev/null ; date<br>
<br>
and compare the results of the dates of 'before' and 'after'. <br><br></span></div><div><span style="background-color:rgb(255,255,0)">Below are the results i got.<br></span><br><b>Without HW it takes  <span style="background-color:rgb(255,0,0)">4secs only</span>.<br>
<br>
</b><b>with cryptodev it takes <span style="background-color:rgb(255,0,0)">3min 15 secs</span></b></div><div><br></div><div>Looks like in <b>first case cryptodev is increasing the performance but in second case it is decreasing it.</b><br><br></div><div>If some body knows this issue,can you please point me to the source code
 path where i can tweak something to improve performance with cryptodev 
case.<br><br><div>I am using below versions of the sources.<br><br><b>OpenSSL 1.0.1g 7 Apr 2014</b><br></div><div><br><b>Cryptodev 1.6 version</b><br><br></div><div>Please help me on this.<br><br></div><div>Thanks<br><br>Rahul Arora<br></div></div></div>