Re: SMP: logging

From: Alex Rousskov <rousskov_at_measurement-factory.com>
Date: Thu, 25 Feb 2010 12:46:09 -0700

On 02/24/2010 03:06 AM, Adrian Chadd wrote:
> On 24 February 2010 06:55, Amos Jeffries <squid3_at_treenet.co.nz> wrote:
>
>>> Ah, I did not realize cache.log daemon logging is not supported yet. One
>>> more reason to start with simple O_APPEND. As a side effect, we would be
>>> able to debug daemon log starting problems as well :-).
>>>
>> Yay. Definitely +3 then. :)
>
> Uhm, is O_APPEND defined as an atomic write? I didn't think so. It may
> be under Linux and it may be under certain FreeBSD versions, but it's
> likely a side-effect of VFS locking than the actual specification.

The write with O_APPEND is defined as atomic on some Linux open(2) man
pages. I am sure it is not atomic in some environments. Folks running
Squids in those environments will not use SMP or use SMP without
reliable logging until they get a centralized logging daemon support.

Alex.
Received on Thu Feb 25 2010 - 20:07:19 MST

This archive was generated by hypermail 2.2.0 : Fri Feb 26 2010 - 12:00:15 MST