Thread View: news.software.nntp
8 messages
8 total messages
Started by Bill Gunshannon
Thu, 03 Apr 1997 00:00
Two problems while running INN-1.5.1
Author: Bill Gunshannon
Date: Thu, 03 Apr 1997 00:00
Date: Thu, 03 Apr 1997 00:00
32 lines
1790 bytes
1790 bytes
I am running INN-1.5.1 on a P5 with NetBSD 1.2. There seem to be two problems. The first may need to be fixed at the OS level, but I bring it up here just in case it actually is an INN configuration problem. I keep finding innd throttled with the message "Too many open files". The second one is more of a problem, however. I normally take in articles at the rate of 10,000 an hour. But as soon as expire starts to run, that rate drops to less than 4,000 an hour. This wouldn't seem to bad except that expire is taking as much as 12-14 hours to run!! That can't be right. Right now I have an expire running since 1:30 PM and it's 10:30 at night. Surely there is some way to increase the efficiency of this one piece of the program. Oh, and the tie-in for the first problem, it usually shows up while expire is running, but then, with expire running as long as it does, this may be mere coincidence. Any pointers to possible fixes would be appreciated. bill -- Bill Gunshannon | de-moc-ra-cy (di mok' ra see) n. Three wolves bill@cs.uofs.edu | and a sheep voting on what's for dinner. University of Scranton | Scranton, Pennsylvania | #include <std.disclaimer.h>
Re: Two problems while running INN-1.5.1
Author: Forrest J. Cavalier III
Date: Thu, 03 Apr 1997 00:00
Date: Thu, 03 Apr 1997 00:00
48 lines
2038 bytes
2038 bytes
In article <5hv7oo$84h$1@info.cs.uofs.edu>, bill@cs.uofs.edu wrote...
>
>I am running INN-1.5.1 on a P5 with NetBSD 1.2.
>
>There seem to be two problems. The first may need to be fixed at the
>OS level, but I bring it up here just in case it actually is an INN
>configuration problem.
>
>I keep finding innd throttled with the message "Too many open files".
>
I don't have too much to say about your second problem (expire slowdown.)
But as for too many open files....I think the default limit is 64,
which seems large, but there are lots of ways they get used.
1. Each incoming connection counts for up to 2 file descriptors:
1 for the inbound connection,
1 for writing files to disk.
2. Each outgoing feed requires 1.
3. innd needs to open other files (logs, history, active, status
reports, pseudo-feeds such as flowstats, etc.) I haven't looked at
the source in detail to see what other files innd keeps open.
Example:
If you have 3 incoming and 3 outgoing feeds, and your incoming
feed is using innfeed, it probably uses 3 to 5 channels.
3 incoming * 5 channels * 2 = 30
3 Outgoing = 1
Other files (guess 15?) = 15
Total: 46
Your mileage may vary, of course. Perhaps others can fill in
better details.
Forrest Cavalier
Mib Software
HTML Docs on everything usenet including INN at
http://www.mibsoftware.com/userkt/userkt.html
Re: Two problems while running INN-1.5.1
Author: dolzman
Date: Thu, 03 Apr 1997 00:00
Date: Thu, 03 Apr 1997 00:00
51 lines
3162 bytes
3162 bytes
On 3 Apr 1997, Bill Gunshannon wrote:
> The second one is more of a problem, however. I normally take in articles
> at the rate of 10,000 an hour. But as soon as expire starts to run, that
> rate drops to less than 4,000 an hour. This wouldn't seem to bad except
> that expire is taking as much as 12-14 hours to run!! That can't be right.
> Right now I have an expire running since 1:30 PM and it's 10:30 at night.
What part of expire is still running? Typically, expire (or more
correctly, news.daily) runs in three steps. The first step is to rebuild
the history file and create the list of articles to be removed in
expire.rm, which is then sorted, then, depending on your setup, you
expireover on the overview files, and then finally you remove the article
files themselves.
When the first step is running, you'll see both history and history,n
files (though you may be building the history.n files in a different
directory). When that completes, you'll no longer see the .n files, and
your expire.rm file (probably with the logs) will be sorted using some
temp dir. If this file does not completely sort, expire will be very
slow. Look at this file and see if it is in unsorted order or sorted.
Then you'll expireover with this file. At this site, it takes about
20 minutes to build and sort the expire.rm file, then an hour to
expireover. Do a ps (-your-OS-flags) | grep exp to see if expireover is
still happening.
When your overview files have been cleaned, then you run fastrm,
assuming you are giving the option delayrm to expire. You are doing that,
aren't you? If not, you really should.
You can see whether you are fastrm'ing by ps | grep rm. At this site,
it takes between 8 and 12 hours to fastrm a day's worth of news (some 300
000 articles), but you should probably finish in far less time. If
everything else is okay, then you probably need to work on tuning your
filesystem to work much faster. I've made a couple changes which have
shaved several hours off the time needed to expire news from a RAID array,
and with suitable additional hardware, could probably easily cut it in
half again.
If you can better say how long each part of expire requires, than we
can better suggest improvements for you to make. But you should
definitely be running with delayrm/fastrm, and if your list of files to be
removed is not sorted, that'll kill you too.
Barry Bouwsma, radio Praha
Re: Two problems while running INN-1.5.1
Author: Jukka Marin
Date: Thu, 03 Apr 1997 00:00
Date: Thu, 03 Apr 1997 00:00
45 lines
2098 bytes
2098 bytes
In article <5hv7oo$84h$1@info.cs.uofs.edu>, Bill Gunshannon wrote:
>I am running INN-1.5.1 on a P5 with NetBSD 1.2.
So am I.
>I keep finding innd throttled with the message "Too many open files".
Weird - never seen that. This server is getting a "full feed" of over
22,000 newsgroups.
>The second one is more of a problem, however. I normally take in articles
>at the rate of 10,000 an hour. But as soon as expire starts to run, that
>rate drops to less than 4,000 an hour.
Use 'top' or 'systat' to see what's going on.. My guess is that the CPU
is 90-100% idle, but your disks are not. Increasing the buffer cache
size might help (how much RAM have you got? this one has 80 MB). I
haven't looked at the logs, but even the our machine (a 486) was able to
run expire and receive the news feed simultaneously..
>This wouldn't seem to bad except
>that expire is taking as much as 12-14 hours to run!! That can't be right.
Expire runs in 3-4 hours here. Are you using the 'delayrm' option?
You might also want to raise the process data limit to let expire
keep the database in system memory.
>Right now I have an expire running since 1:30 PM and it's 10:30 at night.
>Surely there is some way to increase the efficiency of this one piece of
>the program.
It seems to be one of the most difficult task to handle a full newsfeed
these days :-)
-jm
--
1503 kHz @ 21:30 EET DST Mon-Fri
---> http://www.jmp.fi/~jmarin/ <---
Re: Two problems while running INN-1.5.1
Author: Jukka Marin
Date: Fri, 04 Apr 1997 00:00
Date: Fri, 04 Apr 1997 00:00
30 lines
1899 bytes
1899 bytes
In article <Pine.BSF.3.95q.970403190544.26260B-100000@flaming-bully.bofh.radio.cz>, dolzman wrote:
> You can see whether you are fastrm'ing by ps | grep rm. At this site,
>it takes between 8 and 12 hours to fastrm a day's worth of news (some 300
>000 articles), but you should probably finish in far less time. If
>everything else is okay, then you probably need to work on tuning your
>filesystem to work much faster. I've made a couple changes which have
>shaved several hours off the time needed to expire news from a RAID array,
>and with suitable additional hardware, could probably easily cut it in
>half again.
Just FYI, on a 200 MHz pentium running NetBSD 1.2 with 4 Barracudas combined
together as a 16 GB CCD disk, it takes 5-7 minutes from "expire begin"
to "expire end" (in the daily news report) and 2-4 hours to remove the
article files (170000-300000 files daily, according to the logs). I am
planning to try with asynchronous mounts and larger buffer caches sometime,
but I guess this is relatively fast already (now knowing that it _does_
take hours to expire the news :-)
-jm
--
1503 kHz @ 21:30 EET DST Mon-Fri
---> http://www.jmp.fi/~jmarin/ <---
Re: Two problems while running INN-1.5.1
Author: Jukka Marin
Date: Sat, 05 Apr 1997 00:00
Date: Sat, 05 Apr 1997 00:00
33 lines
1674 bytes
1674 bytes
In article <5i4iio$dse$3@darla.visi.com>, Mike Horwath wrote:
>Ack, don't do an async mount unless you don't mine newfsing your drive
>in case of a problem.
I know, but I thought it would be interesting to see how much it would
help.
>Try using the noatime mount option (if NetBSD has it, FreeBSD does),
>this would be a big win.
NetBSD-current has it, the 1.2 we're running does not.
>News.daily starts here at 2:30am and is done by 6:30am.
>Expire starts at 2:30am and is done by 2:45am.
>
>Sparc 10, 272MB, 2x100HyperSPARC, 20GB spool, 4GB overview, history on
>its own spindle, Solaris 2.5.1.
Compared to this, the cheap pentium box with a free UNIX clone isn't
doing all that bad. Of course, you may have more people reading news
(and more feeds going out of the system - we have no real feeds).
-jm
--
1503 kHz @ 21:30 EET DST Mon-Fri
---> http://www.jmp.fi/~jmarin/ <---
Re: Two problems while running INN-1.5.1
Author: James Youngman
Date: Mon, 07 Apr 1997 00:00
Date: Mon, 07 Apr 1997 00:00
26 lines
1799 bytes
1799 bytes
In article <Pine.BSF.3.95q.970403190544.26260B-100000@flaming-bully.bofh.radio.cz>, dolzman@Radio.CZ says... > You can see whether you are fastrm'ing by ps | grep rm. At this site, >it takes between 8 and 12 hours to fastrm a day's worth of news (some 300 >000 articles), but you should probably finish in far less time. If >everything else is okay, then you probably need to work on tuning your >filesystem to work much faster. I've made a couple changes which have >shaved several hours off the time needed to expire news from a RAID array, >and with suitable additional hardware, could probably easily cut it in >half again. Presumably, the fastm phase can be further speeded up by having (for example) the alt.* hierarchy on a separate disk and running a copy of fastrm for each spindle. Of course running more copies of fastrm than you have spindles for news spool would presumably be a complete no-no. -- James Youngman VG Gas Analysis Systems The trouble with the rat-race Before sending advertising material, read is, even if you win, you're http://www.law.cornell.edu/uscode/47/227.html still a rat.
Re: Two problems while running INN-1.5.1
Author: James Youngman
Date: Mon, 07 Apr 1997 00:00
Date: Mon, 07 Apr 1997 00:00
23 lines
1643 bytes
1643 bytes
In article <Pine.BSF.3.95q.970403190544.26260B-100000@flaming-bully.bofh.radio.cz>, dolzman@Radio.CZ says... > When the first step is running, you'll see both history and history,n >files (though you may be building the history.n files in a different >directory). When that completes, you'll no longer see the .n files, and >your expire.rm file (probably with the logs) will be sorted using some >temp dir. If this file does not completely sort, expire will be very >slow. Look at this file and see if it is in unsorted order or sorted. I had this problem at one time. I had a /tmp which was smaller than expire.rm and so the sort failed; making the fastrm take ten times (!) longer than neccesary. Switching to sorting on /var/tmp speeded this up a lot. -- James Youngman VG Gas Analysis Systems The trouble with the rat-race Before sending advertising material, read is, even if you win, you're http://www.law.cornell.edu/uscode/47/227.html still a rat.
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