[collectd-changes] collectd, the system statistics collection daemon: Changes to 'master'

Florian Forster octo at verplant.org
Sat Jan 17 11:26:26 CET 2009


 src/network.c |   56 +++++++++++++++++++++++++++++++++++++++++++++-----------
 1 files changed, 45 insertions(+), 11 deletions(-)

New commits:
commit 0b6de87f3d08326ee3200db8e16f3738df027ac0
Author: Florian Forster <octo at huhu.verplant.org>
Date:   Sat Jan 17 11:19:08 2009 +0100

    network plugin: Make the receive thread even faster.
    
    On very busy systems, the thread apparently may not be scheduled often enough.
    So the receive buffer fills up quickly and data may be lost.
    
    This patch changes the `mutex_lock' to a `mutex_trylock' and data is only
    appended to the global receive-queue if the lock can be obtained without
    blocking.
    
    If the lock cannot be obtained without blocking, the data is instead appended
    to a private queue and that queue is appended to the global queue when the lock
    can next be taken.




More information about the collectd-changes mailing list