Article View: news.software.nntp
Article #32193Re: getblk() dominated process
From: Matt Dillon
Date: Tue, 13 Oct 1998 00:00
Date: Tue, 13 Oct 1998 00:00
70 lines
3434 bytes
3434 bytes
:In article <87ww648h0k.fsf@smart.ruhr.de>,
:Thomas Neumann <tom@smart.ruhr.de> wrote:
:>
:>Hi everybody,
:>
:>on a newsserver machine (INN) running FreeBSD 2.2.7 I'm
:>seeing "expire" running very, very long (several hours).
:>
:...
:>The machine is nowhere near using all of it's RAM
:>
:...
:> Nevertheless expire takes forever. "top" reveals that
:>expire spends most of it's time in "getblk" or "ufslk2"
Figure out what it's waiting on. ktrace the expire process for
a bit while it's running and doing the getblk/ufslk2 wait thingy.
ktrace -p pid_of_expire_process
(wait 30 seconds)
ktrace -C
(don't forget to ktrace -C)
kdump -R | less
There are several possibilities but two more likely ones:
* The expire script may be failing to sort the expiration list, which
can occur if there is insufficient /tmp space for the sort command.
This results in expire trying to run completely unsorted output, which
can be extremely time consuming verses the sorted output.
* Your news spool may contain directories with too many articles in them
for UFS to handle efficiently. Typically, if a spool directory gets
larger then the system's buffer cache, operations on the spool directory
(such as remove()) can take insane amounts of time.
There are several directories such as control/cancel and ba.jobs (and
other jobs groups) that can cause the problem.
While FreeBSD-2.2.7 does use available memory for caching, certain
parts of it wind up being inefficient in regards to directory scanning
due to FreeBSD-2.2.x not dynamically sizing the NBUF parameter. Try
increasing the number of NBUFs in the kernel config. Don't make it
too big, though.
(Personally, I'd install FreeBSD-current + softupdates instead of
FreeBSD-2.2.x, which fixes a lot of these problems, but this may not
be easy for you to do).
You may wind up in a situation where nothing you do will fix the UFS file
lookup inefficiencies. For example, if you have configured a huge spool,
article directories may wind up being too big in general terms for INN-1.x
to operate efficiently on filesystems with non-hashed directory lookups.
In that case, I would definitely consider upgrading to a later INN release
which implements the newer spool storage mechnaisms or even upgrade to
different news feeder/reader software.
-Matt
--
Matthew Dillon Engineering, HiWay Technologies, Inc. & BEST Internet
Communications
<dillon@best.net> (Please include original email in any response)
Technical Details
Message-ID:
<7008d1$2cl$1@flea.best.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<87ww648h0k.fsf@smart.ruhr.de>Show Full Headers
Complete Article Headers
Message-ID: <7008d1$2cl$1@flea.best.net> Subject: Re: getblk() dominated process Date: Tue, 13 Oct 1998 00:00:00 +0000 From: dillon@best.net (Matt Dillon) References: <87ww648h0k.fsf@smart.ruhr.de> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 400714448 Followup-To: comp.unix.bsd.freebsd.misc X-Trace: 908305638 25908 dillon 206.184.139.131 Organization: BEST Internet Communications, Inc. www.best.com Newsgroups: comp.unix.bsd.freebsd.misc,news.software.nntp