summaryrefslogtreecommitdiffstats
path: root/runtime/queue.c
Commit message (Collapse)AuthorAgeFilesLines
...
* | moving to a cleaner implementation of batchesRainer Gerhards2009-05-121-19/+30
| | | | | | | | ... now that we know what we need from a theoretical POV.
* | fixed abort condition in DA modeRainer Gerhards2009-04-231-2/+1
| |
* | fixing a small (newly-introduced) memory leakRainer Gerhards2009-04-231-10/+5
| | | | | | | | | | ... plus simplifying free() calls after agreement on mailing list that we no longer need to check if the pointer is non-NULL
* | added $MainMsgQueueDequeueBatchSize and $ActionQueueDequeueBatchSize ↵Rainer Gerhards2009-04-231-12/+10
| | | | | | | | configuration directives
* | Merge branch 'master' into multi-dequeueRainer Gerhards2009-04-231-4/+4
|\|
| * Merge branch 'v3-stable' into betaRainer Gerhards2009-04-231-6/+8
| |\ | | | | | | | | | | | | | | | Conflicts: ChangeLog runtime/queue.c
| | * bugfix: light and full delay watermarks had invalid valuesRainer Gerhards2009-04-231-6/+8
| | | | | | | | | | | | | | | ... badly affecting performance for delayable inputs (but not causeing any other issues)
| | * Merge branch 'beta'Rainer Gerhards2008-10-211-13/+32
| | |\
| | | * bugfix: (potentially big) memory leak on HUPRainer Gerhards2008-10-211-13/+32
| | | | | | | | | | | | | | | | | | | | | | | | - if queues could not be drained before timeout - thanks to David Lang for pointing this out - added link to german-language forum to doc set
* | | | improving debugging info a bitRainer Gerhards2009-04-231-2/+4
| | | |
* | | | now batches are handed down to the actual consumerRainer Gerhards2009-04-221-13/+17
| | | | | | | | | | | | | | | | | | | | | | | | ... but the action consumer does not do anything really intelligent with them. But the DA consumer is already done, as is the main message queue consumer.
* | | | first attempt at dequeueing multiple batches inside the queueRainer Gerhards2009-04-221-71/+111
| | | | | | | | | | | | | | | | | | | | | | | | ... but this code has serious problems when terminating the queue, also it is far from being optimal. I will commit a series of patches (hopefully) as I am on the path to the final implementation.
* | | | some cleanupRainer Gerhards2009-04-171-39/+0
|/ / /
* | | fixed a platform issue the prevented building on solarisRainer Gerhards2009-03-061-0/+5
| | |
* | | integrated various patches for solarisRainer Gerhards2009-03-051-210/+210
| | | | | | | | | | | | | | | | | | | | | | | | | | | Unfortunatley, I do not have the full list of contributors available. The patch set was compiled by Ben Taylor, and I made some further changes to adopt it to the news rsyslog branch. Others provided much of the base work, but I can not find the names of the original authors. If you happen to be one of them, please let me know so that I can give proper credits.
* | | added a setting "$OptimizeForUniprocessor"Rainer Gerhards2008-10-221-1/+4
| | | | | | | | | | | | | | | | | | ...to enable users to turn off pthread_yield calls which are counter-productive on multiprocessor machines (but have been shown to be useful on uniprocessors)
* | | bugfix: (potentially big) memory leak on HUPRainer Gerhards2008-10-211-13/+32
| | | | | | | | | | | | | | | This occured if queues could not be drained before timeout. Thanks to David Lang for pointing this out.
* | | moved bParseHostname and bIsParsed to msgFlagsRainer Gerhards2008-10-091-2/+3
| | | | | | | | | | | | | | | | | | This enables us to use more efficient calling conventions and also helps us keep the on-disk structure of a msg object more consistent in future releases.
* | | Merge branch 'master' into perfRainer Gerhards2008-10-091-1/+1
|\| |
| * | Merge branch 'beta'Rainer Gerhards2008-10-091-1/+1
| |\|
| | * Merge branch 'v3-stable' into betaRainer Gerhards2008-10-091-1/+1
| | |
* | | minor: reorder to slightly reduce size of critical sectionRainer Gerhards2008-10-091-1/+1
| | |
* | | added experimental pthread_yield()Rainer Gerhards2008-10-091-0/+5
| | | | | | | | | | | | | | | which so far seems to increase performance. There is also reason for it to do so, see http://kb.monitorware.com/post14216.html#p14216
* | | reordered imudp processing.Rainer Gerhards2008-10-081-2/+0
| | | | | | | | | | | | | | | | | | Message parsing is now done as part of main message queue worker processing (was part of the input thread) This should also improve performance, as potentially more work is done in parallel.
* | | slightly improved lock contention situation by moving out ofRainer Gerhards2008-10-071-3/+9
|/ / | | | | | | the critical section what could so with acceptable consequences
* | improved threadingRainer Gerhards2008-09-301-1/+6
| | | | | | | | | | | | | | | | - changed sequence when awakening thread - removed no longer needed condition variable - EXPERIMENTALLY added mutex guarding to hostname lookups this is to be removed if it does not have any verifyable useful effect
* | some more threading cleanupRainer Gerhards2008-09-261-6/+2
| | | | | | | | | | | | - removed newly-introduced potential deadlock in debug system - removed unnecessary pthread_cond_signal - a bit general cleanup
* | bugfix: potential race condition when adding messages to queueRainer Gerhards2008-09-181-6/+6
| | | | | | | | | | | | | | There was a wrong order of mutex lock operations. It is hard to believe that really caused problems, but in theory it could and with threading we often see that theory becomes practice if something is only used long enough on a fast enough machine with enough CPUs ;)
* | some very minor cleanupRainer Gerhards2008-08-121-1/+0
|/
* bugfix: bad memory leak in disk-based queue modesRainer Gerhards2008-07-091-21/+8
|
* reduced number of compile warnings in -pedantic gcc modeRainer Gerhards2008-06-271-18/+18
|
* completed better modularity of runtimeRainer Gerhards2008-04-171-1/+0
| | | | | | | | | | - added the ability to specify an error log function for the runtime - removed dependency of core runtime on dirty.h Note that it is "better" modularity, not perfect. There is still work to do, but I think we can for the time being proceed with other things.
* modularization workRainer Gerhards2008-04-171-7/+9
| | | | | cleanup + created an abstract class for global data items and moved glblGetWorkDir to it
* some more cleanupRainer Gerhards2008-04-161-1/+1
| | | | | reduced dependencies, moved non-runtime files to its own directory except for some whom's status is unclear
* begin building runtime convenience library (does not build!)Rainer Gerhards2008-04-151-0/+2322