[dpdk-dev] [PATCH v2] malloc: fix malloc and free linear complexity

2014-06-17 Thread De Lara Guarch, Pablo
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of > rsanford2 at gmail.com > Sent: Friday, May 16, 2014 1:59 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v2] malloc: fix malloc and free linear complexity > > Problems w

[dpdk-dev] [PATCH v2] malloc: fix malloc and free linear complexity

2014-06-17 Thread Robert Sanford
Hi Pablo, > Overall patch looks OK, but malloc unit tests fail on the last test (test_multi_alloc_statistics). > Apparently, the biggest free chunk size changes as it allocates some memory, whereas in > the previous implementation, this size did not change. I wonder if unit test is wrong or if the

[dpdk-dev] [PATCH v2] malloc: fix malloc and free linear complexity

2014-05-16 Thread rsanfo...@gmail.com
Problems with lib rte_malloc: 1. Rte_malloc searches a heap's entire free list looking for the best fit, resulting in linear complexity. 2. Heaps store free blocks in a singly-linked list, resulting in linear complexity when rte_free needs to remove an adjacent block. 3. The library