Error Logging Performance

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

 



David Boreham wrote:
> Roman RATHLER wrote:
>> If I activate error logging for ACL Control Summary or similar, the 
>> machine totaly goes into IO-Wait. It just writes maybe 100K/second 
>> but is totaly unusable any more... From normal 1% CPU Load (on a 2 
>> Way Xeon) it moves to 200% CPU Utilization.
>> Debugging ACLs therefore is nearly impossible on a productive system...
>>
>> We run the Fedora-DS 1.0.4 (fedora-ds-1.0.4-1.RHEL4) on an up2date 
>> CentOS System... Is there any perfomance tuning option like with the 
>> log-buffering for access log. I can't see, why logging kills the 
>> machine!
> Errors often occur before a crash, and therefore the error log
> is flushed to persistent store often in order to improve the chances
> that any message emitted before a crash will be retained.
>
> I seem to remember that buffering can be enabled on the error log
> but I can't remember the details. Probably in the documentation 
> somewhere though.
> I think the underlying code is the same for the error log vs. the 
> access log
> (which is optimized for performance by default) , so it should be 
> possible
> to configure the error log to buffer.
I don't think this is possible.  It looks like only the access log has 
this switch.
>
> Alternatively you could put the error log file on a ramdisk.
Another option is to replace the error log file with a named pipe.  The 
other end of the pipe is connected to a python script that keeps a 
circular log buffer in memory.  The script below allows you to configure 
the size of that buffer, and if you want to use a fifo for the access 
and audit logs.
>
>
> -- 
> Fedora-directory-users mailing list
> Fedora-directory-users at redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-directory-users

-------------- next part --------------
A non-text attachment was scrubbed...
Name: logmon.py
Type: text/x-python
Size: 5959 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/389-users/attachments/20071009/d175abea/attachment.py 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3245 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.fedoraproject.org/pipermail/389-users/attachments/20071009/d175abea/attachment.bin 


[Index of Archives]     [Fedora User Discussion]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora News]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora QA]     [Fedora Triage]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Yosemite Photos]     [Linux Apps]     [Maemo Users]     [Gnome Users]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Maemo Users]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Fedora ARM]

  Powered by Linux