decent syslog replacement?

Nicholas Henke henken at seas.upenn.edu
Tue Jul 31 13:43:11 EDT 2001


Thanks...I forgot about the syslog - thing...The main problem is the
syslog disk thrashing...I guess I wasnt really clear about that. Are there
any clean options to buffer even more than syslog might do?

Nic

On Wed, 1 Aug 2001, Malcolm Tredinnick wrote:

> On Tue, Jul 31, 2001 at 12:43:11PM -0400, Nicholas Henke wrote:
> > Hello, I am in the process of writing a Metakit database wrapper. I am
> > running into performance problems when I try to log a ton of debug
> > messages. The system with thrash the disk when logging. I have tried using
> > syslog, replacing stdout with a file, etc. None of these seem to help much.
> > The only luck I have had is to just use print and have bash redirect to a
> > file. This causes problems in other servers that are trying to log to the
> > same file.
>
> Well, you have just described a number of _different_ problems here (for
> example, replacing stdout with a file will not work if you are using
> system() or os.pipe() calls).
>
> As far as your original problem goes, syslog attempts to be reliable
> even in case of crashes. So, by default, it flushes every message to
> disk as it is written.
>
> It is possible to turn off this flushing to disk after each right, by
> prepending the filename in /etc/syslog.conf with a '-'. See the
> syslog.conf(5) man page for details. Note, however, that this is only
> valid for Linux (it was added in the port from BSD sources originally),
> but if you aren't running Linux, then there's just not much point to
> programming, really. :-)
>
> Cheers,
> Malcolm
>
>

-- 
Nicholas Henke
Undergraduate - SEAS '02
Liniac Project - University of Pennsylvania
http://clubmask.sourceforge.net
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
work: 215-873-5149
cell/home: 215-681-2705
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
There's nothing like good food, good beer, and a bad girl.






More information about the Python-list mailing list