Thread View: news.software.nntp
9 messages
9 total messages
Started by Joe
Sat, 22 Feb 1997 00:00
expire takes FOREVER
Author: Joe
Date: Sat, 22 Feb 1997 00:00
Date: Sat, 22 Feb 1997 00:00
10 lines
941 bytes
941 bytes
Expire takes forever on my nntp server. I've seen it take more than 24 hours to finish. Anyone have an idea why it might be so slow? Someone suggested that it might be that the history database didn't get sorted (that sort didn't have enough disk space). It seems like sort should have enough disk space in the /tmp dir to do it. How much space would sort require to sort a 145 megabyte history file?
Re: expire takes FOREVER
Author: Per Hedeland
Date: Sun, 23 Feb 1997 00:00
Date: Sun, 23 Feb 1997 00:00
25 lines
1788 bytes
1788 bytes
In article <5en43u$fjd@nntp.idsonline.com> jfking@idsonline.com (Joe) writes:
>Someone suggested that it might be that the history database didn't
>get sorted (that sort didn't have enough disk space). It seems like
>sort should have enough disk space in the /tmp dir to do it. How much
>space would sort require to sort a 145 megabyte history file?
Approximately 145 megabyte. But fortunately it isn't (contrary to what
"someone" suggested) the *history file* that gets sorted, only the list
of pathnames to unlink - *if* you're using 'delayrm' with news.daily,
otherwise nothing is sorted (and you have the explanation for your
problem right there:-).
If your news.daily is operating properly (and using delayrm), you will
find last night's list in ${MOST_LOGS}/expire.list. The size of it is
dependant on the number of articles per day you recieve, of course -
with 150-200 k articles/day, it seems to be some 7 MB, and *that* is the
amount of disk space sort needs - note that this is often in /usr/tmp or
/var/tmp rather than /tmp by default, on the assumption that they have
more space - check your sort(1) man page.
--Per Hedeland
per@erix.ericsson.se
Re: expire takes FOREVER
Author: Jan Hrdonka
Date: Sun, 23 Feb 1997 00:00
Date: Sun, 23 Feb 1997 00:00
20 lines
1545 bytes
1545 bytes
Joe (jfking@idsonline.com) wrote: : Expire takes forever on my nntp server. I've seen it take more than : 24 hours to finish. Anyone have an idea why it might be so slow? : Someone suggested that it might be that the history database didn't : get sorted (that sort didn't have enough disk space). It seems like : sort should have enough disk space in the /tmp dir to do it. How much : space would sort require to sort a 145 megabyte history file? First, do use delayrm in news.daily. If rebuilding of the history database (expire itself) takes too long, you have low datasize limit (see FAQ or send me a mail how to increase it) or/and you haven't enough RAM on your server. If removing of articles takes too long (fastrm), there's no easy way, how to solve it (you may buy a better hardware). Always be sure, you have enough free disk space for history and other files. During the expire there are two history files (old and new), so you need at least twice more space for them. H.
Re: expire takes FOREVER
Author: Dave Barr
Date: Sun, 23 Feb 1997 00:00
Date: Sun, 23 Feb 1997 00:00
12 lines
1022 bytes
1022 bytes
In article <5en43u$fjd@nntp.idsonline.com>, Joe <jfking@idsonline.com> wrote: >Expire takes forever on my nntp server. I've seen it take more than >24 hours to finish. Anyone have an idea why it might be so slow? Besides the other suggestions, if you have low memory (<=128MB), turn off -DMMAP in DBZCFLAGS and INND_DBZINCORE. I've noticed severe disk thrashing during expire using MMAP if you don't have lots of memory. --Dave
Re: expire takes FOREVER
Author: Per Hedeland
Date: Mon, 24 Feb 1997 00:00
Date: Mon, 24 Feb 1997 00:00
24 lines
1755 bytes
1755 bytes
In article <5eq5cc$20n@augusta.math.psu.edu>, barr@math.psu.edu (Dave Barr) writes: |> In article <5en43u$fjd@nntp.idsonline.com>, Joe <jfking@idsonline.com> wrote: |> >Expire takes forever on my nntp server. I've seen it take more than |> >24 hours to finish. Anyone have an idea why it might be so slow? |> |> Besides the other suggestions, if you have low memory (<=128MB), |> turn off -DMMAP in DBZCFLAGS and INND_DBZINCORE. I've noticed severe |> disk thrashing during expire using MMAP if you don't have lots of memory. With which version of INN? I had problems like this, and found that they were due to *expire* mmap()ing the *new* dbz file, which is quite useless of course. This would happen automatically if you had -DMMAP in versions before 1.5.1, but I suggested a workaround (included in 1.5.1) such that expire (and makehistory) wouldn't use mmap() regardless of -DMMAP - solved the problem for me and some others, at least. (Also, there was a bug in 1.5 causing ACT_STYLE == MMAP to effectively do a -DMMAP for DBZCFLAGS too.) --Per Hedeland per@erix.ericsson.se
Re: expire takes FOREVER
Author: Dave Barr
Date: Mon, 24 Feb 1997 00:00
Date: Mon, 24 Feb 1997 00:00
24 lines
1548 bytes
1548 bytes
In article <5es3np$cej$1@news.du.etx.ericsson.se>, Per Hedeland <per@erix.ericsson.se> wrote: >In article <5eq5cc$20n@augusta.math.psu.edu>, barr@math.psu.edu (Dave Barr) writes: >|> Besides the other suggestions, if you have low memory (<=128MB), >|> turn off -DMMAP in DBZCFLAGS and INND_DBZINCORE. I've noticed severe >|> disk thrashing during expire using MMAP if you don't have lots of memory. > >With which version of INN? I'm pretty sure this was 1.4unoff4. > I had problems like this, and found that they >were due to *expire* mmap()ing the *new* dbz file, which is quite >useless of course. This would happen automatically if you had -DMMAP in >versions before 1.5.1, but I suggested a workaround (included in 1.5.1) >such that expire (and makehistory) wouldn't use mmap() regardless of >-DMMAP - solved the problem for me and some others, at least. Hm, that's good news. --Dave
Re: expire takes FOREVER
Author: Cracker Buster
Date: Tue, 25 Feb 1997 00:00
Date: Tue, 25 Feb 1997 00:00
33 lines
2309 bytes
2309 bytes
On 23 Feb 1997, Per Hedeland wrote:
> If your news.daily is operating properly (and using delayrm), you will
> find last night's list in ${MOST_LOGS}/expire.list. The size of it is
> dependant on the number of articles per day you recieve, of course -
> with 150-200 k articles/day, it seems to be some 7 MB, and *that* is the
> amount of disk space sort needs - note that this is often in /usr/tmp or
> /var/tmp rather than /tmp by default, on the assumption that they have
> more space - check your sort(1) man page.
Both sort and news.daily have some influence on where the sort takes
place, so it gets a bit complicated. In the news innshellvars file, you
will find a declaration of the environment variable TMPDIR, as derived
from the config.data file. The intent is that you can specify a different
temporary area with more space, but it doesn't always work.
Check your man page for sort, to see if it is aware of this TMPDIR
value. Certain flavors of sort, such as FreeBSD and Linux (GNU sort), are
fine, while others, such as IRIX, do not catch this. On the other hand,
some of the environmentally-challenged sort programs permit one to
explicitly specify the temporary directory as a flag, -T tempdir -- but
this too will not work for all the different sorts. If you find that the
innshellvars way of specifying the temp directory fails, and you need to
relocate it from the default, find the line in news.daily which calls sort
and add the flag to it.
-Barry Bouwsma, Radio Praha Newsbastard
Official FAQ Maintainer
Re: expire takes FOREVER
Author: Alan Brown
Date: Wed, 26 Feb 1997 00:00
Date: Wed, 26 Feb 1997 00:00
24 lines
1601 bytes
1601 bytes
In article <5en43u$fjd@nntp.idsonline.com>, Joe <jfking@idsonline.com> wrote: >Expire takes forever on my nntp server. I've seen it take more than >24 hours to finish. Anyone have an idea why it might be so slow? >Someone suggested that it might be that the history database didn't >get sorted (that sort didn't have enough disk space). It seems like >sort should have enough disk space in the /tmp dir to do it. How much >space would sort require to sort a 145 megabyte history file? It's not the history file which gets sorted - it's expire.list The list file grows to 6-12mb or so and requires about 3 times that space free in the temp directory. AB -- o Stamp out unauthorised relay-hosting. This SMTP "feature" shouldn't default "on" - See http://www.vix.com/spam/ and http://www.sendmail.org/antispam.html o Junk email returned, in bulk, back to sender; w/copies to all postmasters. o Received junkmail constitutes a request for aggressive site security probing.
Re: expire takes FOREVER
Author: bill davidsen
Date: Thu, 27 Feb 1997 00:00
Date: Thu, 27 Feb 1997 00:00
22 lines
1536 bytes
1536 bytes
In article <5f0gi8$qer@papaioea.manawatu.gen.nz>, Alan Brown <alan@news.manawatu.gen.nz> wrote: | In article <5en43u$fjd@nntp.idsonline.com>, Joe <jfking@idsonline.com> wrote: | >sort should have enough disk space in the /tmp dir to do it. How much | >space would sort require to sort a 145 megabyte history file? | | It's not the history file which gets sorted - it's expire.list The only time, AFAIK, that the history file gets sorted is when you have to do a "makehistory -o" after a history filesystem oops. I found that out the hard way earlier today after putting several hours into trying to recover a machine and finding that there's no way to do it short of adding disk or rewriting sort to run slower but more efficiently of storage. -- -bill davidsen (davidsen@tmr.com) "As a software development model, Anarchy does not scale well." -Dave Welch
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