Article View: news.software.nntp
Article #30901Re: syslogd
From: Russ Allbery
Date: Sat, 29 Aug 1998 00:00
Date: Sat, 29 Aug 1998 00:00
35 lines
1839 bytes
1839 bytes
Homer Wilson Smith <homer@light.lightlink.com> writes: > I am a little concerned about how much CPU my syslog is taking up on > both the news and the majordomo machine. In both cases syslogd shows up > in top as taking 40 to 80 percent of the cpu rather consistently. > Usually more than the process it is logging, innd, or sendmail. > Is this normal? Yes. > Is it necessary? Depends. The reason why syslog is taking up so much CPU is partly because it's inherently inefficient and partly because it's syncing to disk after every single write to make sure that you never lose logging data. You often don't really care about that for some applications. Unfortunately, INN doesn't really offer you a choice. (On a mail machine, you have a choice if you're running qmail, since it prints stuff to stdout and you can use the logger of your choice there.) > Running Linux 2.0.32 Pentium 333 256 memory. Since you're running Linux, you can take advantage of a trick specific to Linux's syslogd; if you put a - before the log filename in syslog.conf, syslogd won't sync the file after every write. That should speed things up quite a bit. -- Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Technical Details
Message-ID:
<m3u32vf1ep.fsf@windlord.Stanford.EDU>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<Pine.SUN.3.96.980830014202.10941A-100000@light.lightlink.com>Show Full Headers
Complete Article Headers
Message-ID: <m3u32vf1ep.fsf@windlord.Stanford.EDU> Subject: Re: syslogd Date: Sat, 29 Aug 1998 00:00:00 +0000 From: Russ Allbery <rra@stanford.edu> References: <Pine.SUN.3.96.980830014202.10941A-100000@light.lightlink.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 386085391 Sender: eagle@windlord.Stanford.EDU Organization: The Eyrie Newsgroups: news.software.nntp