Thread View: news.software.nntp
6 messages
6 total messages
Started by Ray Banana
Fri, 29 May 2009 14:34
tradindexed overview broken?
Author: Ray Banana
Date: Fri, 29 May 2009 14:34
Date: Fri, 29 May 2009 14:34
38 lines
3286 bytes
3286 bytes
Hi,
yesterday I noticed error messages from expireover on one of my test
systems:
expireover: tradindexed: cannot mmap /var/spool/news/overview/c/c/control.cancel.IDX: Cannot allocate memory
expireover: can't expire control.cancel
expireover: Invalid entry for article 43371568 in /var/spool/news/overview/s/m/sci.math.IDX: offset 0 length 810308686
expireover: tradindexed: cannot mmap /var/spool/news/overview/a/a/alt.atheism.IDX: Cannot allocate memory
expireover: can't expire alt.atheism
expireover: Invalid entry for article 49912426 in /var/spool/news/overview/a/g/alt.guitar.IDX: offset 858805324 length 39121
expireover: tradindexed: cannot mmap /var/spool/news/overview/a/d/h/alt.drugs.hard.IDX: Cannot allocate memory
expireover: can't expire alt.drugs.hard
expireover: tradindexed: cannot mmap /var/spool/news/overview/a/s/h/n/n/alt.sports.hockey.nhl.nj-devils.IDX: Cannot allocate memory
expireover: can't expire alt.sports.hockey.nhl.nj-devils
So I deleted everything in the overview directory as well as the history
files and rebuilt both history and overview. makehistory failed as
the filesystem for /var/spool/news/overview reached 100% of 42 GiB for a
server containing ~8 Million articles. Looking at the overview I found
several IDX with a size of between 1 GiB and 4 GiB (please note the
blatant disproportion of the .DAT and .IDX files:
528888 Mai 29 12:11 ./a/s/h/n/n/alt.sports.hockey.nhl.nj-devils.DAT
3709544488 Mai 29 12:11 ./a/s/h/n/n/alt.sports.hockey.nhl.nj-devils.IDX
There was no INND or NNRPD running at the time.
INN version is INN 2.5.0 (rc2 version).
Any idea what caused this problem?
--
Time flies like an arrow, fruit flies like a Banana.
http://news.motzarella.org
Re: tradindexed overview broken?
Author: Julien ĂLIE
Date: Fri, 29 May 2009 22:32
Date: Fri, 29 May 2009 22:32
41 lines
2848 bytes
2848 bytes
Hi Ray; > expireover: Invalid entry for article 43371568 in /var/spool/news/overview/s/m/sci.math.IDX: offset 0 length 810308686 > expireover: Invalid entry for article 49912426 in /var/spool/news/overview/a/g/alt.guitar.IDX: offset 858805324 length 39121 As you say it is with INN 2.5.0-rc2, the issue is not related to a recent change in tradindexed which exactly triggers that message off. (The change has been done for the final INN 2.5.0 release.) Strange very high length for sci.math! > So I deleted everything in the overview directory as well as the history > files and rebuilt both history and overview. makehistory failed as > the filesystem for /var/spool/news/overview reached 100% of 42 GiB for a > server containing ~8 Million articles. 42 GiB for only 8 million articles! That's very huge... > 528888 Mai 29 12:11 ./a/s/h/n/n/alt.sports.hockey.nhl.nj-devils.DAT > 3709544488 Mai 29 12:11 ./a/s/h/n/n/alt.sports.hockey.nhl.nj-devils.IDX What are the low and high water marks for that newsgroup? > Any idea what caused this problem? Sorry I don't. This problem is pretty annoying... Was it after a conversion ovdb->tradindexed? And how? (Yet, it does not explain the makehistory part). -- Julien ĂLIE « -- Il est vraiment trĂšs frĂȘle cet esquif ! -- Il vaudrait mieux ne pas prendre de risques. -- Des risques ? Une galĂšre fortement armĂ©e contre un frĂȘle esquif ? -- Un frĂȘle esquif plein de Gaulois ! » (pirates)
Re: tradindexed overview broken?
Author: Ray Banana
Date: Sat, 30 May 2009 05:04
Date: Sat, 30 May 2009 05:04
48 lines
3734 bytes
3734 bytes
Thus spake Julien ĂLIE <iulius@nom-de-mon-site.com.invalid> > 42 GiB for only 8 million articles! That's very huge... I wonder how big it would have been if the file system had been larger <veg>. >> 528888 Mai 29 12:11 ./a/s/h/n/n/alt.sports.hockey.nhl.nj-devils.DAT >> 3709544488 Mai 29 12:11 ./a/s/h/n/n/alt.sports.hockey.nhl.nj-devils.IDX > What are the low and high water marks for that newsgroup? >> Any idea what caused this problem? > Sorry I don't. This problem is pretty annoying... > Was it after a conversion ovdb->tradindexed? And how? I had changed the overview from ovdb to tradindexed prior to this problem, i.e. I changed the parameter in inn.conf and built the overview from scratch with makehistory -O. Later I made this server an XREF slave to my production server and fed it from there for some days. So the low and high watermarks for some groups look quite interesting: group alt.sports.hockey.nhl.nj-devils 211 1432 7269 307494099 alt.sports.hockey.nhl.nj-devils The low article numbers are from the initial setup when the server generated its own article numbers while the high article numbers are those from the production server. The tradindexed overview wouldn't use the article number or the difference between two article numbers to calculate offsets within the IDX file, would it? Anyway, these extraordinarily high articles numbers are (AFAIR) the result of a rebuild of the ovdb database on the production system I did three years ago. I never found out what went wrong at that time, but article numbers for some groups jumped from small (100-2000) to very large ( 30.000.000 to 300.000.000). Today, alt.sports.hockey.nhl.nj-devils looks like this: group alt.sports.hockey.nhl.nj-devils 211 2236 307491826 307494077 alt.sports.hockey.nhl.nj-devils This does not seem to be a problem in normal operation (at least since the memory leak in slrn got fixed with version 0.9.9), but it will prevent me from converting the overview from ovdb to tradindexed. -- Time flies like an arrow, fruit flies like a Banana. http://news.motzarella.org
Re: tradindexed overview broken?
Author: Russ Allbery
Date: Sat, 30 May 2009 05:37
Date: Sat, 30 May 2009 05:37
25 lines
2294 bytes
2294 bytes
Ray Banana <rayban@banana.shacknet.nu> writes:
> group alt.sports.hockey.nhl.nj-devils
> 211 1432 7269 307494099 alt.sports.hockey.nhl.nj-devils
>
> The low article numbers are from the initial setup when the server
> generated its own article numbers while the high article numbers are
> those from the production server. The tradindexed overview wouldn't
> use the article number or the difference between two article numbers
> to calculate offsets within the IDX file, would it?
Yes, it does. INN's tradindexed overview method was designed assuming
that your article numbers are the result of a normal article numbering
and expiration process. Yours aren't; your article numbers are
completely outside the expectations of INN's tradindexed overview
method. It wasn't designed to handle gaps of hundreds of millions of
article numbers, and the fairly simple (because they're designed for
robustness in normal operation) data structures it uses cannot handle
that case.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: tradindexed overview broken?
Author: Julien ĂLIE
Date: Sat, 30 May 2009 08:37
Date: Sat, 30 May 2009 08:37
43 lines
2890 bytes
2890 bytes
Hi Ray,
>>> 528888 Mai 29 12:11 ./a/s/h/n/n/alt.sports.hockey.nhl.nj-devils.DAT
>>> 3709544488 Mai 29 12:11 ./a/s/h/n/n/alt.sports.hockey.nhl.nj-devils.IDX
>
>> What are the low and high water marks for that newsgroup?
>
> group alt.sports.hockey.nhl.nj-devils
> 211 1432 7269 307494099 alt.sports.hockey.nhl.nj-devils
Yeah, that's why I asked your water marks.
But I still do not understand why you have 3.7 GB for a mere group.
When I tried to send an article whose number is 2^31-1 last year
(then having the maximal gap 1-2147483647), I had:
https://lists.isc.org/pipermail/inn-workers/2008-August/015939.html
% ll
total 28K
-rw-rw-r-- 1 news news 12K 2008-08-19 08:27 trigofacile.test.DAT
-rw-rw-r-- 1 news news 663M 2008-08-19 08:26 trigofacile.test.IDX
Only 28 KB of used space (first line) but 663 MB for the index.
By the way, I have not checked but does it mean 663 MB really taken
in the disk or only 28 KB? (What would the 28 KB information be for?)
> Anyway, these extraordinarily high articles numbers are (AFAIR) the
> result of a rebuild of the ovdb database on the production system I did
> three years ago. I never found out what went wrong at that time, but
> article numbers for some groups jumped from small (100-2000) to very
> large ( 30.000.000 to 300.000.000).
Weird. Maybe a bug.
But we should first check whether it is reproducible with INN 2.5.0
and BerkeleyDB 4.7...
--
Julien ĂLIE
« Et s'il n'en reste qu'un, je serai celui-là ! » (Victor Hugo)
Re: tradindexed overview broken?
Author: Ray Banana
Date: Sat, 30 May 2009 17:25
Date: Sat, 30 May 2009 17:25
51 lines
4029 bytes
4029 bytes
Thus spake Julien ĂLIE <iulius@nom-de-mon-site.com.invalid>
> But I still do not understand why you have 3.7 GB for a mere group.
> When I tried to send an article whose number is 2^31-1 last year
> (then having the maximal gap 1-2147483647), I had:
> https://lists.isc.org/pipermail/inn-workers/2008-August/015939.html
> % ll
> total 28K
> -rw-rw-r-- 1 news news 12K 2008-08-19 08:27 trigofacile.test.DAT
> -rw-rw-r-- 1 news news 663M 2008-08-19 08:26 trigofacile.test.IDX
> Only 28 KB of used space (first line) but 663 MB for the index.
> By the way, I have not checked but does it mean 663 MB really taken
> in the disk or only 28 KB? (What would the 28 KB information be for?)
The .IDX files seem to be sparse files, where the empty parts (i.e. the
gaps) don't use disk space. The 28k would be the number of blocks
actually occupied on the disk. In my case the output from ls is as follows:
hubhg01:/mnt/a/s/h/n/n# ls -lsh
total 1008K
524K -rw-r--r-- 1 news news 517K May 29 12:11 alt.sports.hockey.nhl.nj-devils.DAT
64K -rw-r--r-- 1 news news 3.5G May 29 12:11 alt.sports.hockey.nhl.nj-devils.IDX
^^^^ ^^^^^
16K -rw-r--r-- 1 news news 14K May 29 12:10 alt.sports.hockey.nhl.ny-islanders.DAT
4.0K -rw-r--r-- 1 news news 6.5K May 29 12:10 alt.sports.hockey.nhl.ny-islanders.IDX
352K -rw-r--r-- 1 news news 347K May 29 12:10 alt.sports.hockey.nhl.ny-rangers.DAT
48K -rw-r--r-- 1 news news 620K May 29 12:10 alt.sports.hockey.nhl.ny-rangers.IDX
Nonetheless, makehistory stopped because of a "no space left on device"
error.
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/spool-innoverview
41908788 41908788 0 100% /mnt
> But we should first check whether it is reproducible with INN 2.5.0
> and BerkeleyDB 4.7...
Haha, I wish I could remember what happened three years ago, when the
article numbers suddenly jumped up. AFAICS it had something to do with
logging in to server over a shaky 28K modem line from an island in the
mediterranean and starting makehistory without using screen, so maybe it
got interrupted and I restarted it without deleting the the ov* files
from the first run.
Anyway, I first noticed the large article numbers several weeks after the
actual incident.
--
Time flies like an arrow, fruit flies like a Banana.
http://news.motzarella.org
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