lkml.org 
[lkml]   [1999]   [Feb]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: fsync on large files
On Sat, 13 Feb 1999, Billy Harvey wrote:

> > > >Disable fsync()ing in
> > > >syslogd by prepending "-" to each log file you want to turn it off for.
> > >
> > > But syslogd
> > > syncs every line written for a good reason, namely that if the machine
> > > crashes you don't want to lose the last few lines that were logged.
> >
> > There's a fair chance you'll lose the lines you're really interested in if
> > you crash anyway - as you've noticed, syncing is a sometimes an intensive
> > operation. A _real_ fix, which also deals with log security issues nicely,
> > is to log across a serial port to a secure (possibly non-networked) host.
>
> Why not modify the log rotation scripts to run on an hourly basis, and
> throw away those older than <insert preference here>? This should be
> fairly painless, and a quick fix.
>
> Billy
> --
> info@RhinoEngineering.com

What does log rotation have to do with syncing?
If I were really concerned about logs, I'd log to a printer ;).

This message has been brought to you by the letter alpha and the number pi.

David Feuer
dfeuer@his.com
dfeuer@binx.mbhs.edu
Open Source: Think locally; act globally.
Check out humbolt.geo.uu.nl/lists for the new mailing lists by Rik van Riel


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:50    [W:0.054 / U:2.788 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site