🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
2 messages
2 total messages Started by Homer Wilson Smith Sun, 30 Aug 1998 00:00
syslogd
#30939
Author: Homer Wilson Smith
Date: Sun, 30 Aug 1998 00:00
23 lines
1364 bytes
    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?  Is it necessary?
 
    Seems like a total waste.
 
    Running Linux 2.0.32 Pentium 333 256 memory.

    Homer


------------------------------------------------------------------------
Homer Wilson Smith     The paths of lovers    Art Matrix - Lightlink
(607) 277-0959               cross in         Internet Access, Ithaca NY
homer@lightlink.com     the line of duty.     http://www.lightlink.com


Re: syslogd
#30901
Author: Russ Allbery
Date: Sat, 29 Aug 1998 00:00
35 lines
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/>

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads