From owner-freebsd-bugs Wed Oct 3 17:30: 6 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 2790437B401 for ; Wed, 3 Oct 2001 17:30:02 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f940U2a40520; Wed, 3 Oct 2001 17:30:02 -0700 (PDT) (envelope-from gnats) Date: Wed, 3 Oct 2001 17:30:02 -0700 (PDT) Message-Id: <200110040030.f940U2a40520@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: "Crist J. Clark" Subject: Re: bin/28738: IPFW log messages causes syslogd to fsync. Reply-To: "Crist J. Clark" Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR bin/28738; it has been noted by GNATS. From: "Crist J. Clark" To: pkern@utcs.utoronto.ca, dima@unixfreak.org Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: bin/28738: IPFW log messages causes syslogd to fsync. Date: Wed, 3 Oct 2001 17:26:06 -0700 IMHO, having LOG_SECURITY fsync for each message is a feature not a bug. However, there is a workaround available to those who don't want disk access for each message using the normal syslogd(8) capabilities. Instead of sending your security messages to a file, security.* /var/log/security You can send them to a _program_ which sends them to a file. For example, we can make a simple buffer so that we need to get 10kB of messages before we write to the file, security.* |/bin/dd obs=10k of=/var/log/security This will prevent the disk write for each message. Other utilities or even a custom program may suit your individual needs better. But I don't feel that messing with any hardcode is appropriate here. The ability to stop the fsync, which I think few people really want, can be done by simply reconfiguring your syslog.conf(5). Does this look workable to you? -- Crist J. Clark cjclark@alum.mit.edu cjclark@jhu.edu cjc@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message