diff options
author | Shehjar Tikoo <shehjart@gluster.com> | 2009-05-19 12:42:06 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-05-20 11:40:01 -0700 |
commit | 9a916de3f35dbbfe4399696891a0937d650bf72e (patch) | |
tree | ceae43722e677a5fbd7f31a419707be6a531c07a /libglusterfsclient | |
parent | ef0af3ca33a007f2aae2016cc27b6d828367c987 (diff) |
io-threads: Support mem-pool allocator for iot_request_t
This commit brings in support for allocation of iot_request_t's
in io-threads through the use of the mem-pool. We're hoping
that the overheads of hundreds and thousands of small allocations
can be avoided through this.
The important point to note is that the memory pool is not
for the translator as a whole but there is one small memory
pool for each worker thread. Not only does that help us
avoid malloc overheads for small allocations like iot_request_t
but also avoid contention on the heap data structures when multiple
threads want an iot_request_t from the pool.
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
Diffstat (limited to 'libglusterfsclient')
0 files changed, 0 insertions, 0 deletions