Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: larrys@lexis-nexis.com (Larry Snyder)
To: axp-list@redhat.com
Subject: Re: syslogd revisited
Date: Thu, 7 Jan 1999 21:08:17 -0500 (EST)	[thread overview]
Message-ID: <199901080208.VAA23343@ra.lexis-nexis.com> (raw)
In-Reply-To: <199901080151.CAA20592@noc.spin.it>

furio ercolessi <furio@spin.it> wrote:
> > On Fri, 8 Jan 1999, furio ercolessi wrote:
> > 
> > > > > However, I am rather unhappy with the amount of CPU which
> > > > > syslogd seems to use under normal circumstances.
> > > > > For instance, right now I observe a syslogd using about 60-70%
> > > > > of a 533MHz LX to write about 13kB per minute on a file.
> > > > > This is ridiculous.  Heck, in this case the messages are generated 
> > > > > by sendmail, which does that while cruising along at 0.1% CPU.
> > > > > 
> 
> > > Still, the cost of sync'ing a file cannot be that high.
> > > I believe that this behavior suggests the presence of some other can 
> > > of worms somewhere, which somebody may like to open ;-)
> > 
> > It really is that high.  Syslogd writes to disk after every message (usually
> > every line), so 13k/min is  ~130 writes/s.  
> 
> I meant 13 kbytes per minute, or ~200 bytes/s or ~3 messages/s.
> I also administer an HP 710/50 MHz (1993 or 1994) that handles a
> comparable load rather comfortably, and the CPU is some factor 20 
> less powerful.

Some flavors of sync copy ALL buffers to disk, but don't necessarily flush them.
That's why running it frequently can hurt deeply.
-ls-
  
> 
> > When data is NOT synced, this
> > means that it is not physically on disk.  i.e. if the system crashes, the
> > only data on disk will be since the last sync.  (The kernel automatically
> > syncs at regular intervals...every few minutes, IIRC)
> > 
> > In other words, make sure kernel messages go to a file that gets synced, or
> > you could be in for trouble.  :)
> 
> Yes; however, after the configuration change the log files seems synced 
> anyway, only without the CPU overhead. Strange.
> 
> Another, perhaps related symptom I observed is that the "sync" command
> may take a rather long time to execute (of the order of 30 seconds).
> Isn't that a bit too much?
> 
> > Have you (or anyone else) noticed syslogd crashing regularly?  Mine crashes
> > like every 2-3 days, and I have to restart it.
> 
> No, mine runs healthy :-)
> root       184  1.0  0.2  3160   560  ?  S   Nov 21 740:43 syslogd
> 
> furio ercolessi
> Spin - Trieste
> 
> -- 
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com


  reply	other threads:[~1999-01-08  2:28 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-01-08  0:02 syslogd revisited furio ercolessi
1999-01-08  0:20 ` Bob McElrath
1999-01-08  1:04   ` furio ercolessi
1999-01-08  1:31     ` Bob McElrath
1999-01-08  1:51       ` furio ercolessi
1999-01-08  2:08         ` Larry Snyder [this message]
1999-03-19 17:46         ` furio ercolessi
1999-03-19 17:51           ` Reid van Melle
1999-03-22 15:06           ` wae
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox