🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
9 messages
9 total messages Started by Julien ÉLIE Fri, 20 Nov 2009 23:22
Overview compression (was Re: Agent 6.0 is Released)
#82164
Author: Julien ÉLIE
Date: Fri, 20 Nov 2009 23:22
26 lines
2200 bytes
Hi Mark,

<news:ve2cg55op5kimgdb5shii30l4envl403fj@4ax.com>
> Forte has released Agent 6.0, which includes the
> following enhancements:
>
>   * Faster Usenet header downloads (compressed headers)

  http://www.forteinc.com/release/notes.php?id=60

  "Many news servers, including Forte's APN, are now offering
  message headers using a new, compressed format that enables
  faster and less expensive header downloads.  Agent 6.0 supports
  this new format, and together with APN provides downloads
  that are anywhere from 3- to 10-times faster than with previous
  releases."

Is it the Astraweb implementation?  The Giganews XFEATURE?
Something else?

-- 
Julien ÉLIE

« Plus un ordinateur possède de RAM, plus vite il peut générer
  un message d'erreur. » 
Re: Overview compression (was Re: Agent 6.0 is Released)
#82181
Author: Ralph Fox
Date: Mon, 23 Nov 2009 18:46
35 lines
2293 bytes
On Sat, 21 Nov 2009 00:22:22 +0100, in message <he78bg$8h3$1@news.trigofacile.com> 
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> wrote:

> Hi Mark,

I'm not Mark, but posting a followup anyway...

> <news:ve2cg55op5kimgdb5shii30l4envl403fj@4ax.com>
> > Forte has released Agent 6.0, which includes the
> > following enhancements:
> >
> >   * Faster Usenet header downloads (compressed headers)
> 
>   http://www.forteinc.com/release/notes.php?id=60
> 
>   "Many news servers, including Forte's APN, are now offering
>   message headers using a new, compressed format that enables
>   faster and less expensive header downloads.  Agent 6.0 supports
>   this new format, and together with APN provides downloads
>   that are anywhere from 3- to 10-times faster than with previous
>   releases."
> 
> Is it the Astraweb implementation?  The Giganews XFEATURE?
> Something else?


>From logging the NNTP communication, it seems to be the Giganews
XFEATURE and not the Astraweb XZVER / XZHDR implementation.
(It does not even fallback to using the Astraweb implementation).



-- 
Regards
Ralph
Re: Overview compression (was Re: Agent 6.0 is Released)
#82184
Author: Julien ÉLIE
Date: Mon, 23 Nov 2009 21:55
20 lines
2074 bytes
Hi Ralph,

>> Forte has released Agent 6.0, which includes the
>> following enhancements:
>>
>>   * Faster Usenet header downloads (compressed headers)
>
> From logging the NNTP communication, it seems to be the Giganews
> XFEATURE and not the Astraweb XZVER / XZHDR implementation.
> (It does not even fallback to using the Astraweb implementation).

Thanks for having investigated!

-- 
Julien ÉLIE

« -- Il a beaucoup de talents...
  -- Il est doué ?
  -- Non il est riche. Il a beaucoup de talents d'or. » (Astérix) 
Re: Overview compression (was Re: Agent 6.0 is Released)
#82185
Author: D. Stussy
Date: Mon, 23 Nov 2009 22:42
4 lines
1320 bytes
I'd like to see compression of the overview data - in its storage as well,
not just for transmission to a client.

Re: Overview compression
#82187
Author: Julien ÉLIE
Date: Tue, 24 Nov 2009 06:16
15 lines
2022 bytes
Hi D. Stussy,

> I'd like to see compression of the overview data - in its storage as well,
> not just for transmission to a client.

I do not know how clients (like Forté Agent) behave.
Regarding INN, you can use ovdb with zlib support.

-- 
Julien ÉLIE

« -- Il a beaucoup de talents...
  -- Il est doué ?
  -- Non il est riche. Il a beaucoup de talents d'or. » (Astérix) 
Re: Overview compression
#82201
Author: D. Stussy
Date: Tue, 24 Nov 2009 23:25
38 lines
3240 bytes
"Julien ÉLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message
news:heftn6$l8m$1@news.trigofacile.com...
> Hi D. Stussy,
> > I'd like to see compression of the overview data - in its storage as
well,
> > not just for transmission to a client.
>
> I do not know how clients (like Forté Agent) behave.
> Regarding INN, you can use ovdb with zlib support.

How is this acceptable?

"The ovdb database will take up more disk space for a given spool than the
other overview methods."
 - ovdb(5) man page (Installation section, 3rd paragraph).

So where's the advantage?  The ovdb method suggests an overview allocation
(~1.1kB/article) about 1/4 to 1/2 the size of the spool when the majority
of the articles are small (<4kB) - e.g. a text-only server.  Overview data
in the traditional format .DAT files seems to be as small as about 200
bytes per article (non-replies).  Only when replies are nested 15 deep does
this approach the 1.1kB size of ovdb records.  I can't judge how much space
is allocated to the .IDX files or directory overhead offhand.

Where there's a spool with alot of small messages, do we really need to
keep all the "overview data" in the overview?  With a sufficiently fast CPU
(as compared to network I/O time), wouldn't a 2 field overview structure
do:  Group's message number and storage token?  All other data would be
retrieved on the fly from the storage manager by token (requesting headers
only), parsed, and delivered to the client as requested.  This would be
about 50 bytes per article in actual overview storage (with the rest of the
data from the stored article itself) assuming the article number and token
are stored as text; less for binary article numbers and binary sm tokens
(are these always hexidecimal numbers?) - 18 + 4 (32-bit article #'s) = 22
bytes/article (or 26 bytes for 64-bit article #s) fixed record size; one
structure/file per group.

Re: Overview compression
#82203
Author: Jeffrey M. Vinocur
Date: Wed, 25 Nov 2009 01:18
27 lines
2296 bytes
In article <hehq17$i0o$1@snarked.org>,
D. Stussy <replies@newsgroups.kd6lvw.ampr.org> wrote:
>
>Where there's a spool with alot of small messages, do we really need to
>keep all the "overview data" in the overview?  With a sufficiently fast CPU
>(as compared to network I/O time), wouldn't a 2 field overview structure
>do:  Group's message number and storage token?  All other data would be
>retrieved on the fly from the storage manager by token (requesting headers
>only), parsed, and delivered to the client as requested.

It's not the CPU speed, it's the disk speed.

Obviously this depends tremendously on the spool format and local
configuration, but I just tried `head * > /dev/null` in a few of
my tradspool directories, and it takes a substantial fraction of
a second per thousand articles.  And that's ignoring the overhead
of retrieving via storage manager and then parsing the results.


So I'm not quite sure of a scenario where you have few enough
articles that there won't be overview requests of that magnitude,
but so many articles that you're tight on disk space.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: Overview compression
#82204
Author: D. Stussy
Date: Wed, 25 Nov 2009 07:23
62 lines
4511 bytes
"Jeffrey M. Vinocur" <jeff@litech.org> wrote in message
news:hei0m1$qff$1@puck.litech.org...
> In article <hehq17$i0o$1@snarked.org>,
> D. Stussy <replies@newsgroups.kd6lvw.ampr.org> wrote:
> >Where there's a spool with alot of small messages, do we really need to
> >keep all the "overview data" in the overview?  With a sufficiently fast
CPU
> >(as compared to network I/O time), wouldn't a 2 field overview structure
> >do:  Group's message number and storage token?  All other data would be
> >retrieved on the fly from the storage manager by token (requesting
headers
> >only), parsed, and delivered to the client as requested.
>
> It's not the CPU speed, it's the disk speed.

Technically, it would be both.  However, headers are usually less than 2kB,
so that's really just one disk page read (1-4 sectors depending on sector
size, but always sequential since in the same cluster/page).  For server
software that checks to see if the article is still present before
presenting overview data (e.g. INN: "nnrpdcheckart" = TRUE, defaults to
true), the disk read is already happening, so the true additional overhead
is really just CPU time.

> Obviously this depends tremendously on the spool format and local
> configuration, but I just tried `head * > /dev/null` in a few of
> my tradspool directories, and it takes a substantial fraction of
> a second per thousand articles.  And that's ignoring the overhead
> of retrieving via storage manager and then parsing the results.

Yes, but as most modern OS's cache MRU pages, how fast was the SECOND (and
subsequent) reads?  That should be memory accesses only until purged via an
LRU algorithm.

> So I'm not quite sure of a scenario where you have few enough
> articles that there won't be overview requests of that magnitude,
> but so many articles that you're tight on disk space.

Administrators ahead of time can fix the spool size (especially with the
CNFS storage method), but often have no idea how much overview space is
needed for such (other than ovdb's suggestion).  Do you know how much to
allocate to your overview system?

Also, I have noted that practically all the data (with an occasional
exception from non-latin alphabet groups) is usually 7-bit ASCII, so a
compressed overview data, even with the traditional method, would yield at
least a 12% savings in space (if not more), just for crunching out the high
bit.  A typical line is going to use only about 64 symbols (alphanumerics
plus tab and space, with specials like "<" replacing lesser used letters
like "q" and "z"), so a 200-character text line compressed by LZW78 (which
is less efficient than bz2) would be a maximum of 172.125 bytes (13.9%
smaller, as compared to the 12.5% for losing the high bit).  The
compression ratio only goes up from there as we're at the point where
#_of_symbols < length, so every 2 or more symbols becomes one one coded
entry (every 16 bits becomes 8-10 bits as we approach 1kB in original
length).

As long as the whole lookup process (from storage token fetch to parsing
and sending the TCP packets) occurs faster than the network can send such,
the minimal overview of just article number and token could be more
efficient overall.

Re: Overview compression
#82210
Author: Michael Grimm
Date: Wed, 25 Nov 2009 20:39
18 lines
1838 bytes
D. Stussy <spam+newsgroups@bde-arc.ampr.org> wrote:

[ovdb with zlib needs more disk space than tradindexed]

> So where's the advantage?

IMHO it's the transaction and logging features of a database system. My
server used to be a leaf node run at home, which had to survive a couple
of power failures a year. This hard reset required a complete rebuild of
the overview database in about 80 % of those crashes. After migration to
ovdb I never had to rebuild the overview ever again. Ok, that's only of
anecdotal evidence, no proof, but I will stick with ovdb for the time
being ;-)

Regards,
Michael
-- 
to let
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