lkml.org 
[lkml]   [1999]   [Feb]   [14]   [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, Theodore Y. Ts'o wrote:
> Hmm. That's an interesting problem. This is the first time someone's
> called it to my attention that syslog was calling fsync() all the time,
> and obviously this causes a problem if there's a lot of syslogging going
> on and the log files are large.

You can disable syslogd's syncing by prepending a '-' to the filename:

# Log anything (except mail) of level info or higher.
# Don't log private authentication messages!
*.info;mail.none;authpriv.none -/var/log/messages
# The authpriv file has restricted access.
authpriv.* -/var/log/secure
# Log all the mail messages in one place.
mail.* -/var/log/maillog

I have *destroyed* seagate scsi drives by syslog's fsync'ing too much.
(A syslog server handling 50 syslog lines/sec on average)

After 2 destroyed drives in 2 months, one learns rather quickly to turn
off fsync action.

-Dan


-
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.115 / U:0.524 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site