1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00
Volker Lendecke 84aa2ddd86 pthreadpool: Avoid a malloc/free per job
pthreadpool_add_job is in our hottest code path for r/w intensive workloads, so
we should avoid anything CPU-intensive. pthreadpool used to malloc each job and
free it in the worker thread. This patch adds a FIFO queue for jobs that helper
threads copy from, avoiding constant malloc/free. This cuts user space
CPU in the local-bench-pthreadpool benchmark by roughly 10% on my system.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2014-03-27 06:06:11 +01:00
..
2013-12-10 14:28:32 +01:00
2012-03-24 17:11:11 +01:00
2013-02-19 17:31:32 +01:00
2014-02-20 22:58:58 +01:00
2013-11-11 21:04:09 +01:00
2013-06-25 12:54:00 +02:00
2013-12-05 03:06:10 +01:00
2012-09-18 14:30:25 +02:00
2012-04-17 10:21:02 +02:00
2012-04-17 10:21:02 +02:00
2012-07-18 15:54:20 -07:00
2012-07-18 15:54:20 -07:00
2012-09-19 01:16:25 +02:00
2012-05-15 18:24:10 +02:00
2014-02-20 11:43:08 -08:00
2012-04-19 19:13:45 +02:00