[dpdk-dev] [PATCH] Performance optimization of ACL build process
Stephen Hemminger
stephen at networkplumber.org
Wed Aug 31 17:24:56 CEST 2016
On Tue, 16 Aug 2016 17:01:27 +0300
Vladyslav Buslov <vladyslav.buslov at harmonicinc.com> wrote:
> Hello,
>
> In our application we need to be able to allocate tens of thousands of ACLs at runtime.
> Testing revealed significant performance problems. We were able to track them to memset in calloc function which caused multiple page walks per invocation.
> Modifying tb_mem to use huge page memory resulted ~2x performance gain for that operation.
>
> Regards,
> Vladyslav
>
> Vladyslav Buslov (1):
> acl: use rte_calloc for temporary memory allocation
>
> lib/librte_acl/tb_mem.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
What about making sure that the ACL code does it's own initialization of all fields
and just use malloc rather than calloc?
More information about the dev
mailing list