On 09-Apr-2004 Steven wrote:
> On Thursday 08 April 2004 08:23 am, Toad wrote:
>> On Thu, Apr 08, 2004 at 06:28:06AM -0400, Pierre Abbat wrote:
>> > I told Freenet to rotate logs, but instead it writes an apparently
>> > unending string of logfiles. How do I tell it the number of logfiles to
>> > keep?
>>
>> Freenet doesn't really support log rotation in the sense that at present
>> it does not delete old logfiles. If anyone wants to add this feature,
>> that would be great. Otherwise it goes on the never-ending TODO list.
>>
>> > phma
>> > --
>> > li fi'u vu'u fi'u fi'u du li pa
> 
> There are two more options regarding log keeping in that section of 
> freenet.conf.  One of them is something like maxLinesCached, the other is 
> maxBytesCached.  I set these values to a low size, expecting fred to 
> automatically discard older log information, and keep it all in one logfile 
> (rather than generating dozens of logs).  It didn't work.  I went without 
> checking the logfile for a while, and it ended up being close to 400MB!  Just
> for fun, I attempted to open this file in several different editors.  Most 
> crashed, but one worked, and it took over 30 minutes for it to load!
> 
> Am I misunderstanding what these options are for?  I'm not interested in 
> keeping very old log information, so I'd like to just discard it, and that's 
> what I expected these settings to do.

The max*Cached options are (if I understand correctly) intended to control the
amount of log data cached in memory at any given time.  The idea, I think, is
to set them both to a suitable value that will avoid excessive writes to disk. 
They have no influence, however, on the actual size of the log file.

Someone needs to take a look at the log rotation code and fix it to work as
most people intuitively expect, or at least document that it doesn't.  :-)
 
-- 
Conrad Sabatier <[EMAIL PROTECTED]> - "In Unix veritas"

_______________________________________________
Support mailing list
[EMAIL PROTECTED]
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:[EMAIL PROTECTED]

Reply via email to