Re: Prefork MPM: Locking of error logs during write?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On Sun, Sep 7, 2014 at 4:30 PM, Jeff Trawick <trawick@xxxxxxxxx> wrote:

Apache httpd on Unix doesn't use locking.  The file is opened in the parent with O_APPEND.

If the writers inherit that descriptor, all is okay for "small" buffers; if a writer opens without O_APPEND, bad.

Thanks Jeff,

In my tests over the last few days it's clear that buffer is about 4K (On CentOS, anyway).   I wrote tens of gigs of logs using 50 processes and never say any intermixing of the logs at all with the message < 4K.   With a larger log message it was easy to trigger the mixing of logs.

Thanks for the information and confirmation.



--
Bill Moseley
moseley@xxxxxxxx

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux