R&D/DPDK 45

malloc/free performance

DPDK 에서 rte_malloc 은 기존 malloc 대비 상당히 성능 저하가 존재한다. 실험:1024 Bytes 크기의 memory 를 10,000,000 번 malloc 과 free 를 반복 수행하여 평균값을 구하였다. DPDK 성능 저하 원인:ㅇ rte_malloc 은 malloc 시 lock spin_lock을 잡고 진행되는데 thread의 개수가 증가하면 lock contention 이 발생하고 성능 저하가 linear 하게 증가하게 되는거 같다. 실험환경Ubuntu 14.04, x86_64CPU: Intel(R) Atom(TM) CPU C2758 @ 2.40GHzMemory: 32GB 소스코드 #include #include #include #include #include #include #..

R&D/DPDK 2015.04.17