Re: logfile (Re: Frequency of reboot?)

From: Duane Wessels <wessels@dont-contact.us>
Date: Tue, 01 Jul 97 12:14:30 -0700

JLarmour@origin-at.co.uk writes:

>At 18:11 01/07/97 +0200, Stephen R. van den Berg wrote:
>>Jonathan Larmour <JLarmour@origin-at.co.uk> wrote:
>>>At 17:49 01/07/97 +0200, Stephen R. van den Berg wrote:
>>>>Correct me if I'm wrong, but, if you don't restart squid every now
>>>>and then, your cache logfile (the one with the state information) will
>>>>eventually grow out of bounds, will it not?
>>
>>>Use "kill -USR1 `cat /usr/local/squid/logs/squid.pid`" (or wherever squid
>>>puts its PID, defined in squid.conf). This rotates the log files without
>>>restarting squid.
>>
>>The regular logfiles, yes. Not the cache-log with the state information
>>(the logfile in your cache directory), though.
>
>In that case, the answer is that it won't grow out of bounds. Its strictly
>one line per cache entry, so its size will change (and grow dramatically
>when you first start squid until the disk usage reaches cache_swap), but it
>will always hover around a fixed size.

No, thats not quite right. The "log" file is always appended to, so it will
grow and grow. However, the USR1 signal also causes the "log" file to be
rewritten with only current cache objects, so that keeps its size roughly
constant over time.

Duane W.
Received on Tue Jul 01 1997 - 12:15:30 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:35:39 MST