🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
21 messages
21 total messages Started by swangdb Mon, 01 Jan 2001 21:51
Inn 2.3 Slow expire
#49606
Author: swangdb
Date: Mon, 01 Jan 2001 21:51
69 lines
2243 bytes
I'm running INN 2.3 on a two processor SUN Ultra 2 with 512mb RAM
and two disk arrays (40G of striped article space).

The following command runs every night as a news cron job:

---
40 23 * * * /usr/local/news/bin/news.daily delayrm expireover lowmark
---

Expire seems to take a long time.  It often doesn't finish until
well after noon.  Our previous usenet server (single processor
Sun Ultra 1, 448mb Ram, INN 2.2, Solaris 2.5.1, same disk arrays)
usually was finished expiring by 4 a.m., sometimes earlier.


The following two lines are in expire.ctl:

---
/remember/:10
*:A:1:7:10
---

The previous server's article spool was all tradspool, the current
server's spool is a mix of CNFS and tradspool.  Here is the storage.conf
file:

---
method cnfs {
    class: 1
    newsgroups: alt.binaries.*
    options: BINARIES
}

method cnfs {
    class: 2
    newsgroups: *.jobs*    options: JOBS
}

method cnfs {
    class: 3
    newsgroups: *
    size: 50000
    options: LARGE
}

method cnfs {
    class: 4
    newsgroups: control.cancel
    options: CANCEL
}

method tradspool {
    class: 5
    newsgroups: *
}
---

Any ideas why this could be taking so long?

--
David Swanger
Office of Information Technology
Auburn University, AL
swangdb@mail.auburn.edu


Sent via Deja.com
http://www.deja.com/
Re: Inn 2.3 Slow expire
#49608
Author: Russ Allbery
Date: Tue, 02 Jan 2001 01:02
27 lines
1803 bytes
swangdb <swangdb@mail.auburn.edu> writes:

> I'm running INN 2.3 on a two processor SUN Ultra 2 with 512mb RAM
> and two disk arrays (40G of striped article space).

> The following command runs every night as a news cron job:

> ---
> 40 23 * * * /usr/local/news/bin/news.daily delayrm expireover lowmark
> ---

> Expire seems to take a long time.  It often doesn't finish until well
> after noon.  Our previous usenet server (single processor Sun Ultra 1,
> 448mb Ram, INN 2.2, Solaris 2.5.1, same disk arrays) usually was
> finished expiring by 4 a.m., sometimes earlier.

> The previous server's article spool was all tradspool, the current
> server's spool is a mix of CNFS and tradspool.  Here is the storage.conf
> file:

tradspool expiration is currently extremely slow.  I'm working on fixing
it and will hopefully have something checked into INN 2.4-to-be fairly
soon.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
Re: Inn 2.3 Slow expire
#49699
Author: Bill Davidsen
Date: Sat, 06 Jan 2001 13:54
27 lines
2153 bytes
swangdb@mail.auburn.edu wrote:
> 
> I'm running INN 2.3 on a two processor SUN Ultra 2 with 512mb RAM
> and two disk arrays (40G of striped article space).
> 
> The following command runs every night as a news cron job:
> 
> ---
> 40 23 * * * /usr/local/news/bin/news.daily delayrm expireover lowmark
> ---
> 
> Expire seems to take a long time.  It often doesn't finish until
> well after noon.  Our previous usenet server (single processor
> Sun Ultra 1, 448mb Ram, INN 2.2, Solaris 2.5.1, same disk arrays)
> usually was finished expiring by 4 a.m., sometimes earlier.

> Any ideas why this could be taking so long?

I haven't mixed tradspool and CNFS, but are you using delayed removal of
the articles? If you don't your expire will run very slow. With 300GB
and a slow machine, expire used to run about 3-5 minutes, after which
the actual article removal would run for a long time.
-- 
bill davidsen <davidsen@tmr.com>
  CTO, TMR Associates, Inc
Doing interesting things with little computers since 1979.
Re: Inn 2.3 Slow expire
#49700
Author: Russ Allbery
Date: Sat, 06 Jan 2001 14:07
30 lines
2017 bytes
Bill Davidsen <davidsen@tmr.com> writes:
> swangdb@mail.auburn.edu wrote:

>> I'm running INN 2.3 on a two processor SUN Ultra 2 with 512mb RAM
>> and two disk arrays (40G of striped article space).
>> 
>> The following command runs every night as a news cron job:
>> 
>> ---
>> 40 23 * * * /usr/local/news/bin/news.daily delayrm expireover lowmark
>> ---
>> 
>> Expire seems to take a long time.  It often doesn't finish until
>> well after noon.  Our previous usenet server (single processor
>> Sun Ultra 1, 448mb Ram, INN 2.2, Solaris 2.5.1, same disk arrays)
>> usually was finished expiring by 4 a.m., sometimes earlier.

>> Any ideas why this could be taking so long?

> I haven't mixed tradspool and CNFS, but are you using delayed removal of
> the articles? If you don't your expire will run very slow. With 300GB
> and a slow machine, expire used to run about 3-5 minutes, after which
> the actual article removal would run for a long time.

It's slow even delayed up until now.  Try upgrading to the latest CURRENT
snapshot; I think I just fixed this.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
Re: Inn 2.3 Slow expire
#49777
Author: David Swanger
Date: Wed, 10 Jan 2001 15:35
61 lines
3565 bytes
Russ Allbery (rra@stanford.edu) wrote:
: Bill Davidsen <davidsen@tmr.com> writes:
: > swangdb@mail.auburn.edu wrote:

: >> Expire seems to take a long time.  It often doesn't finish until
: >> well after noon.  Our previous usenet server (single processor

I discovered that some of the expires had failed and there were
many old "lost" tradspool articles.  I erased many of them with 
the command:

  find path -atime +14 -exec /bin/rm {} \;

The next day's expire was a little faster.

Then I changed several of the hierarchies from tradspool to cnfs 
(comp.*,rec.*,soc.*,sci.*,misc.*,talk.*,talk.*,humanities.*,
alt.*,it.*,uk.*,fr.*,de.*,dk.*,tw.*,sfnet.*,es.*,aus.*,pl.*,nl.*,
plus I already had alt.binaries.*,*.jobs.* and control.cancel
stored in cnfs buffers) and this has sped up the expire.  Every
day there are fewer and fewer tradspool files left for these
hierarchies.  By next week most of them should be gone and then
I'll see how fast expire is for the remaining tradspool hierarchies.
There are still a few large tradspool hierarchies (microsoft.*
and relcom.*), I might convert them too.

Tradspool hierarchies seem easier to control than cnfs, you 
can set exact number of days to retain articles, you can easily 
look at specific articles and so on, but cnfs is really fast plus
some unexpectedly busy newsgroups can't fill your spool disk.  Plus
you can create separate buffers for different new groups that you
want to retain longer (or not as long). 

: > I haven't mixed tradspool and CNFS, but are you using delayed removal of
: > the articles? If you don't your expire will run very slow. With 300GB
: > and a slow machine, expire used to run about 3-5 minutes, after which
: > the actual article removal would run for a long time.

: It's slow even delayed up until now.  Try upgrading to the latest CURRENT
: snapshot; I think I just fixed this.

Hmm, I'm using snapshot inn-STABLE-20001006.  So if I wanted
to upgrade, are these the right steps?

- Backup ~news/bin (with tar)
- Download the most recent snapshot in /usr/local/src (or wherever)
- Configure/compile the software
- Stop innd ("/usr/local/news/bin/rc.news stop") and comment out the 
  news cron jobs 
- make upgrade
- uncomment the news cron jobs
- start innd ("/usr/local/news/bin/rc.news")
- Monitor the software.  If it works, celebrate.  If not,
  debug (or reinstall original binaries).

--
David Swanger
Office of Information Technology
Auburn University, AL
swangdb@mail.auburn.edu
Re: Inn 2.3 Slow expire
#49788
Author: Russ Allbery
Date: Wed, 10 Jan 2001 23:23
27 lines
2013 bytes
David Swanger <swangdb@mail.auburn.edu> writes:

> Hmm, I'm using snapshot inn-STABLE-20001006.  So if I wanted to upgrade,
> are these the right steps?

> - Backup ~news/bin (with tar)
> - Download the most recent snapshot in /usr/local/src (or wherever)
> - Configure/compile the software
> - Stop innd ("/usr/local/news/bin/rc.news stop") and comment out the 
>   news cron jobs 
> - make upgrade
> - uncomment the news cron jobs
> - start innd ("/usr/local/news/bin/rc.news")
> - Monitor the software.  If it works, celebrate.  If not,
>   debug (or reinstall original binaries).

Yup, that works for a STABLE to CURRENT upgrade currently.  You probably
don't even need to be that careful about shutting things down; I tend to
do make upgrade with INN running and then just use ctlinnd xexec innd to
restart the server.  But then, I do this a lot.  :)

The old binaries will be saved as .OLD, so you don't necessarily have to
back up ~news/bin first.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
Re: Inn 2.3 Slow expire
#49795
Author: David Swanger
Date: Thu, 11 Jan 2001 14:59
14 lines
1405 bytes
Russ Allbery (rra@stanford.edu) wrote:

: The old binaries will be saved as .OLD, so you don't necessarily have to
: back up ~news/bin first.

How much faster is expire with the CURRENT snapshot?


--
David Swanger
Office of Information Technology
Auburn University, AL
swangdb@mail.auburn.edu
Re: Inn 2.3 Slow expire
#49805
Author: Russ Allbery
Date: Fri, 12 Jan 2001 00:59
14 lines
1421 bytes
David Swanger <swangdb@mail.auburn.edu> writes:
> Russ Allbery (rra@stanford.edu) wrote:

>> The old binaries will be saved as .OLD, so you don't necessarily have
>> to back up ~news/bin first.

> How much faster is expire with the CURRENT snapshot?

I'm *hoping* an order of magnitude for a pure tradspool spool, but I've
not done any real performance tests yet.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
Re: Inn 2.3 Slow expire
#49931
Author: David Swanger
Date: Wed, 17 Jan 2001 17:04
24 lines
1879 bytes
Russ Allbery (rra@stanford.edu) wrote:
: David Swanger <swangdb@mail.auburn.edu> writes:
: > Russ Allbery (rra@stanford.edu) wrote:

: >> The old binaries will be saved as .OLD, so you don't necessarily have
: >> to back up ~news/bin first.

: > How much faster is expire with the CURRENT snapshot?

: I'm *hoping* an order of magnitude for a pure tradspool spool, but I've
: not done any real performance tests yet.


I've got 2.3.1 installed and it is expiring faster than before, but
I've also switched several hierarchies to cnfs and that has improved
performance too.


--
David Swanger
Office of Information Technology
Auburn University, AL
swangdb@mail.auburn.edu
Re: Inn 2.3 Slow expire
#49932
Author: Russ Allbery
Date: Wed, 17 Jan 2001 17:35
17 lines
1701 bytes
David Swanger <swangdb@mail.auburn.edu> writes:
> Russ Allbery (rra@stanford.edu) wrote:

>> I'm *hoping* an order of magnitude for a pure tradspool spool, but I've
>> not done any real performance tests yet.

> I've got 2.3.1 installed and it is expiring faster than before, but I've
> also switched several hierarchies to cnfs and that has improved
> performance too.

That's cool, but 2.3.1 doesn't have the performance speedups.  :)  I'm
going to try to backport them to STABLE soon, though, since they're
testing out well in CURRENT.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
Re: Inn 2.3 Slow expire
#49936
Author: David Swanger
Date: Wed, 17 Jan 2001 19:56
31 lines
2241 bytes
Russ Allbery (rra@stanford.edu) wrote:
: David Swanger <swangdb@mail.auburn.edu> writes:
: > Russ Allbery (rra@stanford.edu) wrote:

: >> I'm *hoping* an order of magnitude for a pure tradspool spool, but I've
: >> not done any real performance tests yet.

: > I've got 2.3.1 installed and it is expiring faster than before, but I've
: > also switched several hierarchies to cnfs and that has improved
: > performance too.

: That's cool, but 2.3.1 doesn't have the performance speedups.  :)  I'm
: going to try to backport them to STABLE soon, though, since they're
: testing out well in CURRENT.

Great!

After really worrying about updating INN 2.3.0, I've done it a
few times recently and it was really easy (as long as I don't
make a mistake and leave off a configure flag like I did once).

Please announce when the performance enhancements are added to the
STABLE releases.


--
David Swanger
Office of Information Technology
Auburn University, AL
swangdb@mail.auburn.edu
Re: Inn 2.3 Slow expire
#49942
Author: Russ Allbery
Date: Wed, 17 Jan 2001 21:00
21 lines
1851 bytes
David Swanger <swangdb@mail.auburn.edu> writes:
> Russ Allbery (rra@stanford.edu) wrote:

>> That's cool, but 2.3.1 doesn't have the performance speedups.  :)  I'm
>> going to try to backport them to STABLE soon, though, since they're
>> testing out well in CURRENT.

> Great!

> After really worrying about updating INN 2.3.0, I've done it a
> few times recently and it was really easy (as long as I don't
> make a mistake and leave off a configure flag like I did once).

> Please announce when the performance enhancements are added to the
> STABLE releases.

Will do.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
Re: Inn 2.3 Slow expire
#49945
Author: Jeffrey M. Vinocur
Date: Wed, 17 Jan 2001 21:15
20 lines
1927 bytes
In article <944tck$qc$1@aunews.duc.auburn.edu>,
David Swanger <swangdb@mail.auburn.edu> wrote:
>
>After really worrying about updating INN 2.3.0, I've done it a
>few times recently and it was really easy (as long as I don't
>make a mistake and leave off a configure flag like I did once).

While doing 2.3.0->2.3.1, I was sitting there trying to figure
out exactly what flags I'd used, when I noticed ./config.status,
which seems relevant...Russ, the documentation could use a
mention of how to upgrade without having to recall what settings
you prefer.

(Oh, and I keep seeing typos, but I've forgotten what to do with
them...there was an email address, I think.)

-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: Inn 2.3 Slow expire
#49946
Author: Russ Allbery
Date: Wed, 17 Jan 2001 21:31
17 lines
1562 bytes
Jeffrey M Vinocur <jeff@litech.org> writes:

> While doing 2.3.0->2.3.1, I was sitting there trying to figure out
> exactly what flags I'd used, when I noticed ./config.status, which seems
> relevant...Russ, the documentation could use a mention of how to upgrade
> without having to recall what settings you prefer.

Good idea, thanks.  Committed.

> (Oh, and I keep seeing typos, but I've forgotten what to do with
> them...there was an email address, I think.)

inn-bugs@isc.org works.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
Re: Inn 2.3 Slow expire
#50046
Author: bill davidsen
Date: Mon, 22 Jan 2001 21:15
43 lines
3040 bytes
In article <ylk881lh5i.fsf@windlord.stanford.edu>,
Russ Allbery  <rra@stanford.edu> wrote:
| David Swanger <swangdb@mail.auburn.edu> writes:
| > Russ Allbery (rra@stanford.edu) wrote:
| 
| >> The old binaries will be saved as .OLD, so you don't necessarily have
| >> to back up ~news/bin first.
| 
| > How much faster is expire with the CURRENT snapshot?
| 
| I'm *hoping* an order of magnitude for a pure tradspool spool, but I've
| not done any real performance tests yet.

  How about buffindexed? I'm about ready to give up on it, the
performance in store and read is fine, but the expireover just runs
forever. From a tiny server with only ten million articles or so:

expireover start Mon Jan 22 00:07:30 EST 2001: (
-z/usr/local/news/log/expire.rm -Z/usr/local/news/log/expire.lowmark)
expireover end Mon Jan 22 11:17:26 EST 2001
lowmarkrenumber begin Mon Jan 22 11:17:26 EST 2001:
(/usr/local/news/log/expire.lowmark)
lowmarkrenumber end Mon Jan 22 11:17:27 EST 2001
expire begin Mon Jan 22 11:17:57 EST 2001: (-v1)
    Article lines processed 10371729
    Articles retained        9514124
    Entries expired           857605
    Old entries dropped       736756
    Old entries retained     1831234
expire end Mon Jan 22 11:25:25 EST 2001
        all done Mon Jan 22 11:25:25 EST 2001

  This little guy gets less than a million articles a day, but still
takes eleven HOURS to expireover. I just don't have the guts to try
over_db again, there may be a magic version of db which doesn't corrupt
all the time, but I have run out of patience looking for it and finding
versions which aren't the right one.

-- 
  bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
"I am lost. I am out looking for myself. If I should come back before I
return, please ask me to wait."  -seen in a doctor's office
Re: Inn 2.3 Slow expire
#50051
Author: Russ Allbery
Date: Mon, 22 Jan 2001 23:56
14 lines
1633 bytes
bill davidsen <davidsen@tmr.com> writes:

> How about buffindexed? I'm about ready to give up on it, the performance
> in store and read is fine, but the expireover just runs forever. From a
> tiny server with only ten million articles or so:

Is this with the expensivestat fixes that are in STABLE?  Those were
supposed to help a lot with this.  (And since you don't have breakdown
statistics for expireover in your report, I'm wondering if you're using an
older version.)

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
Re: Inn 2.3 Slow expire
#50055
Author: Charlie Crackhead
Date: Tue, 23 Jan 2001 00:49
100 lines
6743 bytes
"davidsen@tmr.com" <davidsen@tmr.com> skrev i en
nyhedsmeddelelse:94i7so$4giq$1@newssvr05-en0.news.prodigy.com...

::   How about buffindexed? I'm about ready to give up on it, the
:: performance in store and read is fine, but the expireover just runs
:: forever. From a tiny server with only ten million articles or so:

Like they say, third time's the charm.  Or is it three lights from
one match?  Maybe it's three strikes and yer out.  Well, whatever,
there are three overview methods, and just like with something lost,
we've found our nirvana in the last place we looked.  Why we didn't
look there in the first place is beyond me, but...


:: takes eleven HOURS to expireover. I just don't have the guts to try
:: over_db again, there may be a magic version of db which doesn't corrupt
:: all the time, but I have run out of patience looking for it and finding
:: versions which aren't the right one.

I highly suspect that your success or failure with ovdb depends on
your OS for several reasons.  I had no joy with Slowaris, but apparently
there was a bug in ovdb proper which, after being fixed, resulted in
the site that found it no longer seeing problems with it.  And Heath
works with HP-UX, that apparently works too.

The ovdb problem I see depends on stale locks.  I'm able to induce them
by hand with nnrpd, but what is really disturbing is to see that on
both Slowaris machines we have operating with readers, that for some
weird reason there are dozens or hundreds of leftover nnrpd processes
still hanging around after months with two very different INN releases.
I don't remember if I was seeing this with FreeBSD as well, but I was
definitely seeing stale locks from nnrpds that had exited, and if the
Slowaris leftover nnrpds happen to be holding locks even after the
other end goes away, well, suffice it to say I gave up on that.

I tried buffindexed and like you, I saw an eternity being spent to
run expireover, and it also slowed way down (see the inn-werkerz thread
about botched overchan dropfiles and the resulting missing articles,
well, we lost quite a few each time even if we could manually recover
most but not all of the articles that just couldn't be written in time,
and that without readers).

Have you seen any weird errors during expire or readership?  We did,
and after a few days, entire groups went missing with Slowaris.  That
is when I gave up on that.

Oh yeah, I forgot to mention that with ovdb, I also started to see the
contents of a handful of groups get corrupted or garbled at expire.
I didn't look into wiping out the entirety or part of group.index and
overview to see what it would take to rebuild the data from scratch
and keep its integrity over time.  This was with FreeBSD.

Well, anyway, that left two remaining alternatives, and the appealing
one had the potential of being messy and apparently suicide is a crime
so because I had nothing left to lose, I started tradindex nearly a
month ago, rebuilding the overview data from the existing articles as
with the other methods, and basically, have not had a single problem
in 30 days of uninterrupted operation.  I'm hesitant to restart it, in
the event that the shutdown/restart process doesn't cleanly close the
databases and causes corruption, since I've had to do that with the
other overview methods.  I suppose this theory should be tested, but
first I thought I'd see if the failures that I had previously seen
after a week or so without problems would re-emerge.  Apparently not.

Other people have had problems with tradindex.  I'm seeing none of them.
Expireover runs in two hours.  There have never been overchan backlogs
during this time.  We are losing a number of articles upstream and via
filtering, so we aren't trying to write the 30 arts/sec sustained that
are seen at times with a full feed, but 20 arts/sec sustained has been
no problem.  There has been no reader corruption, we see peaks of 40 to
50 readers on our open swerver so far, and we've seen neither expireover
nor renumber problems that indicate corruption on the other methods that
I've kept an eyeball open for.

However, the fact that other people have experienced corruption or
other problems after successful operation doesn't mean I'm able to
sleep at all nights, though we've been lucky so far.  The only thing
I can think of is we've run with no shutdowns since starting with
tradindex a month ago, but that can't run forever, so we'll see.

Ultimately, this machine has no future and only serves now to aid
the transition away from INN, and it will be shut down with the first
failure, or probably in about a week, whichever comes first, but it
is the only solution that's actually performed over the last half
year of testing.

I don't know if you want to risk giving it a shot.  I've not seen
any of the performance issues that other people have seen or said
would be a problem, although readership is currently negligible (I
need to see about 20 times the current readership to judge performance)
but I do suspect there is a significant difference depending on the
combination of overview and operating system and phase of the moon.

Of course, I could be wrong.


By the way, could you eyeball your feeds to TDC?  Looks like you're
trying to feed the wrong machines on the wrong port or something
weird like that somehow on at least one feed, or something.  Merci.
Re: Inn 2.3 Slow expire
#50061
Author: Katsuhiro Kondou
Date: Tue, 23 Jan 2001 06:59
16 lines
1926 bytes
In article <94i7so$4giq$1@newssvr05-en0.news.prodigy.com>,
	davidsen@tmr.com (bill davidsen) wrote;

}   How about buffindexed? I'm about ready to give up on it, the
} performance in store and read is fine, but the expireover just runs
} forever. From a tiny server with only ten million articles or so:

Current block allocation algorithm for buffindexed is to get
block sparsely.  Then blocks allocated for certain group is
scattered everywhere in buffer.  I think the performance of
expireover/makehistory could be better, if it's done densely.

I'll try to fix after reworking art.c/nc.c.
-- 
Katsuhiro Kondou
Re: Inn 2.3 Slow expire
#50071
Author: bill davidsen
Date: Tue, 23 Jan 2001 17:18
157 lines
9401 bytes
In article <94ikek$bc5$1@news.contactel.cz>,
Charlie Crackhead  <autocyberretributionmeowbot@ploink.invalid> wrote:
| "davidsen@tmr.com" <davidsen@tmr.com> skrev i en
| nyhedsmeddelelse:94i7so$4giq$1@newssvr05-en0.news.prodigy.com...

| :: takes eleven HOURS to expireover. I just don't have the guts to try
| :: over_db again, there may be a magic version of db which doesn't corrupt
| :: all the time, but I have run out of patience looking for it and finding
| :: versions which aren't the right one.
| 
| I highly suspect that your success or failure with ovdb depends on
| your OS for several reasons.  I had no joy with Slowaris, but apparently
| there was a bug in ovdb proper which, after being fixed, resulted in
| the site that found it no longer seeing problems with it.  And Heath
| works with HP-UX, that apparently works too.

  I've had no stability with Linux or AIX, and I even tried running
stable kernels on Linux ;-)
| 
| The ovdb problem I see depends on stale locks.  I'm able to induce them
| by hand with nnrpd, but what is really disturbing is to see that on
| both Slowaris machines we have operating with readers, that for some
| weird reason there are dozens or hundreds of leftover nnrpd processes
| still hanging around after months with two very different INN releases.
| I don't remember if I was seeing this with FreeBSD as well, but I was
| definitely seeing stale locks from nnrpds that had exited, and if the
| Slowaris leftover nnrpds happen to be holding locks even after the
| other end goes away, well, suffice it to say I gave up on that.

  I've been following your detailed notes on this, and I was able to get
stale locks by hand, although my readers have saved my the problem and
induce them regularly.

  As for old processes, YES!! However, to insure that I don't lose all
my file space with processes keeping old versions of history around, I
kill nnrpd processes older than 14 hours. I played with a patch to set a
max time to live and do it at the return to command line, but figure
anyone connected that long is sucking SPAM and I drop them. So far not a
complaint, although the setwork guys might see some.
| 
| I tried buffindexed and like you, I saw an eternity being spent to
| run expireover, and it also slowed way down (see the inn-werkerz thread
| about botched overchan dropfiles and the resulting missing articles,
| well, we lost quite a few each time even if we could manually recover
| most but not all of the articles that just couldn't be written in time,
| and that without readers).

  I don't *think* I am losing any articles, at least a random check
hasn't caught me at it. Actually store and read performance are pretty
fair, which is why I was trying buffindexed, XOVER on a large group was
taking longer than it should.
| 
| Have you seen any weird errors during expire or readership?  We did,
| and after a few days, entire groups went missing with Slowaris.  That
| is when I gave up on that.

  Not an error. But I did do a makehistory for other reasons, and Lord,
was that slow! This is a transit machine, I am using it to try the ov
stuff, with selected readers using it just to see if it's working.
| 
| Oh yeah, I forgot to mention that with ovdb, I also started to see the
| contents of a handful of groups get corrupted or garbled at expire.
| I didn't look into wiping out the entirety or part of group.index and
| overview to see what it would take to rebuild the data from scratch
| and keep its integrity over time.  This was with FreeBSD.

  Saw this on Linux and AIX. I'm unlikely to use FreeBSD, just because I
think OpenBSD is a bit more stable and secure, and I have a limited
number of toy machines.
| 
| Well, anyway, that left two remaining alternatives, and the appealing
| one had the potential of being messy and apparently suicide is a crime
| so because I had nothing left to lose, I started tradindex nearly a
| month ago, rebuilding the overview data from the existing articles as
| with the other methods, and basically, have not had a single problem
| in 30 days of uninterrupted operation.  I'm hesitant to restart it, in
| the event that the shutdown/restart process doesn't cleanly close the
| databases and causes corruption, since I've had to do that with the
| other overview methods.  I suppose this theory should be tested, but
| first I thought I'd see if the failures that I had previously seen
| after a week or so without problems would re-emerge.  Apparently not.

  I really have had no problems other than reader performance with
tradindexed.

| 
| Other people have had problems with tradindex.  I'm seeing none of them.
| Expireover runs in two hours.  There have never been overchan backlogs
| during this time.  We are losing a number of articles upstream and via
| filtering, so we aren't trying to write the 30 arts/sec sustained that
| are seen at times with a full feed, but 20 arts/sec sustained has been
| no problem.  There has been no reader corruption, we see peaks of 40 to
| 50 readers on our open swerver so far, and we've seen neither expireover
| nor renumber problems that indicate corruption on the other methods that
| I've kept an eyeball open for.

  That looks a bit long, on AIX:
    expireover start Tue Jan 23 00:11:58 EST 2001: (
    -z/usr/local/news/log/expire.rm -Z/usr/local/news/log/expire.lowmark)
    expireover end Tue Jan 23 00:53:16 EST 2001
    lowmarkrenumber begin Tue Jan 23 00:53:16 EST 2001:
    (/usr/local/news/log/expire.lowmark)
    lowmarkrenumber end Tue Jan 23 00:53:17 EST 2001
    expire begin Tue Jan 23 00:53:47 EST 2001: (-v1)
        Article lines processed  8148799
        Articles retained        7365409
        Entries expired           783390
        Old entries dropped       848626
        Old entries retained     2153057
    expire end Tue Jan 23 01:05:38 EST 2001
            all done Tue Jan 23 01:05:38 EST 2001

...or you make have more articles online.
| 
| However, the fact that other people have experienced corruption or
| other problems after successful operation doesn't mean I'm able to
| sleep at all nights, though we've been lucky so far.  The only thing
| I can think of is we've run with no shutdowns since starting with
| tradindex a month ago, but that can't run forever, so we'll see.

  Forever, no. Long time? Yes. From various AIX servers:
news 188156      1  36   Nov 10      - 40784:09 /usr/local/news/bin/innd
news 213140      1  34   Dec 29      - 14286:37 /usr/local/news/bin/innd
news 717050      1  45   Dec 26      - 15277:22 /usr/local/news/bin/innd
news 11444       1   2   Nov 01      - 51127:23 /usr/local/news/bin/innd

| Ultimately, this machine has no future and only serves now to aid
| the transition away from INN, and it will be shut down with the first
| failure, or probably in about a week, whichever comes first, but it
| is the only solution that's actually performed over the last half
| year of testing.

  You going away from INN? To?
| 
| I don't know if you want to risk giving it a shot.  I've not seen
| any of the performance issues that other people have seen or said
| would be a problem, although readership is currently negligible (I
| need to see about 20 times the current readership to judge performance)
| but I do suspect there is a significant difference depending on the
| combination of overview and operating system and phase of the moon.

  I can run 800 users comfortably with tradindex on the machines above,
by 1200 the load avg is definitely up there. I'm also running out of
100Mbit on the NIC with all the users :-( But even with 2-3 users,
pulling down the headers for a group with 2-3k articles is *painful*!
Not a load issue. I'll have to try a recent STABLE, or try CURRENT and
hope if it works the performance issues migrate to STABLE.

| Of course, I could be wrong.

  No, someone else has a patent on that...

-- 
  bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
"I am lost. I am out looking for myself. If I should come back before I
return, please ask me to wait."  -seen in a doctor's office
Re: Inn 2.3 Slow expire
#50072
Author: bill davidsen
Date: Tue, 23 Jan 2001 17:26
25 lines
2375 bytes
In article <94ja4d$gun$1@bgsv5905.tk.mesh.ad.jp>,
Katsuhiro Kondou  <kondou@isc.org> wrote:
| In article <94i7so$4giq$1@newssvr05-en0.news.prodigy.com>,
| 	davidsen@tmr.com (bill davidsen) wrote;
| 
| }   How about buffindexed? I'm about ready to give up on it, the
| } performance in store and read is fine, but the expireover just runs
| } forever. From a tiny server with only ten million articles or so:
| 
| Current block allocation algorithm for buffindexed is to get
| block sparsely.  Then blocks allocated for certain group is
| scattered everywhere in buffer.  I think the performance of
| expireover/makehistory could be better, if it's done densely.

  Hum, I may just look at making the blocks larger. Hell, I may get
ambitious and write yet another overview method. Don't hold your breath,
though. I had some patches from somebody for 1.4 which did something
like cycbuffs for overview, and expireover just went away as a problem,
running in seconds. Have to look at that thinking, too.

-- 
  bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
"I am lost. I am out looking for myself. If I should come back before I
return, please ask me to wait."  -seen in a doctor's office
Re: Inn 2.3 Slow expire
#50095
Author: Charlie Coredump
Date: Wed, 24 Jan 2001 02:39
219 lines
12638 bytes
:: | weird reason there are dozens or hundreds of leftover nnrpd processes
:: | still hanging around after months with two very different INN releases.

::   As for old processes, YES!! However, to insure that I don't lose all
:: my file space with processes keeping old versions of history around, I

DO NOT REMIND ME.  Needless to say, within half an hour of boasting
of our 30-day problem-free uptime, since I had been avoiding keeping
a close eye on things, the swerver throttled due to lack of space on
our history drive (which had been sized to be enough for some five
instances of history).  Arrgh.  Am I cursed, or am I cursed?

We had just seen this problem last week on our other 2.2.x machine,
during expire, when I first noticed the several hundred nnrpds back
until last reboot in September.  Killing them one month at a time
did not free the history space -- it was only when killing the last
twelve hours or so of leftover nnrpds, some of which were certainly
active, that we saw disk space freed up.

I have a hard time believing that an nnrpd can stick around for four
months.  I did a Slowaris `truss' on a handful of 'em just to see if
they were doing anything useful, but wasn't patient enough to wait for
our default 3600 second idle timeout.

The thing is that on our current machine, I use `netstat' output to
see how many current readers there are, so these old nnrpds from the
past weeks don't appear in this output, only with `ps'.  I should
probably hang a `truss' off a few of 'em to try and figure out if
they are active and what they are doing, since this seems like either
some Slowaris bug or a bug in nnrpd keeping an old process around.

It looks like this is more acute with the newer nnrpd, which seems
to open the history files in cases where the 2.2.x family didn't (if
my experience with the month-old nnrpds means anything).  Or it may
be that my reader of choice that uses exclusively message-id requests
to retrieve articles is leaving a few leftover processes, which isn't
happening on the other machine since those leftovers didn't result
from me.

These nnrpd processes don't appear in the news.notice logfiles either,
like they would if they were actually active.  But I have done a truss
on a number of processes in a loose loop of giving the `help' command
over and over.  We don't log all user activity like `help' but we do
log `GROUP' and other similar commands.

Interestingly or otherwise, at least some if not most of these leftover
nnrpd processes are unable to be `truss'ed by the ordinary news user,
and the one I grabbed is in lwp_sema_wait().   AIEEEEEEEE.  Run far away.
I'd file this in a `handle with cron job and sledgehammer' category if
this machine were to see future use.


:: | about botched overchan dropfiles and the resulting missing articles,
:: | well, we lost quite a few each time even if we could manually recover
:: | most but not all of the articles that just couldn't be written in time,
:: | and that without readers).
:: 
::   I don't *think* I am losing any articles, at least a random check
:: hasn't caught me at it.

Only one article at a time would be lost, and only if you are running
overchan.  If you're not (and I don't think you were a few months ago)
there are no problems apart from things slowing down, since INN does
all the work itself, not allowing its input to get ahead of what it is
waiting to write.

If you do use overchan and it can't keep up, then you see overview! or
similar droppings in your outgoing directory at times when the channel
is flushed.  These have to be processed by hand.  If you can feed them
to overchan and not get an error, then hey, no problem.  But for each
time you get an error about a malformed overview token, that's one
article that got chopped in half between the data being fed to the
channel, and being buffered to spill out at flush time.  You have one
chance in 1,something million articles per day to be wanting to read
that article, otherwise it would look just like any cancelled article.

I'm not sure about the times when ovdb has frozen up, if the channel
feed data is ever able to be written before the overchan processes
must be killed by hand.  My feeling is not, since I'm guessing it's
trying and failing to get the lock to be able to write this data.
It seems that after this, all further data that innd has buffered
gets written to overview! *if* you catch things before they wedge
solid, and are able to shut down innd.  Or perhaps with a kill -INT,
unless you had Slowaris, where I think that data went bye-bye.  I'd
guess, knowing nothing about the k0de, that the reason for the non-
record boundaries on the buffindex/tradindex backlog dumps is that
the data was buffered internally and then fed back to the feed not
one overview record at a time, but one block, not record-aligned, at
the time, and it got interrupted on a block boundary before it had a
chance to catch up fully.  Of course, I could be wrong.

The only way to add these missing articles to the overview data is to
do a makehistory overview rebuild pass over the entire spool, unless
the k0de gets fixed as is being discussed.  I don't know if it would
be worth it to play it safe and when a channel feed disappears, like
at flush time, to not just spit out the buffered data plus the rewound
data, but also the previous record in the event that the channel has
crashed when writing that particular record unsuccessfully (among other
possibilities of a crash, the ovdb freezes).  But then, I don't know
what I'm talking about.


::  Actually store and read performance are pretty
:: fair, which is why I was trying buffindexed, XOVER on a large group was
:: taking longer than it should.

That's why I went back to tradindex, because in order to get the full
overview data (as about 10% of the XOVER requests we see, especially
M$ Outhouse) you need to pull data from various parts in the physical
database.  I did a major rewrite of the 2.2.x overview functionality
for nnrpd-related commands to reduce spool activity, so that the XOVER
for a large group needed no more than dumping the data from the single
traditional overview file.  My feeling was that with a bit more cheating
I could get even better tradindex performance to satisfy Outhouse lusers.


::   Not an error. But I did do a makehistory for other reasons, and Lord,
:: was that slow!

Yeah, the recovery tools are highly suboptimal, and one could easily
use specialized tools one has written for one's configuration (like
traditional spool or CNFS only) that should give far better performance
than going through the generic storage API, I would think.  Also, the
makehistory performance turns out to be highly dependant on one's spool
layout and now I know how to avoid configurations that would really bog
down this recovery, after one hacks a customized set of recovery tools
and config files.


::   Saw this on Linux and AIX. I'm unlikely to use FreeBSD, just because I
:: think OpenBSD is a bit more stable and secure, and I have a limited

Should be negligible difference between *BSDen, until one starts to
get into threaded libraries or other places where the different code
developers have diverged.  However, I'd expect there to be significant
OS-related differences between AIX, Slowaris, Linix, and *BSDen, also
depending on the different libraries each has and what the different
programs like BerkeleyDB choose to use.


::   I really have had no problems other than reader performance with
:: tradindexed.

I haven't seen readership levels to see any performance problems yet.
Still waiting.  On the other hand, I'm comparing this against another
machine where I've done major overview and other reader-related hacks
that may not have been incorporated into 2.3, and so may be pounding
tradindex overview more than necessary.


:: | Expireover runs in two hours.  There have never been overchan backlogs

::   That looks a bit long, on AIX:
::     expireover start Tue Jan 23 00:11:58 EST 2001: (
::     -z/usr/local/news/log/expire.rm -Z/usr/local/news/log/expire.lowmark)
::     expireover end Tue Jan 23 00:53:16 EST 2001
::     expire begin Tue Jan 23 00:53:47 EST 2001: (-v1)
::         Article lines processed  8148799
:: ...or you make have more articles online.

Well, you have about 1/3 the number of articles based on these here
numbers, so I would expect our times to be somewhat longer...


::   You going away from INN? To?

Diablo.  I spent six months and was unable to deliver a 100% working
replacement to a long-since obsolete reader box, nor could I in good
conscience recommend any of the current INN release software for a new
machine, since everything I tried failed somehow.  Tradindex has only
succeeded the last month, after the decision had already been made to
go with Diablo, only in that it hasn't failed yet, but there were still
many other problems that had not been addressed at that time (expire
performance on traditional spool for important froups, for example), and
a 10x growth rate in only four months meant that a centralized fokkin'
huge INN box probably wouldn't scale.  The distributed design of Diablo
undoubtedly influenced the decisionmakers, along with my INN failures.


::   I can run 800 users comfortably with tradindex on the machines above,
:: by 1200 the load avg is definitely up there.

This is AIX?  When we had AIX, we saw huge load spikes that our current
Slowaris box seems to handle well, failing in subtler, less spectacular
ways.  We've yet to see 50 readers yet, but I haven't given up all hope
and thrown in the towel just yet.  Later this morning, maybe.


::  I'm also running out of
:: 100Mbit on the NIC with all the users :-( But even with 2-3 users,
:: pulling down the headers for a group with 2-3k articles is *painful*!

Weird.  I saw quite fast response for one of the movies groups with some
hundred thousand posts or something.  We ran into 100Mbit/sec ethernet
limitations months ago that haven't yet been resolved, and that's
probably the biggest reason we don't see the thousands of readers I
was certain that an open swerver like ours would attract like dungbeetles.
If we did have full completion, rather than losing more than 1/4 of the
full feed, we'd probably be the holy grail that open-swerver leeches
are seeking, and word-of-mouth plus shameless plugs would attract the
readership I need to judge performance.

Well, I've spent longer than an hour on that truss'ed process with no
further activity, so either INN has the bug that was revealed by the
Demon BerkeleyDB bug report a couple weeks back, or Slowaris needs,
um, something.  Maybe I can motivate myself to look at the many other
lingering processes to see if any are really active.


:: | Of course, I could be wrong.
:: 
::   No, someone else has a patent on that...

I'll happily pay any royalties incurred by my infringement on this
specialized technological advance.  The patentholder, or its designated
agent responsible for handling licensing issues, is encouraged to contact
my ambulance-chasers at Dewey, Fleesem, and Howe, Registered Attorneys at
Law.
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