]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commit
This patch allows for multiple RRD writer threads to service the queue.
authorTobias Oetiker <tobi@oetiker.ch>
Tue, 11 Nov 2008 16:36:13 +0000 (16:36 +0000)
committerTobias Oetiker <tobi@oetiker.ch>
Tue, 11 Nov 2008 16:36:13 +0000 (16:36 +0000)
commita4274952810706679e1c5ed560c6864bb4432422
treef5f4b61f7cdbb81ee6908fd30eb1edbd15422d0a
parent7f58a8697f9560b1c306eda1f4170f44fea7d395
This patch allows for multiple RRD writer threads to service the queue.

Now, rrdcached can have more simultaneous I/O requests into the kernel.
This may allow the kernel to re-order disk writes, resulting in better
disk throughput.  In practice, throughput is increased by 2-3x.

The flush (-f) timer maintenance has been moved from queue_thread_main
into its own thread.

Be more careful about when to use pthread_cond_signal vs _broadcast, since
multiple threads may be waiting on &queue_cond.

--kevin

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1665 a5681a0c-68f1-0310-ab6d-d61299d08faa
doc/rrdcached.pod
src/rrd_daemon.c