[Openswan dev] ocf-bench bug & performance :)

Harald Jenny harald at a-little-linux-box.at
Mon Dec 20 05:57:06 EST 2010


On Mon, Dec 20, 2010 at 05:12:15AM -0500, Paul Wouters wrote:
> 
> I was benchmarking OCF and my machine was too fast for ocf-bench:
> 
> [  170.239129] OCF: 1040 requests of 1488 bytes in 0 jiffies (0.000 Mbps)
> 
> The bench mark is wrong for anything happening in under a jiffy :)
> 
> This was on an 8 core:
> 
> processor	: 7
> vendor_id	: GenuineIntel
> cpu family	: 6
> model		: 23
> model name	: Intel(R) Xeon(R) CPU           E5410  @ 2.33GHz
> stepping	: 6
> cpu MHz		: 2333.379
> 
> When I used 10000 requests instead of 1000 it worked better:
> 
> [  229.023024] OCF: 10037 requests of 1488 bytes in 5 jiffies (2389.608 Mbps)
> 
> Perhaps make 10000 the new default if request_num= is not specified? Though
> even that "5" seems dangerously low. Running with request_num=100000 I got:
> 
> [  460.738971] OCF: 100035 requests of 1488 bytes in 49 jiffies (2430.238 Mbps)

Did you use a HW driver or just cryptoapi?

> 
> Paul

Kind regards
Harald

> _______________________________________________
> Dev mailing list
> Dev at openswan.org
> http://lists.openswan.org/mailman/listinfo/dev


More information about the Dev mailing list