[rsyslog] request for feedback: dynafile cache size
Rainer Gerhards
rgerhards at hq.adiscon.com
Thu Jun 4 13:52:18 CEST 2009
Thanks for the feedback. That definitely asks for a binary tree search. So I
am convinced now (I'll not do it immediately, but probably towards the end of
my redesign work).
Raienr
> -----Original Message-----
> From: rsyslog-bounces at lists.adiscon.com [mailto:rsyslog-
> bounces at lists.adiscon.com] On Behalf Of david at lang.hm
> Sent: Thursday, June 04, 2009 1:51 PM
> To: rsyslog-users
> Subject: Re: [rsyslog] request for feedback: dynafile cache size
>
> On Thu, 4 Jun 2009, Rainer Gerhards wrote:
>
> > Hi all,
> >
> > as you probably know, dynafiles keep a cache of the n most recently used
> > files open. This is done in order to speed up processing. I wonder how
many
> > files you usually expect to be open. The root of my question is that I
think
> > about the algorithm that finds cache entries. So far, a simple linked
list
> is
> > used, but I wonder if something more efficient (like a binary tree) would
be
> > useful. On the other hand, if the cache size is really small, there is
not
> > much difference between O(n) and O(log n), so it may not justify added
code
> > complexity.
> >
> > Feedback appreciated.
>
> I have a use case where it could be several thousand files
>
> I would expect the normal worst case to be dozens to a few hundred files.
>
> David Lang
> _______________________________________________
> rsyslog mailing list
> http://lists.adiscon.net/mailman/listinfo/rsyslog
> http://www.rsyslog.com
More information about the rsyslog
mailing list