[stgt] custom allocators better?

ren yufei renyufei83 at yahoo.com.cn
Tue Feb 26 21:30:13 CET 2013


Hi,

The tcp driver of tgtd is using dynamic memory allocation via malloc/valloc/free for tasks and buffer data, while the iser driver is using pre-allocated memory trunks organized by linked list. According to here(http://www.drdobbs.com/tools/memory-constraints-on-thread-performance/231300494) and here(http://stackoverflow.com/questions/470683/memory-allocation-deallocation-bottleneck), custom allocator might be better for data intensive application such as tgtd. Would custom allocators be better for tcp driver to achieve better performance in terms of latency and throughput? Any comments?


Thanks
Yufei




More information about the stgt mailing list