Thread View: news.software.nntp
8 messages
8 total messages
Started by Ray Banana
Sat, 28 Oct 2023 03:05
Migrating tradindexed overview to ovsqlite
Author: Ray Banana
Date: Sat, 28 Oct 2023 03:05
Date: Sat, 28 Oct 2023 03:05
17 lines
1419 bytes
1419 bytes
Hi, the current flood of spam from Google Groups and the corresponding amount of NoCeM messages made me consider an overview method that does not rely on expireover to remove the overview data for cancelled articles. From what I have seen on a test server, ovsqlite seems to remove overview data immediately. I have rebuilt the ovdb of a test server with ~1,5 million articles in just a couple of minutes and am now considering a migration of my main reader server (~50 million articles) to ovsqlite. Does anyone have experience and an estimate how long such a migration might take on ordinary SATA disks with EXT4 filesystems? -- Пу́тін — хуйло́ http://www.eternal-september.org
Re: Migrating tradindexed overview to ovsqlite
Author: Jesse Rehmer
Date: Sat, 28 Oct 2023 08:32
Date: Sat, 28 Oct 2023 08:32
17 lines
1726 bytes
1726 bytes
On Oct 27, 2023 at 10:05:42 PM CDT, "Ray Banana" <rayban@raybanana.net> wrote: > > Hi, > > the current flood of spam from Google Groups and the corresponding > amount of NoCeM messages made me consider an overview method that > does not rely on expireover to remove the overview data for cancelled > articles. From what I have seen on a test server, ovsqlite seems to > remove overview data immediately. I have rebuilt the ovdb of a test > server with ~1,5 million articles in just a couple of minutes and am now > considering a migration of my main reader server (~50 million articles) > to ovsqlite. Does anyone have experience and an estimate how long such a > migration might take on ordinary SATA disks with EXT4 filesystems? Not quite the same use case, but I'm rebuilding history and moving to ovsqlite on 1.5TB / 500 million articles on NVMe storage and it is taking over a week.
Re: Migrating tradindexed overview to ovsqlite
Author: Jesse Rehmer
Date: Sat, 28 Oct 2023 08:49
Date: Sat, 28 Oct 2023 08:49
35 lines
2712 bytes
2712 bytes
On Oct 28, 2023 at 3:32:52 AM CDT, "Jesse Rehmer" <jesse.rehmer@blueworldhosting.com> wrote: > On Oct 27, 2023 at 10:05:42 PM CDT, "Ray Banana" <rayban@raybanana.net> wrote: > >> >> Hi, >> >> the current flood of spam from Google Groups and the corresponding >> amount of NoCeM messages made me consider an overview method that >> does not rely on expireover to remove the overview data for cancelled >> articles. From what I have seen on a test server, ovsqlite seems to >> remove overview data immediately. I have rebuilt the ovdb of a test >> server with ~1,5 million articles in just a couple of minutes and am now >> considering a migration of my main reader server (~50 million articles) >> to ovsqlite. Does anyone have experience and an estimate how long such a >> migration might take on ordinary SATA disks with EXT4 filesystems? > > Not quite the same use case, but I'm rebuilding history and moving to ovsqlite > on 1.5TB / 500 million articles on NVMe storage and it is taking over a week. I should add more flavor, initially I tried rebuilding history+overview as-is (tradspool + tradindexed) and ran into a filesystem issue (filled the ZFS pool too full and performance suffered greatly). That attempt ran from October 14th through the 24th before I ended it. Added storage, rebalanced the ZFS pool, and decided to move to ovsqlite since others had commented it is faster to rebuild than tradindexed. That rebuild has been running since 10/23 and appears to be about half done based on the size of the new history file. I've been able to rsync and ZFS send/receive the entire data set to other servers four times during this period, so this slow behavior isn't a limitation of my system or storage, jacking up the number of lines makehistory processes does not seem to make any difference for me either.
Re: Migrating tradindexed overview to ovsqlite
Author: Jesse Rehmer
Date: Sat, 28 Oct 2023 15:55
Date: Sat, 28 Oct 2023 15:55
43 lines
3198 bytes
3198 bytes
On Oct 28, 2023 at 3:49:58 AM CDT, "Jesse Rehmer" <jesse.rehmer@blueworldhosting.com> wrote: > On Oct 28, 2023 at 3:32:52 AM CDT, "Jesse Rehmer" > <jesse.rehmer@blueworldhosting.com> wrote: > >> On Oct 27, 2023 at 10:05:42 PM CDT, "Ray Banana" <rayban@raybanana.net> wrote: >> >>> >>> Hi, >>> >>> the current flood of spam from Google Groups and the corresponding >>> amount of NoCeM messages made me consider an overview method that >>> does not rely on expireover to remove the overview data for cancelled >>> articles. From what I have seen on a test server, ovsqlite seems to >>> remove overview data immediately. I have rebuilt the ovdb of a test >>> server with ~1,5 million articles in just a couple of minutes and am now >>> considering a migration of my main reader server (~50 million articles) >>> to ovsqlite. Does anyone have experience and an estimate how long such a >>> migration might take on ordinary SATA disks with EXT4 filesystems? >> >> Not quite the same use case, but I'm rebuilding history and moving to ovsqlite >> on 1.5TB / 500 million articles on NVMe storage and it is taking over a week. > > I should add more flavor, initially I tried rebuilding history+overview as-is > (tradspool + tradindexed) and ran into a filesystem issue (filled the ZFS pool > too full and performance suffered greatly). That attempt ran from October 14th > through the 24th before I ended it. > > Added storage, rebalanced the ZFS pool, and decided to move to ovsqlite since > others had commented it is faster to rebuild than tradindexed. That rebuild > has been running since 10/23 and appears to be about half done based on the > size of the new history file. > > I've been able to rsync and ZFS send/receive the entire data set to other > servers four times during this period, so this slow behavior isn't a > limitation of my system or storage, jacking up the number of lines makehistory > processes does not seem to make any difference for me either. If you aren't rebuilding the history file, you'll have a better experience. Spent some time watching system calls and filesystem activity, and the majority of what makehistory is spending time on in my case is dbz related stuff. The ovsqlite-server process is barely doing anything in comparison.
Re: Migrating tradindexed overview to ovsqlite
Author: Julien ÉLIE
Date: Sat, 28 Oct 2023 20:38
Date: Sat, 28 Oct 2023 20:38
43 lines
2803 bytes
2803 bytes
Hi Jesse,
> If you aren't rebuilding the history file, you'll have a better experience.
> Spent some time watching system calls and filesystem activity, and the
> majority of what makehistory is spending time on in my case is dbz related
> stuff.
Just to be sure, did you run makehistory with the -s flag to provide the
estimated number of articles?
It reminds me the issue we recently discussed in this newsgroup about
makedbz. I then reworded INSTALL this way:
"""
Next, you need to create an empty history database. To do this, type:
cd <pathdb in inn.conf>
touch history
makedbz -i -o
makedbz will then create a database optimized for handling about
6,000,000 articles (or 500,000 if the slower tagged hash format is
used). If you expect to inject more articles than that, use the "-s"
flag to specify the number of entries to size the initial history file
for. To pre-size it for 100,000,000 articles, type:
makedbz -i -o -s 100000000
This initial size does not limit the number of articles the news server
will accept. It will just get slower when that size is exceeded, until
the next run of news.daily which will appropriately resize it.
"""
I'm wondering whether you're not running into that issue with
makehistory. I should also update its manual page to emphasize the use
of the "-s" flag :)
--
Julien ÉLIE
« Dans toute statistique, l'inexactitude du nombre est compensée par la
précision des décimales. » (Alfred Sauvy)
Re: Migrating tradindexed overview to ovsqlite
Author: Jesse Rehmer
Date: Sat, 28 Oct 2023 21:53
Date: Sat, 28 Oct 2023 21:53
62 lines
3698 bytes
3698 bytes
On Oct 28, 2023 at 3:38:56 PM CDT, "Julien ÉLIE" <iulius@nom-de-mon-site.com.invalid> wrote: > Hi Jesse, > >> If you aren't rebuilding the history file, you'll have a better experience. >> Spent some time watching system calls and filesystem activity, and the >> majority of what makehistory is spending time on in my case is dbz related >> stuff. > > Just to be sure, did you run makehistory with the -s flag to provide the > estimated number of articles? > > It reminds me the issue we recently discussed in this newsgroup about > makedbz. I then reworded INSTALL this way: > > """ > Next, you need to create an empty history database. To do this, type: > > cd <pathdb in inn.conf> > touch history > makedbz -i -o > > makedbz will then create a database optimized for handling about > 6,000,000 articles (or 500,000 if the slower tagged hash format is > used). If you expect to inject more articles than that, use the "-s" > flag to specify the number of entries to size the initial history file > for. To pre-size it for 100,000,000 articles, type: > > makedbz -i -o -s 100000000 > > This initial size does not limit the number of articles the news server > will accept. It will just get slower when that size is exceeded, until > the next run of news.daily which will appropriately resize it. > """ > > > I'm wondering whether you're not running into that issue with > makehistory. I should also update its manual page to emphasize the use > of the "-s" flag :) Hi Julien, I've had mixed results sizing the history file with makedbz or using the -s flag with makehistory. It seems no matter if appropriately sized or not, once the history file is around 10GB in size performance suffers dramatically. In the previous case, where we were talking about sizing the history file prior to injecting large numbers of articles to a new server, I had a similar experience. Performance started off better *initially* when sized, but after some time in the process it falls off. In that scenario I can start off injecting 10,000+ articles per second at the beginning, but it falls to around 2,000 per second once the history file reaches about 10GB or so. I see basically the same thing with makehistory. The first run I used the -s flag and noticed about a third of the way, according to the previous history file's size, the I/O rate drops off. I can see this in my monitoring software, the metrics of I/O trend downward over the entire process. On round two of makehistory rebuild I did not use the -s flag, I still see the same downward trend in performance, but I saw more I/O happening in the beginning than the first run before it slowed down.
Re: Migrating tradindexed overview to ovsqlite
Author: Julien ÉLIE
Date: Sun, 29 Oct 2023 13:00
Date: Sun, 29 Oct 2023 13:00
16 lines
2008 bytes
2008 bytes
Hi Jesse, > I've had mixed results sizing the history file with makedbz or using the -s > flag with makehistory. It seems no matter if appropriately sized or not, once > the history file is around 10GB in size performance suffers dramatically. Thanks for the feedback. I unfortunately do not have in mind any other setting to test, nor the time to audit and try to improve the performance of dbz. I guess the best step would be to implement a second storage method for the history file, for instance based on SQLite, but that's quite a work too... -- Julien ÉLIE « Et cette même nuit, c'est-à-dire trois semaines plus tard… » (Astérix)
Re: Migrating tradindexed overview to ovsqlite
Author: Jesse Rehmer
Date: Sun, 29 Oct 2023 23:03
Date: Sun, 29 Oct 2023 23:03
18 lines
1833 bytes
1833 bytes
On Oct 29, 2023 at 8:00:28 AM CDT, "Julien ÉLIE" <iulius@nom-de-mon-site.com.invalid> wrote: > Hi Jesse, > >> I've had mixed results sizing the history file with makedbz or using the -s >> flag with makehistory. It seems no matter if appropriately sized or not, once >> the history file is around 10GB in size performance suffers dramatically. > > Thanks for the feedback. > I unfortunately do not have in mind any other setting to test, nor the > time to audit and try to improve the performance of dbz. I guess the > best step would be to implement a second storage method for the history > file, for instance based on SQLite, but that's quite a work too... Understood. I think makehistory will be running for at least a few more days, if there is anything I can do/provide, let me know. I have a clone (or two or three) of this dataset if you ever need a large dataset to play with.
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