cvs commit: src/usr.sbin/syslogd Makefile syslog.conf.5 syslogd.8 syslogd.c

Matthew Dillon dillon at crater.dragonflybsd.org
Mon Aug 9 13:12:06 PDT 2004


dillon      2004/08/09 13:11:19 PDT

DragonFly src repository

  Modified files:
    usr.sbin/syslogd     Makefile syslog.conf.5 syslogd.8 
                         syslogd.c 
  Log:
  Synchronize syslogd with FreeBSD.  Primarily syslogd.c/1.129.  This primarily
  adds code to avoid fsync()ing the log file line-by-line when further input
  from the pipe is pending.
  
  The FreeBSD commit message for 1.129:
   date: 2004/07/04 19:13:58;  author: cperciva;  state: Exp;  lines: +25 -3
   Where syslogd would have fsync()ed a file in the past, instead set a flag
   FFLAG_NEEDSYNC and fsync the file when select() next returns zero.  This
   dramatically speeds up the process of logging large amounts of data, while
   leaving the essential semantics (that data can be expected to be on disk
   if we crash) unchanged.
  
   In my tests, this speeds up the rc phase of booting by 18-20%. [1]
  
  Suggested-by: Barry Bouwsma
  Source: FreeBSD
  
  Revision  Changes    Path
  1.3       +6 -6      src/usr.sbin/syslogd/Makefile
  1.3       +55 -13    src/usr.sbin/syslogd/syslog.conf.5
  1.3       +36 -17    src/usr.sbin/syslogd/syslogd.8
  1.3       +194 -85   src/usr.sbin/syslogd/syslogd.c


http://www.dragonflybsd.org/cvsweb/src/usr.sbin/syslogd/Makefile.diff?r1=1.2&r2=1.3&f=u
http://www.dragonflybsd.org/cvsweb/src/usr.sbin/syslogd/syslog.conf.5.diff?r1=1.2&r2=1.3&f=u
http://www.dragonflybsd.org/cvsweb/src/usr.sbin/syslogd/syslogd.8.diff?r1=1.2&r2=1.3&f=u
http://www.dragonflybsd.org/cvsweb/src/usr.sbin/syslogd/syslogd.c.diff?r1=1.2&r2=1.3&f=u





More information about the Commits mailing list