Thread View: news.software.nntp
20 messages
20 total messages
Started by Mark Hittinger
Thu, 27 Jun 1996 00:00
Re: Let's put compression into NNTP -- I am willing to pay
Author: Mark Hittinger
Date: Thu, 27 Jun 1996 00:00
Date: Thu, 27 Jun 1996 00:00
60 lines
3594 bytes
3594 bytes
brad@clarinet.com (Brad Templeton) writes: >So I want to investigate getting compression into NNTP, and the hard part, >getting it into lots of people's copies of INN and NNTPD. >I see several ways to do this: >The quick and dirty way is to put in quick transmit compression to sending >programs and INN and NNTPD. Combined with streaming, compress batches >(which gives you 3 to 1 or better on text articles) and send, decompress >on arrival. The disadvantage is lots of CPU for compression. I've experimented with this at Netcom and its probably worth tossing what I learned on the table. I run a large master/slave configuration with lots of slaves in two distant locations. The feeds to the slaves need to be consistent and hot so that everything is synchronized correctly. It is attractive to consider compression in that scenario because xreplic does not have streaming. With a number of streaming feeds you find that response to ihave/sendme feeds suffer and response to reader connects suffer. Unoff4 and two later patches partially address this problem, however, adding a decompression step here makes this worse. I played with a "cxreplic" (compressed xreplic) variant for the slaves but they had a similar problem of poor response to reader connects. I use two feeds to each slave, and the one cxreplic feed would cause the response to cxreplic on the other feed to suffer. I've heard rumors that people are working on making innd connect over a different port for feeds - so that nnrpd can be invoked via inetd. This would solve the reader connect problem. What we probably need to do to solve the streaming/compression response problem is break innd up into some pieces. I am thinking I need a wrapper that binds to port 119 and forks off nnrpd's fast - but also forks off "feed listeners". Seperate feed listeners would solve the ihave/sendme response time problem and we could place the decompression step there. The "feed listeners" prep the incoming feeds for final delivery to an innd. (I realize we'd have some history file problems here guys - but thats another deal :-) ). This also fixes the window where you can't do anything because of expire or because of a renumber. Readers can't connect, you can't post, you can't accept articles from a feed and queue them, etc. For now I've modified nnrpd to drop rejected posts into in.coming ala UUCP days, and then rnews can come in later to clean things up. Theoretically I should still be able to accept articles from a feed into a 'holding area' on my turf while these renumbers are going on. I'd like to hear comments from anybody that is thinking about the "feed listener" idea and find out the achilles heel in it. I know work is in progress on innfeed (the outgoing side of the house), but the incoming side of the house probably needs to be addressed as well. Regards, Mark Hittinger Netcom/Dallas bugs@freebsd.netcom.com
Re: Let's put compression into NNTP -- I am willing to pay
Author: Joe Greco
Date: Thu, 27 Jun 1996 00:00
Date: Thu, 27 Jun 1996 00:00
137 lines
7558 bytes
7558 bytes
In news.software.nntp article <4qt7k2$3hf@dfw-ixnews1.ix.netcom.com>, bugs@freebsd.netcom.com (Mark Hittinger) wrote: :I've experimented with this at Netcom and its probably worth tossing what :I learned on the table. I run a large master/slave configuration with :lots of slaves in two distant locations. The feeds to the slaves need to be :consistent and hot so that everything is synchronized correctly. It is :attractive to consider compression in that scenario because xreplic does :not have streaming. : :With a number of streaming feeds you find that response to ihave/sendme :feeds suffer and response to reader connects suffer. Unoff4 and two later :patches partially address this problem, however, adding a decompression :step here makes this worse. : :I played with a "cxreplic" (compressed xreplic) variant for the slaves but :they had a similar problem of poor response to reader connects. I use :two feeds to each slave, and the one cxreplic feed would cause the response to :cxreplic on the other feed to suffer. : :I've heard rumors that people are working on making innd connect over :a different port for feeds - so that nnrpd can be invoked via inetd. This :would solve the reader connect problem. This is easy to do TODAY - my "connectd" program and a small patch to INN to move "119" to some other port (I use "1119") allow you to do it and also bypass inetd. This allows you to kill readers without having to play games as root to twiddle inetd, and will eventually allow limits on per-host number of simultaneous readers, etc. :What we probably need to do to solve the streaming/compression response :problem is break innd up into some pieces. I am thinking I need a wrapper :that binds to port 119 and forks off nnrpd's fast - but also forks off :"feed listeners". Seperate feed listeners would solve the ihave/sendme :response time problem and we could place the decompression step there. :The "feed listeners" prep the incoming feeds for final delivery to an :innd. (I realize we'd have some history file problems here guys - but :thats another deal :-) ). Been there, done that. The problem is that you cannot afford to dbzincore the history in each of fifty different inbound connections, it eats up too much VM. That is of course the trivial and obvious thing to do. More elegant solutions could include: 1) a shared memory segment for the DBZ index file 2) a master "history" daemon responsible for handling all "external" history reads I went on a rant a few months back about how broken the current paradigm is, and the majority reaction was, "You're outta your mind". See below for a brief overview. :This also fixes the window where you can't do anything because of expire :or because of a renumber. Readers can't connect, you can't post, you :can't accept articles from a feed and queue them, etc. Y...eaaaah... ecchy to do it though (more code). :-) :For now I've modified nnrpd to drop rejected posts into in.coming ala UUCP :days, and then rnews can come in later to clean things up. Theoretically :I should still be able to accept articles from a feed into a 'holding area' :on my turf while these renumbers are going on. Does nnrpd do enough syntax and sanity checking to allow this? (I know, RTFS, I'm just too lazy). :I'd like to hear comments from anybody that is thinking about the "feed :listener" idea and find out the achilles heel in it. I know work is :in progress on innfeed (the outgoing side of the house), but the incoming :side of the house probably needs to be addressed as well. It needs it a hell of a lot more than the outgoing side does, IMNSHO. The problems with outgoing are an ARTIFACT caused by the incoming problems. THIS suggestion, a kind of "first generation" variant of the "multi-process INN news system", is exactly what I think you are looking for: ---------------------- ----------------------------------------- | connectd, bound to | | innd - modified, so that a client may | | reader port (119) | | either connect directly to innd, or | | spawns nnrpd's | | innd can fork it off to "nntpd", based| | asynchronously | | on a configuration file | ---------------------- ----------------------------------------- | | | | | | | ---- ---- ---- ---- ---- ----------------- ----------------- nnrp nnrp nnrp nnrp nnrp | spawned nntpd | | spawned nntpd | ---- ---- ---- ---- ---- ----------------- ----------------- | | in reality it would be ------------------------------------ nicer to have a threaded | historyd - responsible for doing | nnrpd capable of handling | message-ID lookups and returning | multiple nnrp sessions in | ACK/NAK's to the nntpd's | one process... ------------------------------------ INND retains "final control" over everything, and in this particular architecture, the ONLY change that NEEDS to be made to INND is to add code to spawn off connections to nntpd (and that can be functionally similar to or identical to the nnrpd spawning code..). A nntpd would spawn historyd if a historyd was not already running (or if the historyd crashed, etc). Each spawned nntpd would open a connection to the historyd to handle history database transactions. Each spawned nntpd opens a local socket to innd, and handles the front line battle of taking to the remote site. The spawned nntpd would need to understand both streaming and non-streaming protocols, xreplic, etc. It would essentially receive an IHAVE or an article, ask historyd whether or not the article was in history, and based on historyd's response it would either reject the article OR pass it along to phase two processing. At this point we have a clean data stream of articles that have probably not been received locally. Phase two processing involves either handing them off to innd via the local socket, probably with streaming protocol and "takethis", or if innd is throttled or dead, pass it into ~news/in.coming like a UUCP batch would be done. This effectively splits up each inbound feed into a largely asynchronous (yet SMALL) process that continues to run no matter what else is going on. Note: I did a proof-of-concept of all of this. It didn't split the history lookups into a separate process, and it didn't do streaming. It worked _VERY_WELL_ until the feed I was using it on decided to switch from single-channel innxmit to 5-channel innfeed and suddenly I was using 100MB of VM resources for that one feed :-) The code I used -- the reference nntp implementation, very mildly hacked. ... Joe ------------------------------------------------------------------------------- Joe Greco - Systems Administrator jgreco@ns.sol.net Solaria Public Access UNIX - Milwaukee, WI 414/546-7968
Re: Let's put compression into NNTP -- I am willing to pay
Author: Jerry Aguirre
Date: Thu, 27 Jun 1996 00:00
Date: Thu, 27 Jun 1996 00:00
27 lines
2046 bytes
2046 bytes
In article <4qt7k2$3hf@dfw-ixnews1.ix.netcom.com> bugs@freebsd.netcom.com (Mark Hittinger) writes: > >What we probably need to do to solve the streaming/compression response >problem is break innd up into some pieces. I am thinking I need a wrapper >that binds to port 119 and forks off nnrpd's fast - but also forks off >"feed listeners". Seperate feed listeners would solve the ihave/sendme >response time problem and we could place the decompression step there. >The "feed listeners" prep the incoming feeds for final delivery to an >innd. (I realize we'd have some history file problems here guys - but >thats another deal :-) ). The real problem with the "streaming/compression response" relates to innd being a single process and blocking on disk IO. The article create/write needs to be moved out of innd. But one still wants to keep the daemon to update the active, history, and outgoing feeds. What would be nice would be separate processes for each incomming feed. They parse the article and then send off the necessary header information to innd. The new innd would send back the correct newsgroup and article number filing information and the separate daemons would create, write, and link the article. The central daemon would update the active, history, newsfeeds, etc. This way would spread out the write load, minimize data copying, and minimize locking overhead.
Re: Let's put compression into NNTP -- I am willing to pay
Author: T. William Wells
Date: Thu, 27 Jun 1996 00:00
Date: Thu, 27 Jun 1996 00:00
17 lines
1344 bytes
1344 bytes
In article <4qt7k2$3hf@dfw-ixnews1.ix.netcom.com>, Mark Hittinger <bugs@freebsd.netcom.com> wrote: : I've heard rumors that people are working on making innd connect over : a different port for feeds - so that nnrpd can be invoked via inetd. This : would solve the reader connect problem. Actually, what I've done is put two addresses on my ethernet and bound one of them to my version of connectd and the other to innd. This works like a charm; user complaints went away! :-) : For now I've modified nnrpd to drop rejected posts into in.coming ala UUCP : days, and then rnews can come in later to clean things up. Does this do all the checking that inews does? If so, it would be of interest; it's the missing link in my setup.
Re: Let's put compression into NNTP -- I am willing to pay
Author: Brad Templeton
Date: Fri, 28 Jun 1996 00:00
Date: Fri, 28 Jun 1996 00:00
22 lines
1660 bytes
1660 bytes
My own compressor, ISP (which is the one found in StuffIt) tends to do short text news articles by 2 to 1, and can do much better if you batch them of course. But you could improve it even more by pre-loading it with some intelligence about common header strings. Or of course custom compressing headers -- we can of course compress the date header to 4 bytes, and the Newsgroups pretty vastly. Another thing we could do is set up a "path entry" server which would issue serial numbers for sites to use in Path: lines rather than site names. (This is valuable because if you compress articles you must leave certain headers uncompressed or minimally compressed, such as the Path: header, Date:, Newsgroups: and Distribution: lines.) -- Brad Templeton, publisher, ClariNet Communications Corp. info@clari.net The net's #1 E-Newspaper (1,400,000 paid sbscrbrs.) http://www.clari.net/brad/
Re: Let's put compression into NNTP -- I am willing to pay
Author: Mark Delany
Date: Fri, 28 Jun 1996 00:00
Date: Fri, 28 Jun 1996 00:00
85 lines
3751 bytes
3751 bytes
bugs@freebsd.netcom.com (Mark Hittinger) writes: >brad@clarinet.com (Brad Templeton) writes: >>So I want to investigate getting compression into NNTP, >I've heard rumors that people are working on making innd connect over >a different port for feeds - so that nnrpd can be invoked via inetd. This >would solve the reader connect problem. If that is indeed the case, what outstanding problems do you see with compressing transfers? >What we probably need to do to solve the streaming/compression response >problem is break innd up into some pieces. I am thinking I need a wrapper >that binds to port 119 and forks off nnrpd's fast - but also forks off >"feed listeners". >I'd like to hear comments from anybody that is thinking about the "feed >listener" idea and find out the achilles heel in it. I see no need for "feed listerners" as you put it. After all, if you already have a responsive mechanism for readers, who cares if your server takes a minute or so to accept a connect from another server? Also to the point, if innd isn't accepting connections from readers and it isn't accepting connections from feeders, what exactly is it doing? Returning to Brad's original query about compressed NNTP. Well, I have some bad news. Large articles tend not to offer great compression rates using either compress or gzip. To demonstrate this, do the following: find /var/news/alt/binaries -type f -print | grep '[0-9]' | perl -nle 'print if -s > 30000;' | head -100 >/tmp/bin.flist That is, select the first 100 articles that are greater than 30K bytes in size. Next, determine the compressability of the files: cat `cat /tmp/bin.flist` | wc -c cat `cat /tmp/bin.flist` | compress | wc -c cat `cat /tmp/bin.flist` | gzip | wc -c The outputs I got were: 15.6M, 13.6M and 11.3M. I tried this on a number of different samples and the ratios do vary a bit so some caution is needed when interpreting the results. In general though, these results show the maximal compression of articles possible across an NNTP link (in reality, they won't do as well as there are fixed protocol overheads etc). In percentage terms, the above test shows around 13% reduction for compress and about 28% for gzip. That's the case for a stream of compressed data. If compression was done on an article basis (say, uncompressed headers and compressed body) the ratios diminish significantly for small articles but still remain about the same for the large article sample above. The question then is this. Does this sort of saving justify a reworking of NNTP and associated servers to deal with compressed traffic/articles? Would a specialized compressor help? Regarding non-binary articles. I ran the above tests with non-binary groups and the compression ratios are more encouraging, but obviously of less net impact. The other point about non-binary articles is that the header consitutes around 30% of the total article size so an uncompressed header and a compressed body is probably of marginal benefit in the grand scheme of things. Regards.
Re: Let's put compression into NNTP -- I am willing to pay
Author: Shane Castle
Date: Fri, 28 Jun 1996 00:00
Date: Fri, 28 Jun 1996 00:00
83 lines
4152 bytes
4152 bytes
In news.software.nntp, Mark Delany<markd@mira.net.au> wrote:
>bugs@freebsd.netcom.com (Mark Hittinger) writes:
>>brad@clarinet.com (Brad Templeton) writes:
>>>So I want to investigate getting compression into NNTP,
>Returning to Brad's original query about compressed NNTP. Well, I have
>some bad news. Large articles tend not to offer great compression
>rates using either compress or gzip.
>To demonstrate this, do the following:
> find /var/news/alt/binaries -type f -print | grep '[0-9]' |
> perl -nle 'print if -s > 30000;' | head -100 >/tmp/bin.flist
>That is, select the first 100 articles that are greater than 30K bytes
>in size.
>Next, determine the compressability of the files:
> cat `cat /tmp/bin.flist` | wc -c
> cat `cat /tmp/bin.flist` | compress | wc -c
> cat `cat /tmp/bin.flist` | gzip | wc -c
>The outputs I got were: 15.6M, 13.6M and 11.3M.
You have selected the worst-case candidates for compression. Articles
in binary newsgroups are usually uuencoded, producing text files that
do not lend themselves well to compression.
Trying this on some other hierarchy gives much different results. For
example, on my news server, running the above using
"/var/spool/news/comp" as the top-level hierarchy and '10000' as the
size selector in the Perl script gives 3.57x10^6, 1.65x10^6, and
1.28x10^6, or savings of 53.8% for compress and 64.1% using gzip.
>I tried this on a number of different samples and the ratios do vary a
>bit so some caution is needed when interpreting the results.
Yes indeedy.
>In general though, these results show the maximal compression of
>articles possible across an NNTP link (in reality, they won't do as
>well as there are fixed protocol overheads etc).
I think rather that your results show the *minimal* possible
compression of articles.
>That's the case for a stream of compressed data. If compression was
>done on an article basis (say, uncompressed headers and compressed
>body) the ratios diminish significantly for small articles but still
>remain about the same for the large article sample above.
Same results should obtain. As the size of the article grows, the
compression percentage should approach the maximal.
>The question then is this. Does this sort of saving justify a
>reworking of NNTP and associated servers to deal with compressed
>traffic/articles?
I should say emphatically yes.
>Would a specialized compressor help?
Most probably.
>Regarding non-binary articles. I ran the above tests with non-binary
>groups and the compression ratios are more encouraging, but obviously
>of less net impact.
Hmm, just what non-binary groups did you select? If you used the
same size criteria (>30000) then I suspect that you would have
skipped a large number of potentially compressible articles.
>The other point about non-binary articles is that the header
>consitutes around 30% of the total article size so an uncompressed
>header and a compressed body is probably of marginal benefit in the
>grand scheme of things.
It could still result in a total article size that is 50% or less of
the original size.
--
Shane Castle | "Perfection, then, is finally achieved, not
Boulder County Info Svcs | when there is nothing left to add, but when
Boulder CO USA | there is nothing left to take away."
| - Antoine de Saint-Exup�ry
Re: Let's put compression into NNTP -- I am willing to pay
Author: Luca Lizzeri
Date: Sat, 29 Jun 1996 00:00
Date: Sat, 29 Jun 1996 00:00
103 lines
3552 bytes
3552 bytes
On Sat, 29 Jun 1996 13:14:19 GMT, Andrew E. Mileski <aem@ott.hookup.net> wrote:
>>In percentage terms, the above test shows around 13% reduction for
>>compress and about 28% for gzip.
>
>Try 'gzip -9' next time.
>
You can do it for batches. On an article by article basis I think it would
put quite a load on the servers.
Have you tried doing
date
find /var/spool/news -type f -exec gzip -9 {} \;
find /var/spool/news -type f -exec gunzip {} \;
date
on a busy newsserver ? I haven't tried nor have I any intention of doing it.
OTOH, I have tried tarring my news spool (it's very small, I am on a dialup
line and I download a dozen comp.* and news.* groups) and then did gzip -9
on the tarball. Results:
news.tar 29.368.320 bytes
time gzip -9 news.tar
111.80user 2.07system 1:54:54elapsed 99%cpu
news.tar.gz 7.730.835 bytes
So the compressibility of nntp traffic seems very high, though the cpu-load
is quite high.
>Both a 13% and 28% reduction _ARE_ worth the effort.
>
At what cost ? I think something more elegant than pure gzipping is
required. A new message format would be interesting, on the lines of
/*
* This is entirely off the top of my head. Be merciful in your flames
*/
struct article {
char *message-id;
struct Header header;
struct Body body;
}
struct Header {
int length;
char *From;
int *Path; /* array of IP addresses. What about IPv6 ? */
int Nntp-Posting-Host; /* IP address */
int Date; /* long? long long? 64 bits of seconds since the epoch, GMT */
char *Newsgroups;
.
.
}
struct Body {
int length;
char *contents;
}
and so on.
For transfer you can establish the order of transmission of the headers,
and send them, first the fixed length, ever present ones, then the variable
length ones, preceding them with a length byte (is 256 chars enough for
a header ?), lastly the optional and X-* headers with some ad hoc encoding.
You can also compress only body.contents, for more efficient transmission,
modifying only the headers, leaving the body alone while you store it and
pass it on. Decompression would best be handled in the clients, doing it on
the server only for legacy software.
This should take care of great part of the redundancy of NNTP transfers.
You can't do much server-side about the redundancy of usenet discussion :)
The questions are:
1. Would this even work ?
2. Would it be implementable and deployable ?
3. Does a modification of NNTP have a chance in hell of succeeding ?
My answers are:
1,2. Ask me again when I have thought about it. I sure hope so.
3. Judging by the whole QP/MIME/7bit unholy mess the chances look slim,
but the benefits would be great.
[snip]
--
Luca Lizzeri
ll@niche.telnetwork.it
lizzeri@mbox.vol.it
Re: Let's put compression into NNTP -- I am willing to pay
Author: Andrew E. Mileski
Date: Sat, 29 Jun 1996 00:00
Date: Sat, 29 Jun 1996 00:00
32 lines
1724 bytes
1724 bytes
>In percentage terms, the above test shows around 13% reduction for >compress and about 28% for gzip. Try 'gzip -9' next time. Both a 13% and 28% reduction _ARE_ worth the effort. >The question then is this. Does this sort of saving justify a >reworking of NNTP and associated servers to deal with compressed >traffic/articles? Definitely. >Regarding non-binary articles. I ran the above tests with non-binary >groups and the compression ratios are more encouraging, but obviously >of less net impact. Best way to ship binaries is to decode them, then compress them if possible. Decoding alone gives you a 25% savings. >The other point about non-binary articles is that the header >consitutes around 30% of the total article size so an uncompressed >header and a compressed body is probably of marginal benefit in the >grand scheme of things. Headers should be compressed - they contain a lot of redundant info -- Andrew E. Mileski -- aem@ott.hookup.net
Re: Let's put compression into NNTP -- I am willing to pay
Author: Mark Delany
Date: Sat, 29 Jun 1996 00:00
Date: Sat, 29 Jun 1996 00:00
84 lines
4263 bytes
4263 bytes
swcxt@boco.co.gov (Shane Castle) writes: >>Returning to Brad's original query about compressed NNTP. Well, I have >>some bad news. Large articles tend not to offer great compression >>rates using either compress or gzip. >>To demonstrate this, do the following: >> find /var/news/alt/binaries -type f -print | grep '[0-9]' | >> perl -nle 'print if -s > 30000;' | head -100 >/tmp/bin.flist >>That is, select the first 100 articles that are greater than 30K bytes >>in size. >>Next, determine the compressability of the files: >> cat `cat /tmp/bin.flist` | wc -c >> cat `cat /tmp/bin.flist` | compress | wc -c >> cat `cat /tmp/bin.flist` | gzip | wc -c >>The outputs I got were: 15.6M, 13.6M and 11.3M. >You have selected the worst-case candidates for compression. Articles >in binary newsgroups are usually uuencoded, producing text files that >do not lend themselves well to compression. Perhaps the thinking is this: which groups have the largest articles? Which groups are most erratic in terms of volumes per day? Which groups fill up a lot of peoples disk space and which groups tend to be the ones that people turn off first to avoid a lot of these problems? If your answer is the same for most of these questions, then it does follow that they are the ones that you might want to try and compress first (granted, this may not be the ones that Brad wants to compress first). But read on. >>In general though, these results show the maximal compression of >>articles possible across an NNTP link (in reality, they won't do as >>well as there are fixed protocol overheads etc). >I think rather that your results show the *minimal* possible >compression of articles. Certainly my wording wasn't as clear as it could have been. How about ".. show maximal compression of your problem articles using *naive* compression". Which brings us to this rather shameless leading question: >>Would a specialized compressor help? >Most probably. I reckon you can go further than that and say "almost certainly". Now, if others arrive at the same conclusion (and there are other good reasons to do so, such as header to body ratios of non-binary articles, the enormous redundancy in headers, etc) then this is far more significant than it sounds as it means that a trivial solution is almost certainly a waste of time. By trivial I mean any combo of: o compress/gzip body end-to-end o compressed/gzipped socket between servers o compressed/gzipped rnews batched with uucp over tcp/ip (that old bug-bear). To be useful, a specialized compressor will probably deal with headers differently from bodies and it'll probably need to look inside bodies to make content-based decisions. It may also evolve over time as different (de facto) article content types hit the steets. Heck, it may even benefit from doing something similar to VJ header compression at the NNTP level (maybe). In any event, it'll almost certainly need to reach into NNTP in some way. Don't get me wrong, I'm all for compression that saves bandwidth and disk, it's just that Brad is offering money for good reason - it's quite a tough problem. Not the least of which will be "selling" the solution and concomitant changes to a bucket-load of news admins, the growing number of news product vendors and the newly formed NNTP WG. Maybe that's not Brad's concern as he may be satisfied to solve the problem in his sphere of interest, but I sometimes wonder whether inertia is growing more quickly than news volumes. Regards.
Re: Let's put compression into NNTP -- I am willing to pay
Author: Dave Barr
Date: Sat, 29 Jun 1996 00:00
Date: Sat, 29 Jun 1996 00:00
26 lines
1634 bytes
1634 bytes
In article <4r3a58$hf3@nic.ott.hookup.net>, Andrew E. Mileski <aem@ott.hookup.net> wrote: >>In percentage terms, the above test shows around 13% reduction for >>compress and about 28% for gzip. > >Try 'gzip -9' next time. Why? There's no chance that a gzip -9 will be able to keep up with news flow, unless you got a far bigger CPU than I got. >Both a 13% and 28% reduction _ARE_ worth the effort. Perhaps to someone, but even a 28% reduction is only pushing you back down the growth curve about 2-3 months. >Best way to ship binaries is to decode them, then compress them if >possible. Decoding alone gives you a 25% savings. In a perfect world where people only use correctly formed MIME messages, than maybe yes. However writing code to decode messages, especially multi-part ones where you may not get all the parts is decidedly non-trivial. (and very CPU and disk expensive) --Dave
Re: Let's put compression into NNTP -- I am willing to pay
Author: Rich Salz
Date: Sat, 29 Jun 1996 00:00
Date: Sat, 29 Jun 1996 00:00
10 lines
973 bytes
973 bytes
In <4quv0n$run@twwells.com> bill@twwells.com (T. William Wells) writes: >Does this do all the checking that inews does? If so, it would be >of interest; it's the missing link in my setup. Yes. If I could be sure the whole world used my inews, or code like it, then nnrpd wouldn't have to all-but-clone inews. But I couldn't, so it does. /r$
Re: Let's put compression into NNTP -- I am willing to pay
Author: Stan Barber
Date: Sun, 30 Jun 1996 00:00
Date: Sun, 30 Jun 1996 00:00
21 lines
1632 bytes
1632 bytes
In article <4r5cj0$6ou@fugue.clari.net> brad@clarinet.com (Brad Templeton) writes:
>Of course the better plan is to move eventually to creating a class of
>groups where only overview data is sent, not actual articles, and then
>an NNTP server (and newsreaders) which note that an article is not yet
>there, and pull it down into the disk cache on first read.
I agree. I have been working on this idea for a couple of months. Is
anyone else doing this? I think this would be a good time to start
working towards a methodology to do this. My model would have the
servers do most of the work as opposed to readers, but I think both
mechanisms could be accomodated. There are interesting administrative
issues here.
--
Stan | Academ Consulting Services |internet: sob@academ.com
Olan | For more info on academ, see this |uucp: {mcsun|amdahl}!academ!sob
Barber | URL- http://www.academ.com/academ |Opinions expressed are only mine.
Re: Let's put compression into NNTP -- I am willing to pay
Author: Brad Templeton
Date: Sun, 30 Jun 1996 00:00
Date: Sun, 30 Jun 1996 00:00
42 lines
2431 bytes
2431 bytes
In article <LOC.4r4in4$rav@paperboy.osf.org>, Rich Salz <rsalz@osf.org> wrote: >In <4r1478$1f7q@bcx01.boco.co.gov> swcxt@boco.co.gov (Shane Castle) writes: >>You have selected the worst-case candidates for compression. > >No -- he selected the biggest bandwidth hogs and tried to see what >good compression on them would do. > >If alt takes 80% of the bandwidth, and it doesn't compress well, then >it's not clear to me that 10% savings (50% of the other 20%) is worth it. > /r$ I haven't seen figures in a while but the last figures I saw showed alt as around 55% of the volume and I would venture that there is a lot of text there so let's say 40% of volume is pictures. We can cut pictures down to at leat 75% of their size (better because we can cut their headers and pictures even more). So I figure we can cut the volume to .5 x 60% plus .75 x 40% or down to 60% of current volume. So the savings is much more than 10%. If we batch, we can cut the total volume to 48% of current, which is surely worth it. Also, for the fair numbers of sites that don't get alt.binaries, the savings are a good deal greater. Of course the better plan is to move eventually to creating a class of groups where only overview data is sent, not actual articles, and then an NNTP server (and newsreaders) which note that an article is not yet there, and pull it down into the disk cache on first read. Of course, some groups would remain fully distributed, but others would be in this overview only mode. -- Brad Templeton, publisher, ClariNet Communications Corp. info@clari.net The net's #1 E-Newspaper (1,400,000 paid sbscrbrs.) http://www.clari.net/brad/
Re: Let's put compression into NNTP -- I am willing to pay
Author: Rich Salz
Date: Sun, 30 Jun 1996 00:00
Date: Sun, 30 Jun 1996 00:00
11 lines
1063 bytes
1063 bytes
In <4r1478$1f7q@bcx01.boco.co.gov> swcxt@boco.co.gov (Shane Castle) writes: >You have selected the worst-case candidates for compression. No -- he selected the biggest bandwidth hogs and tried to see what good compression on them would do. If alt takes 80% of the bandwidth, and it doesn't compress well, then it's not clear to me that 10% savings (50% of the other 20%) is worth it. /r$
Re: Let's put compression into NNTP -- I am willing to pay
Author: Stan Barber
Date: Mon, 01 Jul 1996 00:00
Date: Mon, 01 Jul 1996 00:00
68 lines
4086 bytes
4086 bytes
In article <4r81s5$duo@fugue.clari.net> brad@clarinet.com (Brad Templeton) writes:
>Quite a few. Consider:
>
>a) What headers get sent? The default overview set of course, but what
>others? Perhaps the article itself should define a set with an
>Overview header that says which headers should be sent as overview.
>For example keywords headers. Also Distribution: must be sent etc.
>Can't have the site define what to send or you quickly get the MINIMUM
>set of all the sites in the path line.
>
>You could send all the header but that's a fair bit of traffic.
Yes, it could be. If the news groups selected were those with big articles,
it could be a big win on overall throughput. In the scheme I have been working
on, I was thinking of large sites that don't want to have large number of
full news servers, but maybe a couple of full news servers and a few
less full news server that would then suck in articles on demand (and cache)
from the full news servers. This would be transparent to the news reading
client. There will still be the same type of relationship between the
news server, except the full news server would be sending something other
than the full article to the less full news servers.
>b) You have to define where the servers are that will have the article.
>Here's where we can get very, very, interesting. If it is defined that
>the locations of the article must be defined in the original article,
>there are some interesting consequences. (This does not require any posting
>site to be on the internet, or up all the time, but rather that it
>contracts with somebody, such as their ISP, and others, to host their
>articles.)
>
> If a site posts lots of big articles, it may suffer a huge
> load. This penalizes such sites, which may or may not be
> what we want.
>
> You can no longer forge a sitename on your posting easily.
> The sites you provide as host must have the article, or a lot
> of people can't read it. Of course you could just list sites
> known to offer all articles to all comers (if there will be such)
> but you can't just insert your article at a general site because
> most sites will refuse to serve up articles they didn't originate,
> and won't accept articles claiming to be from their own site from
> the outside.
...
>c) Of course you don't want every site pulling the article from the posting
>site, do you? More likely that cache sites (often operated by ISPs or for
>money) would appear, and if you wanted an article you would ask your cache
>site to get it, and it would already have it or go get it from the
>originating site.
Under the scheme, I have been working on, there will be some kind of
hierarchical relationship between servers. That's a bit different from the
current arrangements, but, as you noted, many ISPs could service their clients
like this. I am not necessarily advocating the creation of "all comers" server
or "single source" servers.
>The question is, do we want to put this responsiblity on posting sites or
>not?
I don't think the posting sites are critical to this under the scheme I have
been working on.
--
Stan | Academ Consulting Services |internet: sob@academ.com
Olan | For more info on academ, see this |uucp: {mcsun|amdahl}!academ!sob
Barber | URL- http://www.academ.com/academ |Opinions expressed are only mine.
Re: Let's put compression into NNTP -- I am willing to pay
Author: Brad Templeton
Date: Mon, 01 Jul 1996 00:00
Date: Mon, 01 Jul 1996 00:00
68 lines
3960 bytes
3960 bytes
In article <4r6tmp$bie@universal-woman.academ.com>, Stan Barber <sob@ACADEM.COM> wrote: >In article <4r5cj0$6ou@fugue.clari.net> brad@clarinet.com (Brad Templeton) writes: >>Of course the better plan is to move eventually to creating a class of >>groups where only overview data is sent, not actual articles, and then >>an NNTP server (and newsreaders) which note that an article is not yet >>there, and pull it down into the disk cache on first read. > >I agree. I have been working on this idea for a couple of months. Is >anyone else doing this? I think this would be a good time to start >working towards a methodology to do this. My model would have the >servers do most of the work as opposed to readers, but I think both >mechanisms could be accomodated. There are interesting administrative >issues here. Quite a few. Consider: a) What headers get sent? The default overview set of course, but what others? Perhaps the article itself should define a set with an Overview header that says which headers should be sent as overview. For example keywords headers. Also Distribution: must be sent etc. Can't have the site define what to send or you quickly get the MINIMUM set of all the sites in the path line. You could send all the header but that's a fair bit of traffic. b) You have to define where the servers are that will have the article. Here's where we can get very, very, interesting. If it is defined that the locations of the article must be defined in the original article, there are some interesting consequences. (This does not require any posting site to be on the internet, or up all the time, but rather that it contracts with somebody, such as their ISP, and others, to host their articles.) If a site posts lots of big articles, it may suffer a huge load. This penalizes such sites, which may or may not be what we want. You can no longer forge a sitename on your posting easily. The sites you provide as host must have the article, or a lot of people can't read it. Of course you could just list sites known to offer all articles to all comers (if there will be such) but you can't just insert your article at a general site because most sites will refuse to serve up articles they didn't originate, and won't accept articles claiming to be from their own site from the outside. c) Of course you don't want every site pulling the article from the posting site, do you? More likely that cache sites (often operated by ISPs or for money) would appear, and if you wanted an article you would ask your cache site to get it, and it would already have it or go get it from the originating site. I think the ending of forgeries could be a very valuable goal. I mean there could still be forgeries, particularly in groups that are fully fed. (You want groups with more than 1 reader per article to be fully fed, or groups you want fast response on.) The question is, do we want to put this responsiblity on posting sites or not? -- Brad Templeton, publisher, ClariNet Communications Corp. info@clari.net The net's #1 E-Newspaper (1,400,000 paid sbscrbrs.) http://www.clari.net/brad/
Re: Let's put compression into NNTP -- I am willing to pay
Author: Steve Thompson
Date: Wed, 03 Jul 1996 00:00
Date: Wed, 03 Jul 1996 00:00
67 lines
3193 bytes
3193 bytes
-----BEGIN PGP SIGNED MESSAGE-----
In <4r5cj0$6ou@fugue.clari.net> brad@clarinet.com (Brad Templeton) writes:
>I haven't seen figures in a while but the last figures I saw showed alt
>as around 55% of the volume and I would venture that there is a lot of
>text there so let's say 40% of volume is pictures.
>We can cut pictures down to at leat 75% of their size (better because
>we can cut their headers and pictures even more).
>So I figure we can cut the volume to .5 x 60% plus .75 x 40% or down to
>60% of current volume.
>So the savings is much more than 10%.
>If we batch, we can cut the total volume to 48% of current, which is
>surely worth it.
>Also, for the fair numbers of sites that don't get alt.binaries, the savings
>are a good deal greater.
I've got me some grungy 'C' that sits on a channel feed and forks for every n
articles. The child then popen()s something like this:
ssh -c none -C news.foo.bar.net 'rnews >dev/null 2>/dev/null'
and feeds articles to the pipe. Quite simple, and I rarely have more than one
concurrent batch going at once, but it will happily send multiple batches
concurrently on demand.
SSH uses gzip level 1 compression, and I tend to see 2.5:1 compression (w/o
the warez and binaries groups.)
Even though the code does not (yet) deal with error conditions well, it's
improved my pipes (really a drinking straw) congestion significantly. 150000
articles in 16 hours of connect time over 128Kbps. I could probably handle
triple the load if it weren't for the pesky customers.
I suppose I could have done this with UUCP over TCP, but I just couldn't be
bothered, and I bet I get far lower latency.
People interested in the code will have to wait until I rewrite the code as I
kind-of blew it away accidentally. It needed a rewrite anyways.
>Brad Templeton, publisher, ClariNet Communications Corp. info@clari.net
Regards,
-----BEGIN PGP SIGNATURE-----
Version: 2.6.i
iQCVAgUBMdoX0q/aN9TAUvclAQE3KQQAnuwkBCOQmLZ3zqO85kv7wHi+HtQA3Bvf
R0Z/JcdjUwIVI3epklqWltpAA0hb/8o2zTTFrgY03U2WH6WyEZ17hTY0rGZFjAKt
WyHmZRighHesPlVYw0xe4O1EVLF4o/Z/Zgiqtj0nn0K7x8c1tkA1IgmKN+QeDI1B
izH6KmkjvYQ=
=/Xgk
-----END PGP SIGNATURE-----
--
Steve Thompson | What you've been used to / What you've been through / Never
Sysadmin, | known mercy / Have none to show / What you've been used to /
Malcontent | What you've become / A little short of / What you used to
| want. -- MOEV
Re: Let's put compression into NNTP -- I am willing to pay
Author: Jason Fesler
Date: Wed, 03 Jul 1996 00:00
Date: Wed, 03 Jul 1996 00:00
26 lines
1570 bytes
1570 bytes
-----BEGIN PGP SIGNED MESSAGE----- On 27 Jun 1996 00:53:06 -0500, Mark Hittinger <bugs@freebsd.netcom.com> wrote: >I've heard rumors that people are working on making innd connect over >a different port for feeds - so that nnrpd can be invoked via inetd. This >would solve the reader connect problem. Sorry for the late reply .. for what it's worth, we did this change - *very* noticable difference on our smaller news system (one server, several feeds, plus readers). The feed connections are no better or worse (similiar problems being noticed due to streaming, etc) but the readers are seeing connections within 1 second versus 5-60 seconds. -----BEGIN PGP SIGNATURE----- Version: 2.6.2 iQBUAwUBMdnQhVKGVMnAtZW9AQHp8AH42nVyDYsCCOZdGDontOZGG/MIoJGSlgKu U79byIjoD9o4nBBFX/PngP80o1FShrY8s8DjSmVxTCbsgHLHdqnz =pV9y -----END PGP SIGNATURE-----
Re: Let's put compression into NNTP -- I am willing to pay
Author: aem
Date: Wed, 03 Jul 1996 00:00
Date: Wed, 03 Jul 1996 00:00
37 lines
2054 bytes
2054 bytes
In article <4r3q9b$cv@niche.telnetwork.it> you wrote:
: >Try 'gzip -9' next time.
:
: You can do it for batches. On an article by article basis I think it would
: put quite a load on the servers.
:
: Have you tried doing
:
: date
: find /var/spool/news -type f -exec gzip -9 {} \;
: find /var/spool/news -type f -exec gunzip {} \;
: date
:
: on a busy newsserver ? I haven't tried nor have I any intention of doing it.
I think you misunderstood my comment. I don't have a full newsfeed,
so I asked if you (or anybody else) could post some data on using
'gzip -9'. Obviously, you can't.
By no means was I suggesting you had done something wrong.
I have a nearly completed RFC and code that does compression/streaming
under NNTP. It allows for multiple compression schemes too. I was
just hoping for some data on gzip effectiveness.
Thanks.
--
Andrew E. Mileski
mailto:aem@ott.hookup.net My home page http://www.redhat.com/~aem/
Linux Plug-and-Play Project Leader. See URL http://www.redhat.com/pnp/
Red Hat Software sponsors these pages - I have no other affilitation
with Red Hat Software, and I have never used any of their products.
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