summaryrefslogtreecommitdiffstats
path: root/runtime/queue.c
Commit message (Collapse)AuthorAgeFilesLines
* did some adoptions necessary to use the bugfix with v4-beta code baseRainer Gerhards2010-01-261-6/+6
|
* Merge branch 'queuepatch' into v4-betanewRainer Gerhards2010-01-261-10/+15
|\ | | | | | | | | Conflicts: runtime/queue.c
| * bugfixes for potential segfaults during queue shutdownvarmojfekoj2010-01-261-9/+14
| | | | | | | | | | | | (bugs require certain non-standard settings to appear) Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
* | performance enhancement: much faster, up to twice as fastRainer Gerhards2009-07-061-2/+2
| | | | | | | | | | | | (depending on configuration). This was a small change, but with big results. There is more potential to explore, but the effects were so dramatic that I think it makes sense to include this fix.
* | bugfix: subtle potential issue during queue shutdownRainer Gerhards2009-06-251-1/+1
| | | | | | | | | | ... this one could cause trouble, but I really don't think it caused any actual harm.
* | removed uniprocessor optimizationRainer Gerhards2009-06-191-15/+0
| | | | | | | | | | | | ... as it was not even optimal on uniprocessors any longer ;) I keep the config directive in, maybe we can utilize it again at some later point in time (questionable).
* | some cleanupRainer Gerhards2009-06-161-6/+4
| |
* | implemented first version of multi-enqueue support, queue sideRainer Gerhards2009-06-161-0/+126
| |
* | added capability to fsync() queue disk files for enhanced reliabilityRainer Gerhards2009-06-091-0/+5
| | | | | | | | | | | | | | also adds speed, because you do no longer need to run the whole file system in sync mode. New testbench and new config directives: - $MainMsgQueueSyncQueueFiles - $ActionQueueSyncQueueFiles
* | modified stream class and omfile to work with itRainer Gerhards2009-06-041-2/+1
| | | | | | | | now some basic operations are carried out via the stream class.
* | cleaned up stream class ...Rainer Gerhards2009-06-041-44/+46
|/ | | | | | ... and also made it callable via an rsyslog interface rather then relying on the OS loader (important if we go for using it inside loadbale modules, which we soon possible will)
* 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
* | | 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