From owner-cvs-all@FreeBSD.ORG Sun Jul 4 19:13:58 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6E92B16A4CE; Sun, 4 Jul 2004 19:13:58 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F67843D39; Sun, 4 Jul 2004 19:13:58 +0000 (GMT) (envelope-from cperciva@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i64JDwXt055271; Sun, 4 Jul 2004 19:13:58 GMT (envelope-from cperciva@repoman.freebsd.org) Received: (from cperciva@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i64JDw0A055270; Sun, 4 Jul 2004 19:13:58 GMT (envelope-from cperciva) Message-Id: <200407041913.i64JDw0A055270@repoman.freebsd.org> From: Colin Percival Date: Sun, 4 Jul 2004 19:13:58 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/usr.sbin/syslogd syslogd.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Jul 2004 19:13:59 -0000 cperciva 2004-07-04 19:13:58 UTC FreeBSD src repository Modified files: usr.sbin/syslogd syslogd.c Log: 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] YES PLEASE! by: phk [1] Revision Changes Path 1.129 +25 -3 src/usr.sbin/syslogd/syslogd.c