> -----Original Message----- > From: [email protected] [mailto:rsyslog- > [email protected]] On Behalf Of [email protected] > Sent: Wednesday, January 20, 2010 6:01 PM > To: rsyslog-users > Subject: Re: [rsyslog] rsyslog 5.3.6 (v5-beta) released > > On Wed, 20 Jan 2010, Rainer Gerhards wrote: > > > I forgot to mention: > > > >> I realize there is still a window for corruption (if two output > threads > >> running at the same time both decide they need to write at the same > >> time), > >> but it seems that in practice it's effectively gone. > > > > The current code writes a single line with a single API call. I guess > that > > call is rather atomic from an OS point of view, so the window of > corruption > > probably don't even exists with current rsyslog and linux code. > > even when things are batched? with 5.3.5 I was very definantly > experianceing problems with lines getting combined in the writes when I > had multiple outputs to the same file (using different formats to fix > up > bad input)
good point. No, you are right. With batches, buffered mode is used by default, with a flush at the end of batch. Rainer > > David Lang > _______________________________________________ > rsyslog mailing list > http://lists.adiscon.net/mailman/listinfo/rsyslog > http://www.rsyslog.com _______________________________________________ rsyslog mailing list http://lists.adiscon.net/mailman/listinfo/rsyslog http://www.rsyslog.com

