Thread View: news.software.nntp
99 messages
99 total messages
Page 2 of 2
Started by R. Joyner
Wed, 17 Sep 1997 00:00
Page 2 of 2 • 99 total messages
Re: *NEW* News Server Software!
Author: Matt Dillon
Date: Fri, 19 Sep 1997 00:00
Date: Fri, 19 Sep 1997 00:00
36 lines
2346 bytes
2346 bytes
:In article <5vt628$hul$1@samba.rahul.net>,
:Rahul Dhesi <c.c.eiftj@84.usenet.us.com> wrote:
:>In <5vsoq5$f20$9@darla.visi.com> drechsau@yuck.net (Mike Horwath) writes:
:>
:>>: - Allow Newsreading with tin/trn/nn directly from the news spool.
:>
:>>Why is this a benefit?
:>
:>NFS sllows random reads and seeks, nntp does not. This has various
:>implications affecting any situation in which you aren't sequentially
:>scanning through entire articles. For example, looking at the first
:>screen of 50 big postings (e.g. in a binaries group) for the one or two
:>that you want.
:>--
:>Rahul Dhesi <dhesi@spams.r.us.com>
Wellll.. I would take an NNTP server over an NFS mount any day of the
week. While it may *seem* more efficient, there are a lot of problems
associated with NFS. For one thing, IP packet fragmentation makes ill-use
of the network; an NNTP server will generally be much kinder. Disk
utilization is another problem... you have absolutely no control of the
server's disk I/O if the client's NFS mount it. You have much greater
control with NNTP server processes. Downed mounts due to dead servers are
harder to deal with then the 'unable to connect' messages you get with
NNTP servers, and your customer base needs to be able to talk to your news
machine with NNTP from their home box, so you need to run an NNTP server
*anyway*. NFS just adds to the maintenance problem. Deploying NNTP
server access is much easier then mounting an NFS spool onto a bunch
of client machines. Security is also an issue, of course.
-Matt
Re: *NEW* News Server Software!
Author: Jeff Garzik
Date: Fri, 19 Sep 1997 00:00
Date: Fri, 19 Sep 1997 00:00
15 lines
1279 bytes
1279 bytes
Rahul Dhesi wrote: > Essentially every standard UNIX program uses this model, and most were > conceived and written long before inn existed. Why is it ridiculous to > expect to be able to continue using them in a News context? It's not... But staying with INN purely for that reason -- singleton article files -- seems a bit, um, out of the ordinary. :) -- Jeff Garzik Quality news feeds News Administrator INN Technical info, Consulting Spinne, Inc. http://www.spinne.com/usenet/
Re: *NEW* News Server Software!
Author: Matt Dillon
Date: Sat, 20 Sep 1997 00:00
Date: Sat, 20 Sep 1997 00:00
26 lines
1621 bytes
1621 bytes
:In article <6010nq$g1t$1@gremlin.cubbyhole.com>,
:Charles <charles@cubbyhole.com> wrote:
:>Rahul Dhesi <c.c.eiftj@84.usenet.us.com> wrote:
:>
:>
:>: The way I do it, I totally ignore the non-relevant people, and count
:>: only the absolute numbers of relevant people. If you can count say
:>...
:>
:>As spock said, the needs of the many, outweigh the needs of the few.
>
:>I use TIN, and I read via NNTP, even when my news machine is my reading
:>machine! The only reason I used to like NFS mounted spools was so I could grep
:>for information in news articles. However, dejanews provides a much more
:>...
Oh, I remember another reason why we stopped using NFS news spools...
users kept greping through them. And greping through them, and greping
through them... sometimes several at once. greping through binaries,
greping */*, doing ls -R's, and so on.
-Matt
Re: *NEW* News Server Software!
Author: Ian Stirling
Date: Sat, 20 Sep 1997 00:00
Date: Sat, 20 Sep 1997 00:00
33 lines
2532 bytes
2532 bytes
Forrest J. Cavalier III <mibsoft@epix.net> wrote: : In article <5vugtaINNmkv@stumble.cis.ohio-state.edu>, : barr@stumble.cis.ohio-state.edu wrote... : [snip] : >If the latter (in combination with a different filesystem) will give you : >an order of magnitude performance improvement, why not do it? The : >code is very much the same with either technique. INN already uses : >its own I/O API layer already. It's just a matter of substituting : >another one. : ....Well, not exactly..... : 1. Last I looked, INN tends to use QIO calls for config files, overviews, : as well as articles. You can't just replace the QIO routines : for only article storage, for example. Silly thought of the day. Write a NFS type interface to the article database, that way it looks like a INN site to all those misc programs, rm purges the article, or marks for expire, etc. -- Ian Stirling. Designing a linux PDA, see http://www.mauve.demon.co.uk/ -----******* If replying by email, check notices in header *******------- Money is a powerful aphrodisiac, but flowers work almost as well. Robert A Heinlein.
Re: *NEW* News Server Software!
Author: Rahul Dhesi
Date: Sat, 20 Sep 1997 00:00
Date: Sat, 20 Sep 1997 00:00
19 lines
1334 bytes
1334 bytes
In <5vuiur$ott$1@earth.execpc.com> jgreco@ns.sol.net (Joe Greco) writes: >Rahul, I present to you, a program I call "diab_read". >Go to http://www.nntp.sol.net/patches/diablo/ and download the UUCP >batcher. Inside is a file called "diab_read.c". If you compile it >with "-DMAINLINE", it becomes a simple Diablo version of cat(1). >It will happily read articles and put them on stdout, so that you >may use many of your favorite utilities. Sounds cool, I will try it. So you *do* agree with me. :-) -- Rahul Dhesi <dhesi@spams.r.us.com>
Re: *NEW* News Server Software!
Author: Charles
Date: Sat, 20 Sep 1997 00:00
Date: Sat, 20 Sep 1997 00:00
31 lines
1883 bytes
1883 bytes
Rahul Dhesi <c.c.eiftj@84.usenet.us.com> wrote:
: The way I do it, I totally ignore the non-relevant people, and count
: only the absolute numbers of relevant people. If you can count say
: 100,000 people reading off the News spool, that's an important bunch of
: people. Their existence isn't negated even if we can find five billion
: others who don't care.
As spock said, the needs of the many, outweigh the needs of the few.
I use TIN, and I read via NNTP, even when my news machine is my reading
machine! The only reason I used to like NFS mounted spools was so I could grep
for information in news articles. However, dejanews provides a much more
useful interface, and I haven't greped a news spool since dejanews came on
line.
Perhaps if MS hadn't kept backwards compatability with real mode DOS apps,
Win95 wouldn't be the brain fart it is today.
Of course OS/2 tried to do that, and it failed in the market.
--
Harnad describes the status of Usenet aptly:
a communication medium with revolutionary intellectual
potential being used mostly as a global graffiti board.
[Harnad 1991]
Re: *NEW* News Server Software!
Author: Steinar Haug
Date: Sat, 20 Sep 1997 00:00
Date: Sat, 20 Sep 1997 00:00
28 lines
1963 bytes
1963 bytes
[Rahul Dhesi] | Suppose you pick the population of live, breathing people on the planet. | Now the fraction that is using either UNIX or nntp is tiny, maybe 0.01%. | Which would seem to prove that both mounted spools and nntp | are totally useless. | | Now pick the population of UNIX shell users who read off the spool. Now | the fraction reading off the spool is 100%. | | The way I do it, I totally ignore the non-relevant people, and count | only the absolute numbers of relevant people. If you can count say | 100,000 people reading off the News spool, that's an important bunch of | people. Their existence isn't negated even if we can find five billion | others who don't care. Their existence may be important to *you* - not to me. *All* my readers are NNTP readers. Never had any complaints about it. I see no reason to offer reading from a local spool (or via NFS). If throwing out the local spool reading capability is *important* to making a better News server, I'd say go for it. If we can make a better server while still keeping the local spool reading capability, fine. Steinar Haug, Nethelp consulting, sthaug@nethelp.no
Re: *NEW* News Server Software!
Author: Rahul Dhesi
Date: Sat, 20 Sep 1997 00:00
Date: Sat, 20 Sep 1997 00:00
32 lines
2028 bytes
2028 bytes
In <5vug69$hmp$1@flea.best.net> dillon@best.net (Matt Dillon) writes: >:>> I would venture to say that more than 15% of my customer base uses a >:>> UNIX shell account to read news via NNTP... > Hmm. A couple of quick ps's and greps on our news boxes reveal > that 37 out of 257 active NNTP connections are coming from our > shell machines. About 14%, so it compares favorably with your > venture. > Still, this is only a very small portion of the userbase. But depending on how you pick the population, you can prove anything. Suppose you pick the population of live, breathing people on the planet. Now the fraction that is using either UNIX or nntp is tiny, maybe 0.01%. Which would seem to prove that both mounted spools and nntp are totally useless. Now pick the population of UNIX shell users who read off the spool. Now the fraction reading off the spool is 100%. The way I do it, I totally ignore the non-relevant people, and count only the absolute numbers of relevant people. If you can count say 100,000 people reading off the News spool, that's an important bunch of people. Their existence isn't negated even if we can find five billion others who don't care. -- Rahul Dhesi <dhesi@spams.r.us.com>
Re: *NEW* News Server Software!
Author: Stephen Pugmire
Date: Sun, 21 Sep 1997 00:00
Date: Sun, 21 Sep 1997 00:00
34 lines
2179 bytes
2179 bytes
On 18 Sep 1997 08:39:17 -0500, jgreco@ns.sol.net (Joe Greco) wrote: >In news.software.nntp article <5vr91t$p2q$2@news1.exit109.com>, Jeremy <jeremy@exit109.com> wrote: >:Rahul Dhesi <c.c.eiftj@84.usenet.us.com> wrote: >: >:> Some things that inn lets me do: >:> >:> - Feed a news-to-mail gateway. > >Diablo could do that. Diablo is approaching the problem from being a news router and needing to add general news server capabilities. It certainly can and probably will sooner or later have all this capability added. With DNEWs we approached from the other direction from a news server designed to handle readers efficiently. Moving away from the general purpose file structure was the only way we could see of improving performance significantly in some areas. It has proved very successful enabling DNEWs to take a full feed several times faster than a standard INN server (if only news volumes would double :-))and we have retained all the normal functionality of new server, there was no significant trade off for us. Coming from the other direction we had to add the news router capability and did this with our 'Live feeds' feature which actually acts just like a news router. (Please note i'm not suggesting you use DNEWS where you should be running a news router....only that if your running the server and need to send out a few dozen feeds it does it efficiently) .Its good to see the increased interest and continuing development that I read about here. Cheers Steve
Re: News data storage model
Author: Curt Welch
Date: Sun, 21 Sep 1997 00:00
Date: Sun, 21 Sep 1997 00:00
41 lines
2669 bytes
2669 bytes
olaf@bigred.inka.de (Olaf Titz) wrote: > (*) A minimalistic approach to a better article storage on the Un*x > filesystem: take a hash from the Message-ID as file name. Simply run > an MD5 on it, encode that in hex or base64, split the string at regular > intervals with slashes so directories don't get to full. > That's all. Example: > <foobarfrotz@bigred.inka.de> > => 01e04eacbe69a317314943ed6ad790e0 (hex) > => /var/spool/news/articles/01e0/4eac/be69/a317/3149/43ed/6ad7/90e0 > Where exactly to split would warrant some careful analysis, taking > into account how many files or subdirectories the average directory > would get vs. the number of lookups required to get at one article. > I haven't done that. This scheem has the problem that it's not optimal for feeding, reading or expiring. Disk and directory activity is randomized for everything so nothing ends up being in the cache (or you need a much larger cache to make it work as well). The formats that make the most sense for todays Usenet are the ones that optimize the structure for feeding and expiring (which is what news systems spend the most time working on). If you use a Unix FS as the underlying storage (which I think still makes a lot of sense), then you want to arrange articles in the order they arrive (which is also the order you send them out in, and the order you expire them in). The overview-like DB is what makes reading efficent. And because even on a heavy news-reading machine, most news groups will never be read, I think it probably makes sense to only build a small over-view index, and extract (and cache) the bulk of the overview data only on demand. Creating and cahching the over-view data as needed should make a machine used only for feeding almost as effecent as one running feed-only software like Diablo. Or at least it seems that way to me without working out the details... Curt Welch curt@kcwc.com http://CurtWelch.Com/
Re: *NEW* News Server Software!
Author: Matt Dillon
Date: Sun, 21 Sep 1997 00:00
Date: Sun, 21 Sep 1997 00:00
31 lines
1981 bytes
1981 bytes
:In article <34258f8a.77638297@news.iconz.co.nz>,
:Stephen Pugmire <netwin@netwinsite.com> wrote:
:>On 18 Sep 1997 08:39:17 -0500, jgreco@ns.sol.net (Joe Greco) wrote:
:>
:>>In news.software.nntp article <5vr91t$p2q$2@news1.exit109.com>, Jeremy <jeremy@exit109.com> wrote:
:>>:Rahul Dhesi <c.c.eiftj@84.usenet.us.com> wrote:
:>>:
:>>:> Some things that inn lets me do:
:>>:>
:>>:> - Feed a news-to-mail gateway.
:>>
:>>Diablo could do that.
:>
:>Diablo is approaching the problem from being a news router and needing
:>to add general news server capabilities. It certainly can and probably
:>will sooner or later have all this capability added. With DNEWs we
Well, not exactly. I just wrote the router part first. I had a general
design for the whole thing (reader and router) in mind when I started
the whole project. The two parts are being kept separate by design and I
do not expect the routing portion of the system to grow much larger
then the current release. The overall idea is to implement a mix-and-match
approach to both problems. This was relatively easy for the routing
portion, since it can inherently handle redunancy. It's bunches more
difficult for the reader portion.
-Matt
News data storage model
Author: Olaf Titz
Date: Sun, 21 Sep 1997 00:00
Date: Sun, 21 Sep 1997 00:00
114 lines
6545 bytes
6545 bytes
bill davidsen <davidsen@tmr.com> wrote:
> | A specialized efficient implementation on a raw device could
> | outperform the current method vastly. From the Un*x POV it doesn't
> | look elegant, but who cares?
> I buy outperform, but "vastly?" I've done some Oracle benchmarks on
> SCO UNIX and Unisys SVR4, and access into a large file using o/s
> caching is not a lot slower than access into a raw partition using
> your own caching. I saw something in the order of 5-10% (Note: for
I didn't mean the Oracle comparison - "own FS on top of a single huge
Un*x file vs. own FS on a raw partition". I thought of the comparison
"own FS vs. storing everything in Un*x files and using Un*x
directories for management".
> think that going to a conventional f/s using more articles per file
> will give us at least an order of magnitude improvement.
May well be, given the particular inefficiencies of the Un*x directory
system. (Just yesterday I had to eliminate a control.cancel directory
which had grown to >300,000 files. :-()
I think (never saw it) the CNFS approach works this way. Note that
this already does the important step: away from the Un*x filesystem
management, towards an own FS.
This could be done even more radically. I imagine the following model
for news data storage:
We need two different types of file here: Variable-length-record
indexed files for _newsgroup directories_ (in conventional terms:
overview database) and _article directory_ (i.e. history database).
And sequential files for the articles themselves. Nothing more.
An implementation for sequential files can be very simple and fast.
I'd follow the old model of internally linked block lists: write the
block# of the next block of a file into the block itself. The access
path to an article files is its first block#. This almost completely
eliminates any management data structures for these files (other than
a free block bitmap).
Now for the index files. We need an article directory holding an index
for each article on the system, combined with additional info
regarding that article, indexed by Message-ID. Perhaps the hash
structure we have now is good enough for that, but it would be nicer
to design a structure where you can do deletions as well.
And we need one group directory per group, holding the complete list
of that newsgroup. Just think about it: use an overview file for that,
and you have all necessary information. You just don't need the
conventional article directories at all. (*)
Of course this can be tuned better. The group directories should be
indexed by article# for fast lookup (ARTICLE n). The index should be
organized in a way that traversal of those indices is easy (LISTGROUP,
XOVER). The B+ tree comes to mind as the canonical useful structure
for such requirements, but we could perhaps even do this in a simpler
way exploiting the fact that insertions always are made at one end of
the index space (deletions are not - expire really complicates the
whole model).
The group directories should contain more info than just the overview
record, but that's easy. Add the block# of the articles for simple and
fast access to the article files (perhaps even add a pointer to the
start of the body for the BODY command), add arrival and (where
applicable) expire time.
Now how to store this on Un*x? First, the active, newsgroups etc files
may remain like now (esp. taking a memory mapped active file into
account). Then pack everything described above into a single structure
and run that on its own raw partition(s). Or simpler: put the
article storage on a (set of) raw partition(s), and put the indexed
files into Un*x files a la DBM.
Now the fine print: on all files, implement clean locking mechanisms
so that concurrent write access on all of them is possible. I really
like the idea that expire should be a continuously running daemon
which always just deletes the oldest files in a set of newsgroups,
until enough space is free. (**) I also like the idea that this daemon
would be able to clean up overview entries (even history too?) along.
Dito for NoCeM processing.
With a considerable amount of work, perhaps this all could even be
integrated into INN, even if the result wouldn't look much like INN
any more (but there is a solid code base). We'd just need some
mechanism of access to articles from external programs, to implement
things like channel feeds. An inelegant but working solution would be
a separate daemon that acts as a (read only) NFS server for that.
There are other possibilities as well.
(*) A minimalistic approach to a better article storage on the Un*x
filesystem: take a hash from the Message-ID as file name. Simply run
an MD5 on it, encode that in hex or base64, split the string at regular
intervals with slashes so directories don't get to full.
That's all. Example:
<foobarfrotz@bigred.inka.de>
=> 01e04eacbe69a317314943ed6ad790e0 (hex)
=> /var/spool/news/articles/01e0/4eac/be69/a317/3149/43ed/6ad7/90e0
Where exactly to split would warrant some careful analysis, taking
into account how many files or subdirectories the average directory
would get vs. the number of lookups required to get at one article.
I haven't done that.
(**) I have hacked up an old version of dexpire to run as a daemon.
Never got into trouble with full disks since. To be published soon.
olaf
--
___ Olaf.Titz@inka.de or @{stud,informatik}.uni-karlsruhe.de ____
__ o <URL:http://www.inka.de/~bigred/> <IRC:praetorius>
__/<_ >> Just as long as the wheels keep on turning round
_)>(_)______________ I will live for the groove 'til the sun goes down << ____
Re: *NEW* News Server Software!
Author: Ian G Batten
Date: Mon, 22 Sep 1997 00:00
Date: Mon, 22 Sep 1997 00:00
29 lines
1734 bytes
1734 bytes
-----BEGIN PGP SIGNED MESSAGE----- In article <00003423060D.NO_UCE@mauve.demon.co.uk>, Ian Stirling <00003423060D.NO_UCE@mauve.demon.co.uk> wrote: > Write a NFS type interface to the article database, that way it looks like > a INN site to all those misc programs, rm purges the article, or marks > for expire, etc. We've written NFS interfaces to a management system (you can cd and ls around the object heirarchy, then cat the objects) and it works fine. I originally wrote a manfs as a proof of concept, so you mount a hierarchy of roff source but cat gets it ready-roff'd, and it's fairly trivial. So yes, an NFS interface to a non-standard heirarchy would be a very good idea. ian -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 5.0i for non-commercial use Charset: noconv iQB1AwUBNCYQKMoy0yij3IvtAQFMZgL+OVthCcAADc7r8zm01dcvtEWSLXWsL9YS 5RNa9MMiBlfmVDGkIV42Skl2qs7dT6dvbpgvcSqNitqP0ZUPBahhcZkae3R2XvXg RJuzW9j6/iYcFPPsyWsxMHpfZUN87/Fb =ICCW -----END PGP SIGNATURE-----
Re: *NEW* News Server Software!
Author: brian moore
Date: Mon, 22 Sep 1997 00:00
Date: Mon, 22 Sep 1997 00:00
24 lines
1712 bytes
1712 bytes
In article <6063ke$2fu4$1@newssvr03-int.news.prodigy.com>, davidsen@tmr.com (bill davidsen) writes: > And I'm rewriting all my SPAM filters and stuff from perl (proof of > concept) to C. I want to get them efficient *before* I run out of > power to keep them going. Actually, this surprised the hell out of me: the perl filters are surprisingly cheap. Jeff's used about 1.5ms/article and discarded a ton of spam. It's nice being able to reload them on the fly. (One day, when I have lots o' time, I want to see if I can make a dynamically loadable C function... but for now the perl filters do wonders and do it cheaply.) Be nice to your spool, your readers and your peers (and Usenet) and use filters. -- Brian Moore The opinions expressed above are my own, not Sysadmin, C/Perl Hacker necessarily my employers'.
Re: *NEW* News Server Software!
Author: Jeremy
Date: Mon, 22 Sep 1997 00:00
Date: Mon, 22 Sep 1997 00:00
22 lines
1465 bytes
1465 bytes
brian moore <bem@news.cmc.net> wrote:
> (One day, when I have lots o' time, I want to see if I can make a
> dynamically loadable C function... but for now the perl filters do
> wonders and do it cheaply.)
>
> Be nice to your spool, your readers and your peers (and Usenet) and
> use filters.
Incidentally, I have a nice filter running which incorporates Jeff's
EMP filter, with some additions, as well as a bunch of other stuff.
Currently nuking 200k/day. Brian has tried it, so he can tell you
how well it works. :) I don't have it on a webpage yet, but if
anyone wants it, just email me. It requires a tiny innd patch,
which is included for 1.5.1.
--
Jeremy | jeremy@exit109.com
"Bunch of savages in this town!" --Dante ("Clerks")
Re: News data storage model
Author: bill davidsen
Date: Mon, 22 Sep 1997 00:00
Date: Mon, 22 Sep 1997 00:00
55 lines
3370 bytes
3370 bytes
In article <603943$rc2$1@bigred.inka.de>,
Olaf Titz <olaf@bigred.inka.de> wrote:
| May well be, given the particular inefficiencies of the Un*x directory
| system. (Just yesterday I had to eliminate a control.cancel directory
| which had grown to >300,000 files. :-()
May I recommend running prune from time to time (like hourly) to fix
that...
| Now the fine print: on all files, implement clean locking mechanisms
| so that concurrent write access on all of them is possible. I really
| like the idea that expire should be a continuously running daemon
| which always just deletes the oldest files in a set of newsgroups,
| until enough space is free. (**) I also like the idea that this daemon
| would be able to clean up overview entries (even history too?) along.
| Dito for NoCeM processing.
Delete the oldest *really* doesn't work! You want to be able to
retain by group. To this end you can do expire at the time the
article is received, and put it in a file which will be deleted at
date D. If space gets tight you can always creep up on the date. You
really need a way to handle minimum retension, though, so that
things like a FAQ don't expire prematurely.
I would love to get rid of the current overlap in overview files,
with an entry in every group of a cross post. I just haven't been
able to make something else run as fast in all cases. There are lots
of people who are really good at database stuff, who might be able
to meet all goals of (a) small, (b) fast in real time, and (c) low
use of CPU overall. I get at most two of three.
| (*) A minimalistic approach to a better article storage on the Un*x
| filesystem: take a hash from the Message-ID as file name. Simply run
| an MD5 on it, encode that in hex or base64, split the string at regular
| intervals with slashes so directories don't get to full.
I don't think you want to use a directory system at all for maximum
speed. On a loaded server I see file open rates of ~300/sec, which
is undesirable to say the least. Putting multiple articles in a
single group can help that.
Since you can have cross posting, you need two improved data
structures, an article structure which can hold multiple articles in
a single file, and a directory structure which can point to an
article within a file. This becomes an interesting tradeoff between
space and performance.
--
bill davidsen <davidsen@tmr.com>
Carolyn replied, "But I'm not that silly girl you roomed with for four
years anymore! I've cleaned up my act! I've given up hallucinogenic
drugs, and only have sex with vertebrate mammals."
Re: *NEW* News Server Software!
Author: brian moore
Date: Mon, 22 Sep 1997 00:00
Date: Mon, 22 Sep 1997 00:00
21 lines
1712 bytes
1712 bytes
In article <606duf$7u5$1@news1.exit109.com>, Jeremy <jeremy@exit109.com> writes: > Incidentally, I have a nice filter running which incorporates Jeff's > EMP filter, with some additions, as well as a bunch of other stuff. > Currently nuking 200k/day. Brian has tried it, so he can tell you > how well it works. :) I don't have it on a webpage yet, but if > anyone wants it, just email me. It requires a tiny innd patch, > which is included for 1.5.1. Without it, I had zero idle time. It's saved the purchase of RAM for a couple months probably since I don't have the RAM to use Clayton's dbz (which works great until I expire and then go into swap thrashing). I got idle time back, a cleaner spool, and happier readers. :) -- Brian Moore The opinions expressed above are my own, not Sysadmin, C/Perl Hacker necesarily my employers'.
Re: News data storage model
Author: Simon Leinen
Date: Mon, 22 Sep 1997 00:00
Date: Mon, 22 Sep 1997 00:00
21 lines
1558 bytes
1558 bytes
olaf@bigred.inka.de (Olaf Titz) writes: > May well be, given the particular inefficiencies of the Un*x > directory system. Note that this is not inherent to Unix, but to specific file systems under Unix. Nobody prevents you from using a file system with more efficient directory access under Unix. Silicon Graphics XFS has more efficient representations for very large directories, as have Network Appliance NFS servers. It's a bit ironical that Sun, who I think invented the virtual file system interface that makes implementing new file system types much easier, still ship Berkeley "F"FS as their standard file system. > (Just yesterday I had to eliminate a control.cancel directory which > had grown to >300,000 files. :-() -- Simon.
Re: *NEW* News Server Software!
Author: Joe Greco
Date: Mon, 22 Sep 1997 00:00
Date: Mon, 22 Sep 1997 00:00
27 lines
1540 bytes
1540 bytes
In news.software.nntp article <5vv944$230$1@samba.rahul.net>, c.c.eiftj@84.usenet.us.com (Rahul Dhesi) wrote: :In <5vuiur$ott$1@earth.execpc.com> jgreco@ns.sol.net (Joe Greco) writes: : :>Rahul, I present to you, a program I call "diab_read". : :>Go to http://www.nntp.sol.net/patches/diablo/ and download the UUCP :>batcher. Inside is a file called "diab_read.c". If you compile it :>with "-DMAINLINE", it becomes a simple Diablo version of cat(1). : :>It will happily read articles and put them on stdout, so that you :>may use many of your favorite utilities. : :Sounds cool, I will try it. : :So you *do* agree with me. :-) Only if your position somehow involves the ability to adapt the old to work with the new. ;-) "Gotta use Diablo." 1.12 looks like a winner. Not that previous versions weren't. :-) ... JG
Re: *NEW* News Server Software!
Author: bill davidsen
Date: Mon, 22 Sep 1997 00:00
Date: Mon, 22 Sep 1997 00:00
49 lines
3137 bytes
3137 bytes
In article <5vun5f$21h$1@ftel.ftel.co.uk>,
Ian G Batten <I.G.Batten@batten.eu.org> wrote:
| -----BEGIN PGP SIGNED MESSAGE-----
|
| In article <5vu5th$1h5m$1@newssvr03-int.news.prodigy.com>,
| bill davidsen <davidsen@tmr.com> wrote:
| > What you are proposing is about as practical as requiring CPU
| > vendors to increase performance so you can use a bubble sort, so you
| > don't have to use one of those complex new fangled sorts instead.
|
| I'd argue that's exactly what the CPU manufacturers _have_ done, in
| fact. Consider the sort of problems that ten years ago on desk-top
| systems would require careful tuning, both of algorithms and
| implementation, to run in less than a few hours. Desk-top in that
| context means Sun 3/60, 8MB or a Sparc One or something. These days an
| equivalent desktop is a 200MHz UltraSparc with half a gig of memory.
| Suddenly you can just write the code the obvious way, using perl, or
| lisp, or some other previous ``inefficient'' language.
Well, looking at the timescale and ecconomics of changing INN vs.
increasing disk preformance, I'd say that the ~100x reduction in
disk activity which you can get by redoing the file organization is
a better candidate for adoption than waiting for disks to get to sub
ms. seek times.
And I'm rewriting all my SPAM filters and stuff from perl (proof of
concept) to C. I want to get them efficient *before* I run out of
power to keep them going.
| Since kernel improvement often maintain ABI, even more often API and at
| worst require very localised changes, you leverage all the existing
| code: it _all_ goes quicker. Hack away at the applications and every
| application needs changing. And of course a filesystem with O(1) of
| O(logN) or something open() times speeds up _all_ your computing.
I expect to see a better INN in six months or less. If you can
deliver a new version of all my operating systems which obviates the
need for this... Operating system are written to support the general
case, not to please some application which insists on being
inefficient (or INNefficient if you like puns).
--
bill davidsen <davidsen@tmr.com>
Carolyn replied, "But I'm not that silly girl you roomed with for four
years anymore! I've cleaned up my act! I've given up hallucinogenic
drugs, and only have sex with vertebrate mammals."
Re: *NEW* News Server Software!
Author: Jim Seymour
Date: Mon, 22 Sep 1997 00:00
Date: Mon, 22 Sep 1997 00:00
31 lines
1855 bytes
1855 bytes
In article <5vu23r$h5t$8@darla.visi.com>,
drechsau@yuck.net (Mike Horwath) writes:
> Jeff Garzik <jeff.garzik@spinne.com> wrote:
>: P.S. Reading news from shell accounts? Wow.
>
> Is there something weird about that?
It's the way *I* used to do it--and sometimes still do--so not
by me, it's not.
>
> I don't use no point-and-clickity item to read news or email and most
> admins I know don't either. Well, the good admins I know,
And there I was thinkin' I was a Good Admin. (see below)
> the bad
> ones enjoy things like MSIE for their email <shivver>.
<shudder> would be more like it.
Regards,
Jim "thinks KNews is just the *slickest* thing" Seymour
--
Jim Seymour | Seen whilst compiling TIFF on his Sun box...
jimsun!jseymour@medar.com | "Configuring TIFF Software v3.4beta024.
| Reading site-wide parameters from ./config.site.
| Oh no, not another sparc-sun-solaris2.4 system..."
Re: News data storage model
Author: Forrest J. Cavalier III
Date: Mon, 22 Sep 1997 00:00
Date: Mon, 22 Sep 1997 00:00
22 lines
1404 bytes
1404 bytes
In article <6062ll$2m0a$1@newssvr03-int.news.prodigy.com>, davidsen@tmr.com wrote... [snip] >able to make something else run as fast in all cases. There are lots >of people who are really good at database stuff, who might be able >to meet all goals of (a) small, (b) fast in real time, and (c) low >use of CPU overall. I get at most two of three. Standard engineering situation: Small, Fast, Cheap. Pick two. Satisfying all three is not usually dependent on choice of people, it is dependent on the task. Some tasks are just too tough. Note that you CAN trade off "Cheap in operation" vs "Cheap to design." Anyone up for recoding INN in assembly? Forrest
Re: *NEW* News Server Software!
Author: bill davidsen
Date: Tue, 23 Sep 1997 00:00
Date: Tue, 23 Sep 1997 00:00
24 lines
1768 bytes
1768 bytes
In article <6068i9$kgt$1@news.cmc.net>, brian moore <bem@news.cmc.net> wrote:
| In article <6063ke$2fu4$1@newssvr03-int.news.prodigy.com>,
| davidsen@tmr.com (bill davidsen) writes:
|
| > And I'm rewriting all my SPAM filters and stuff from perl (proof of
| > concept) to C. I want to get them efficient *before* I run out of
| > power to keep them going.
|
| Actually, this surprised the hell out of me: the perl filters are
| surprisingly cheap. Jeff's used about 1.5ms/article and discarded a
| ton of spam. It's nice being able to reload them on the fly.
If you have code which will do a CRC in 10ms in perl I'll forget C.
But that doesn't appear to be the case. I suspect there's a diferent
method being used to catch the spam.
--
bill davidsen <davidsen@tmr.com>
The net serves four of the five physical senses. You can get sight, and
sound, and to a limited extent tactile feedback. No one would deny that
some portions of the net smell, but I see no signs that taste will ever
come to the net. -me
Re: News data storage model
Author: bill davidsen
Date: Tue, 23 Sep 1997 00:00
Date: Tue, 23 Sep 1997 00:00
74 lines
4434 bytes
4434 bytes
In article <60677n$h8p$1@bigred.inka.de>,
Olaf Titz <olaf@bigred.inka.de> wrote:
| bill davidsen <davidsen@tmr.com> wrote:
| > Delete the oldest *really* doesn't work! You want to be able to
| > retain by group. To this end you can do expire at the time the
| > article is received, and put it in a file which will be deleted at
| > date D. If space gets tight you can always creep up on the date. You
| > really need a way to handle minimum retension, though, so that
| > things like a FAQ don't expire prematurely.
|
| This doesn't work either because you can't tune the expire priorities
| for existing articles. This is an important maintenance operation even
| if you do dynamic expire times.
Everyone has their preferences. I don't change that often that I
can't simply expire a little faster using the old policy until the
new one takes effect. And there's no reason you can't do a dynamic
change if you're willing to do the disk i/o.
| My experience with a severely hacked
| dexpire shows that delete the oldest articles (where "age" is a
| function of the real age and the group-specific priority(*)) works much
| more smoothly, especially if implemented as a daemon process which
| runs continuously or semi-continuously. And it _does_ work. :-)
| (Articles with explicit expire times are simply ignored by this
| process. They are processed by the history file, or in my
| implementation, by a separate database of explicit expire times.)
If you don't have a requirement for articles which are "nailed up"
that works. I have just expired on effective age at some sites, and
it worked well. But as an "only option" I don't think it flies.
perhaps putting the posts with absolute expiry in other files would
be a solution.
| > I would love to get rid of the current overlap in overview files,
| > with an entry in every group of a cross post. I just haven't been
| > able to make something else run as fast in all cases. There are lots
| > of people who are really good at database stuff, who might be able
| > to meet all goals of (a) small, (b) fast in real time, and (c) low
| > use of CPU overall. I get at most two of three.
|
| If the database consisting of articles, history and overview were
| normalized as of RDBMS theory, we would just have groups as lists of
| Message-IDs and every article access via Message-ID. This is
| inefficient wrt. disk accesses and would lose crosspostings in groups
| with different expire times.
Yes, all of what you say. That's just the problem I hit, the things
which are good practice and only have the information in one place
are also much slower than having a single prebuilt file per group.
Having a group be just a list is good practice, but it often entails
i/o costs.
| Since news servers are generally I/O bound, I would place your
| condition (c) lowest on the priority list. Small number of disk
| accesses for each operation should be of greater concern, and this
| fits both (a) and (b). This requires well-constructed index
| structures.
That's only true within a small range. A lot of things are done by
each reader, so a small CPU cost gets out of hand very quickly.
Things in the daemon happen once, so tradeoffs there are easier to
make. Anything in the reader processes has a high multiplier factor,
at least in serious servers.
--
bill davidsen <davidsen@tmr.com>
The net serves four of the five physical senses. You can get sight, and
sound, and to a limited extent tactile feedback. No one would deny that
some portions of the net smell, but I see no signs that taste will ever
come to the net. -me
Re: *NEW* News Server Software!
Author: Bill Gunshannon
Date: Wed, 24 Sep 1997 00:00
Date: Wed, 24 Sep 1997 00:00
39 lines
2295 bytes
2295 bytes
In article <60blkj$im8$1@Mercury.mcs.net>, les@MCS.COM (Leslie Mikesell) writes: |> |> Also many filesystems don't shrink the size of a directory even |> if you remove most of the files. |> |> Does anyone have trouble with INN's speed when you first start it |> on a new filesystem? Has anyone attempted a fix to INN that built |> deep directory trees instead of fat ones by mangling the filenames |> to keep from ever putting more than a few hundred in the same directory? |> |> I suppose you could fake this transparently in a filesystem layer with |> some name hashing tricks. Or what about this idea?? (And this is just off the top of my head with no real research.) Why not break the group/directories down by date?? Every 24 hours you create a new sub-directory for that 24 hour period. It should be fairly easy get INN to create the new directories and if the filenames continue to be just an ascending set of numbers there should not be any real deep changes to make. NNRPD should be easy to fix as well. (Or so it seems to me, anyway.) This should make expire work more efficiently as well and it should also cure the problem of the non-shrinking directory as after all the files in a given directory are expired, you merely remove it. Comments?? bill -- Bill Gunshannon | de-moc-ra-cy (di mok' ra see) n. Three wolves bill@cs.uofs.edu | and a sheep voting on what's for dinner. University of Scranton | Scranton, Pennsylvania | #include <std.disclaimer.h>
Re: *NEW* News Server Software!
Author: Brett Rabe
Date: Wed, 24 Sep 1997 00:00
Date: Wed, 24 Sep 1997 00:00
20 lines
1246 bytes
1246 bytes
Joe Greco wrote:
> "Gotta use Diablo."
>
> 1.12 looks like a winner. Not that previous versions weren't. :-)
Joe, quit reading news and get back to writing the reader portion
of the Diablo package. :-) :-)
Brett
--
Brett Rabe Email : brett@uswest.net
Systems Administrator - !nteract Services Phone : 612.664.3078
600 Stinson Blvd. Pager : 612.613.2549
Minneapolis, MN USA 55413 Fax : 612.664.4770
If you aren't the lead dog, the view is always the same.
Re: *NEW* News Server Software!
Author: Marc Slemko
Date: Wed, 24 Sep 1997 00:00
Date: Wed, 24 Sep 1997 00:00
18 lines
1616 bytes
1616 bytes
In <60blkj$im8$1@Mercury.mcs.net> les@MCS.COM (Leslie Mikesell) writes: >Does anyone have trouble with INN's speed when you first start it >on a new filesystem? Has anyone attempted a fix to INN that built >deep directory trees instead of fat ones by mangling the filenames >to keep from ever putting more than a few hundred in the same directory? Sure, people have done that. It helps. The problem is that you still have the overhead of metadata updates. On nearly any filesystem, that metadata is going to be in a different physical location and is going to be more than the minimum required for this application. If you store a whole bunch of articles in one file, you can store nearly all of the information about the article in one place and you avoid making those metadata updates for each and every article. It makes a huge difference, and works quite well.
Re: *NEW* News Server Software!
Author: Vidar Hokstad
Date: Wed, 24 Sep 1997 00:00
Date: Wed, 24 Sep 1997 00:00
30 lines
2301 bytes
2301 bytes
In article <5vueci$plt$1@samba.rahul.net>, c.c.eiftj@84.usenet.us.com (Rahul Dhesi) writes: > Take a look at any basic programming text, in any language, written > during the last 50 years. Exclude the ones that assume punched card > input. Close to 100% of all examples will be found to assume that input > will come either from some standard input stream, terminated by EOF, or > will come from a single file that you open for reading. The allegedly > inn-specific model is not inn-specific at all. > > Essentially every standard UNIX program uses this model, and most were > conceived and written long before inn existed. Why is it ridiculous to > expect to be able to continue using them in a News context? So write a small program that reads an article from whatever storage you need and dump it to stdout, terminating it with EOF, and pipe it to whatever programs you don't want to rewrite. -- --- Vidar Hokstad <v@ncg.net> ------+-+-- NorConnect Internet Services AS --- DrStrange on Undernet / EFnet |+| Consulting on Internet and intranets <URL:http://a.ncg.net/DrStrange/> |+| <URL:http://www.norconnect.no/> ------------------------------------+-+-------------------------------------- -- Posted through a BETA of NCG Evil Purple NewsCache. Info or complaints: <URL:mailto:newscache@ncg.net> or <URL:http://www.ncg.net/newscache/>
Re: *NEW* News Server Software!
Author: Sven-Ove Westberg
Date: Wed, 24 Sep 1997 00:00
Date: Wed, 24 Sep 1997 00:00
28 lines
1826 bytes
1826 bytes
In article <5vuun8$l71$1@havoc.gtf.gatech.edu>, Garzik <hambone@havoc.gtf.gatech.edu> wrote: |Forrest J. Cavalier III <mibsoft@epix.net> wrote: | |> 2. For new code, I agree it is true that the code you write will be |> very much the same: open() vs OpenSpool(). But new code has never |> been the obstacle to radical INN mods....existing tools are the |> trouble. Things like expire, findmissing, makehistory. | |Many of the INN tools are also tied to maintaining the INN |architecture. For example, Diablo provies makehistory functionality, |expire functionality, and you don't really need to do findmissing. [I |know there are tons of utils other than these, of course.] | On INN-CNFS the history file is not as critical as on a normal inn system so you really don't need findmissing. Expire is only used to "truncate" the history database. With the CNFS you say how much space a type of articles can occupy. eg you can say that crosspostings to more then N groups or bigger then N bytes or the alt.spam.* should all share 1Gb. Sven-Ove Westberg, CAD, University of Lulea, S-971 87 Lulea, Sweden.
Re: *NEW* News Server Software!
Author: Leslie Mikesell
Date: Wed, 24 Sep 1997 00:00
Date: Wed, 24 Sep 1997 00:00
41 lines
2614 bytes
2614 bytes
In article <vxk3en1e2z0.fsf@pocari-sweat.jprc.com>, Karl Kleinpaste <karl@jprc.com> wrote: >This is to say, the word "cannot" is demonstrably and objectively a >gross overstatement. How many INN installations are there? How many >Diablo? When's the last time anyone submitted themselves to the >masochism of a "version" control message, just to see what came back? > >You may have good ideas. You may have better ideas, in some areas. >Then again, you may have a cool personal project in which you are >personally involved. So do I -- and I'm so involved in it, because of >the work this place does, that the likelihood that I'm going to write >a Linux "usenetfs" module is getting higher by the day, much as Ian >suggests. And if and when I get that done, I'm going to laugh a lot >at you folks who believe yourselves to have already buried the corpse >of file-per-article. I think it is kind of odd that everyone seems to think that the common unix filesystems are not good at storing and retrieving files. If this is true, then the filesystem design should be changed for everything not just news. However, I think the real problem is simply that unix filesystems are not good at storing and retrieving many thousands of files in the same directory (consider that open() has to traverse the whole thing in a linear scan to see if a file already exists when you create a new one). Also many filesystems don't shrink the size of a directory even if you remove most of the files. Does anyone have trouble with INN's speed when you first start it on a new filesystem? Has anyone attempted a fix to INN that built deep directory trees instead of fat ones by mangling the filenames to keep from ever putting more than a few hundred in the same directory? I suppose you could fake this transparently in a filesystem layer with some name hashing tricks. Les Mikesell les@mcs.com
Re: *NEW* News Server Software!
Author: Edward S. Marshall
Date: Wed, 24 Sep 1997 00:00
Date: Wed, 24 Sep 1997 00:00
52 lines
3570 bytes
3570 bytes
On 24 Sep 1997 13:20:03 -0500, Leslie Mikesell <les@MCS.COM> wrote: >I think it is kind of odd that everyone seems to think that the >common unix filesystems are not good at storing and retrieving >files. If this is true, then the filesystem design should be >changed for everything not just news. However, I think the real Actually, I think what most people are basically saying here (even if they don't realize it) is that the API for accessing a standard UNIX filesystem is a bottleneck, because you are saddled with at least three syscalls for every file you deal with: open(), close(), and some intermediate manupulation (either a write() or a read()). No matter how efficient your filesystem is, you still have an enormous amount of overhead (relatively speaking) with those jumps to kernel space, since for each syscall, you have a context switch, a switch to protected mode, the actual kernel code, a switch back to userspace, and a context switch, along with some scheduling fun in there as well. For those proponents who would design a new filesystem that "works better" for uses such as INN: you might consider tackling the API problem first. Find a way to get your kernel accesses down to once per file (i.e. merging what we already do to files over three syscalls into one call), and you'll see a noticable improvement. Or, instead of inventing highly specialized filesystems with highly specialized APIs, implement a virtual filesystem (of a sort) in userspace. Create a library for file access, and implement your funky new filesystem as a single file or a series of files (ie. break out your inode tables into a separate file, or files, and break the "filesystem" over several files, which could physically reside on separate disks, etc). Suddenly, since you're in userspace, it stops mattering whether or not you have three operations per file; it's just a function call, not a kernel call. Think about it: a few open() and close() calls, as opposed to one of each for *every* article you bring through the system. You're now down to dealing with only one efficiency issue: manipulating the data via read(), write(), and seek()...and most UNIX filesystems tend to be pretty good in this area. -- .-----------------------------------------------------------------------------. | Edward S. Marshall <emarshal@xnet.com> | Systems/Network Administrator, | | http://www.xnet.com/~emarshal/ | XNet Information Systems, Inc. | `-----------------------------------------------------------------------------' [ Are you a spammer looking for a great opportunity to be blacklisted? Then ] [ have your automatic bots email spam@logic.net and secure a spot on my list! ]
Re: *NEW* News Server Software!
Author: Matt Dillon
Date: Wed, 24 Sep 1997 00:00
Date: Wed, 24 Sep 1997 00:00
54 lines
3302 bytes
3302 bytes
:In article <60bp69$q4k$1@info.cs.uofs.edu>,
:Bill Gunshannon <bill@cs.uofs.edu> wrote:
:...
:>Or what about this idea?? (And this is just off the top of my head
:>with no real research.)
:>
:>Why not break the group/directories down by date?? Every 24 hours
:>you create a new sub-directory for that 24 hour period. It should
:>be fairly easy get INN to create the new directories and if the
:>filenames continue to be just an ascending set of numbers there
:>should not be any real deep changes to make. NNRPD should be easy
:>to fix as well. (Or so it seems to me, anyway.)
This doesn't really change anything unless you store multiple articles
in each file. You are still creating roughly the same number of files
and directories (you would have to create a directory every 5 or 10
minutes for the scheme to be efficient).
Diablo actually did that in its first release... created a directory
every 10 minutes and stored one article per file, but it became glaringly
obvious that the right way to do it was to create a directory every
10 minutes and one file per *session* rather then one file per *article*,
resulting in the storage of multiple articles per file. i.e. each incoming
process has complete control over its own spool file.
By doing it that way, internal kernel filesystem lock contention approaches
zero when receiving articles, and namei winds up being completely
unburdened for reception and transmission due to the two orders of
magnitude fewer files. On news1.best.com with 80+ feeds and 150-200
active processes (half diablo, half dnewslink), systat -vm shows between
200 and 800 namei cache requests a second and a 99 to 100% cache hit rate.
In contrast, nntp2.ba.best.com with around 150 nnrpd sessions handles
between 200 and 1400 namei requests/sec with a 50% to 95% cache hit rate.
The average is around 85% by my guess. This may seem ok, but keep in mind
that each cache miss can result in tens to hundreds of milliseconds
worth of stall, which really hurts the serialized INND. Not only that,
but it wastes massive amounts of disk I/O scanning directories that could
otherwise be used reading articles.
-Matt
:>bill
:>
:>--
>Bill Gunshannon | de-moc-ra-cy (di mok' ra see) n. Three wolves
:>bill@cs.uofs.edu | and a sheep voting on what's for dinner.
:>University of Scranton |
:>Scranton, Pennsylvania | #include <std.disclaimer.h>
Re: *NEW* News Server Software!
Author: Leslie Mikesell
Date: Wed, 24 Sep 1997 00:00
Date: Wed, 24 Sep 1997 00:00
70 lines
4025 bytes
4025 bytes
In article <60c34g$joh$1@flood.xnet.com>, Edward S. Marshall <emarshal@xnet.com> wrote: >On 24 Sep 1997 13:20:03 -0500, Leslie Mikesell <les@MCS.COM> wrote: >>I think it is kind of odd that everyone seems to think that the >>common unix filesystems are not good at storing and retrieving >>files. If this is true, then the filesystem design should be >>changed for everything not just news. However, I think the real > >Actually, I think what most people are basically saying here (even >if they don't realize it) is that the API for accessing a standard >UNIX filesystem is a bottleneck, because you are saddled with at >least three syscalls for every file you deal with: open(), close(), >and some intermediate manupulation (either a write() or a read()). This is obviously correct, but a typical news machine isn't going to stumble until you hit several thousand syscalls/second. Now how many articles are you handling? That time is going somewere else. >No matter how efficient your filesystem is, you still have an >enormous amount of overhead (relatively speaking) with those jumps >to kernel space, since for each syscall, you have a context switch, >a switch to protected mode, the actual kernel code, a switch back to >userspace, and a context switch, along with some scheduling fun in >there as well. Time-wise none of those compare to the directory scan in open(). >For those proponents who would design a new filesystem that "works >better" for uses such as INN: you might consider tackling the API >problem first. Find a way to get your kernel accesses down to once >per file (i.e. merging what we already do to files over three >syscalls into one call), and you'll see a noticable improvement. How many syscalls/second will your box do? >Or, instead of inventing highly specialized filesystems with >highly specialized APIs, implement a virtual filesystem (of a >sort) in userspace. Create a library for file access, and >implement your funky new filesystem as a single file or a series >of files (ie. break out your inode tables into a separate file, >or files, and break the "filesystem" over several files, which >could physically reside on separate disks, etc). Suddenly, since >you're in userspace, it stops mattering whether or not you have >three operations per file; it's just a function call, not a kernel >call. This only makes sense for a single process accepting a feed. How are the many reading processes going to randomly find what you've done? You're not in *their* userspace. I could see replacing the crossposting links with such a mechanism, but you'd still have a hard time with readers trying to follow the growing file. >Think about it: a few open() and close() calls, as opposed to one >of each for *every* article you bring through the system. You're >now down to dealing with only one efficiency issue: manipulating >the data via read(), write(), and seek()...and most UNIX >filesystems tend to be pretty good in this area. Not really, if a lot of processes have to stay coordinated while doing it at the same time. The kernel is the right place to arbitrate between processes. The bulk of the problem is that creating, deleting and scanning for files is expensive if the directories are allowed to become large. Les Mikesell les@mcs.com
Re: *NEW* News Server Software!
Author: Dave Barr
Date: Thu, 25 Sep 1997 00:00
Date: Thu, 25 Sep 1997 00:00
35 lines
2252 bytes
2252 bytes
In article <60c34g$joh$1@flood.xnet.com>, Edward S. Marshall <emarshal@xnet.com> wrote: >On 24 Sep 1997 13:20:03 -0500, Leslie Mikesell <les@MCS.COM> wrote: >>I think it is kind of odd that everyone seems to think that the >>common unix filesystems are not good at storing and retrieving >>files. If this is true, then the filesystem design should be >>changed for everything not just news. However, I think the real > >Actually, I think what most people are basically saying here (even >if they don't realize it) is that the API for accessing a standard >UNIX filesystem is a bottleneck, because you are saddled with at >least three syscalls for every file you deal with: open(), close(), >and some intermediate manupulation (either a write() or a read()). No, I don't think that's true at all. The API is not the bottleneck, it's the filesystem underneath. We've known for ages that the bottleneck with INN is open() -- Not write() or read() or anthing else. Now it's really coming to the hilt. (History lookups are also a bottleneck, especially for feeding sites.) I think you're saying essentially this in your post, but I don't view it as an API problem. We're forced to use lots of expensive "API" calls because of the nature of the assumptions about the filesystem. The solution is not to fix the API because the API is the fault, the solution is to fix the API because the filesystem is at fault. --Dave -- http://www.cis.ohio-state.edu/~barr/ barr@cis.ohio-state.edu
Re: *NEW* News Server Software!
Author: Anthony Talltree
Date: Thu, 25 Sep 1997 00:00
Date: Thu, 25 Sep 1997 00:00
13 lines
909 bytes
909 bytes
>:> - Process NoCeM messages. >:> - Process cancel messages. >Generally presumes the presence of a reader system. Why? Isn't it reasonable to want to remove spam from the stream of articles that one's downstream feeds see?
Re: *NEW* News Server Software!
Author: Ron Echeverri
Date: Thu, 25 Sep 1997 00:00
Date: Thu, 25 Sep 1997 00:00
19 lines
1292 bytes
1292 bytes
In article <60f4nq$2t6@lovecraft.nwnet.net>, Anthony Talltree <aad@nwnet.net> wrote: >>:> - Process NoCeM messages. >>:> - Process cancel messages. >>Generally presumes the presence of a reader system. >Why? Isn't it reasonable to want to remove spam from the stream of >articles that one's downstream feeds see? That depends on whether your downstream feeds consider it reasonable of you to remove it. rone -- Ron Echeverri <URL:http://www.ennui.org/~rone/> <rone@best.net> Systems/Usenet Administration "This is _my_ ISP, _i_ do the Best Internet Communications, Inc. ass-kicking around here!" -rpwhite
Re: *NEW* News Server Software!
Author: Anthony Talltree
Date: Thu, 25 Sep 1997 00:00
Date: Thu, 25 Sep 1997 00:00
24 lines
1873 bytes
1873 bytes
>: Still, this is only a very small portion of the userbase. Based >: on the number of accounts with .newsrc files in them, only 5% >: of our user base uses a shell-based newsreader. On top of that, >: we are a web-hosting/web-development ISP so these are mostly >: savvey users. Lots of installations aren't dialup providers. Consider, say, a computer hardware/software vendor with about 800 local employees and another 200-300 in the field. Let's say that 50-100 of them want to read news at a time, and the news host is running stock INN. I was in this situation a handful of years ago. With NNTP reader transport, nnrpd gobbled lots of VM, drove up the load on the machine, and crashed it daily. When we switched to NFS-mounting the spool and only using NNTP for posts, the machine stabilized. Consider even today how nnrpd scales without the platform-specific mmap hacks or without the more-portable actived. Someone claimed that with an NFS-mounted spool the readers would have to do all the threading -- true only if your server host doesn't auto-generate NOV data (eg., overchan). There's nothing stopping a reader from opening an NOV file via NFS.
Re: News data storage model
Author: Anthony Talltree
Date: Thu, 25 Sep 1997 00:00
Date: Thu, 25 Sep 1997 00:00
23 lines
1207 bytes
1207 bytes
>efficient directory access under Unix. Silicon Graphics XFS has more >efficient representations for very large directories, as have Network >Appliance NFS servers. Both bring backup hassles with them, though that's not an issue for news article stores. >It's a bit ironical that Sun, who I think invented the virtual file >system interface that makes implementing new file system types much >easier, still ship Berkeley "F"FS as their standard file system. It works great for most applications.
Re: *NEW* News Server Software!
Author: Anthony Talltree
Date: Thu, 25 Sep 1997 00:00
Date: Thu, 25 Sep 1997 00:00
13 lines
914 bytes
914 bytes
>for information in news articles. However, dejanews provides a much more >useful interface ... to a restricted set of groups. I've also often had it fail to find articles that I knew were out there even within those groups.
Re: *NEW* News Server Software!
Author: Brett Hawn
Date: Fri, 26 Sep 1997 00:00
Date: Fri, 26 Sep 1997 00:00
17 lines
1321 bytes
1321 bytes
On 25 Sep 1997 17:44:25 -0700, Anthony Talltree <aad@nwnet.net> wrote: >>for information in news articles. However, dejanews provides a much more >>useful interface > >... to a restricted set of groups. I've also often had it fail to find >articles that I knew were out there even within those groups. which groups were you looking at and how long ago? I know for _fact_ that DejaNew's feed has improved significantly in the last month or so, and if you're having problems I'm sure they'd love to hear about it, as would I. -- if I set my background color to ultravoilet will I get a tan?
Re: *NEW* News Server Software!
Author: Karl Kleinpaste
Date: Fri, 26 Sep 1997 00:00
Date: Fri, 26 Sep 1997 00:00
13 lines
1169 bytes
1169 bytes
Anthony Talltree <aad@nwnet.net> wrote: >> Isn't it reasonable to want to remove spam from the stream of >> articles that one's downstream feeds see? rone@bofh.noc.best.net (Ron Echeverri) writes: > That depends on whether your downstream feeds consider it reasonable > of you to remove it. Downstream feeds should be informed of local spam removal policy and procedure, and invited to find redundant feeds if they wish to see spam.
Re: News data storage model
Author: Randall C. Grimshaw
Date: Fri, 26 Sep 1997 00:00
Date: Fri, 26 Sep 1997 00:00
8 lines
873 bytes
873 bytes
Regarding unix file system overhead and / or data storage models... a question: would a caching disk controller absorb some of this inefficiency. <><Randall
Re: News data storage model
Author: Matt Dillon
Date: Fri, 26 Sep 1997 00:00
Date: Fri, 26 Sep 1997 00:00
23 lines
1624 bytes
1624 bytes
:In article <342C0AFE.F4EB92D5@syr.edu>,
:Randall C. Grimshaw <rgrimsha@syr.edu> wrote:
:>Regarding unix file system overhead and / or data storage models... a
:>question:
:>would a caching disk controller absorb some of this inefficiency.
:><><Randall
No, not unless the caching disk controller has a lot (> 32MB) of on-board
memory. Frankly, I consider caching disk controllers a waste of time...
it's better to throw that money into main memory for the machine.
Something like FreeBSD will do a much better job with it then a caching
disk controller.
The standard inn file storage model is broken because it blows up the
namei cache. There are just too many files... several million in your
typical spool. Even with a hash-based directory lookup, namei misses
still add a large number of random seeks to the disk.
-Matt
Re: News data storage model
Author: Matt Dillon
Date: Sat, 27 Sep 1997 00:00
Date: Sat, 27 Sep 1997 00:00
37 lines
2549 bytes
2549 bytes
:In article <60ifq6$hch$1@news.gv.tsc.tdk.com>,
:Don Lewis <gdonl@tsc.tdk.com> wrote:
:>In article <60hohg$oli$1@flea.best.net>, Matt Dillon <dillon@best.net> wrote:
:>>:In article <342C0AFE.F4EB92D5@syr.edu>,
:>>
:>> The standard inn file storage model is broken because it blows up the
:>> namei cache. There are just too many files... several million in your
:>> typical spool. Even with a hash-based directory lookup, namei misses
:>> still add a large number of random seeks to the disk.
:>
:>I suspect it would be worthwhile to put a quota on the number of article
:>files in the namei cache, especially since the hit rate on files is likely
:>to be low. This would give you a pretty good chance of keeping all the
:>directories in the namei cache, so that you'd get cache hits on all the
:>components of the path name until you got to the last component (the
:>article number), at which point a hash-based directory lookup would be
:>the best strategy.
:>--
:>Don "Truck" Lewis TDK Semiconductor
:>Internet: Don.Lewis@tsc.tdk.com 138 New Mohawk Road
:>Phone: +1 916 478-8284 FAX: +1 916 478-8251 Nevada City, CA 95959
Yes, but even the hash-lookup case is going to cause several
directory-related seek/reads for each article open(). i.e. the
hash based scheme will reduce disk I/O, but it will not do anything
for the basic bottleneck in the namei cache. The kernel simply cannot
return a descriptor until it knows the open will succeed and it doesn't
know that until it does a number of disk I/O's.
My point is that you cannot avoid synchronous disk I/O on open() with the
old one-article-per-file scheme no matter how good your filesystem is.
-Matt
Re: News data storage model
Author: Don Lewis
Date: Sat, 27 Sep 1997 00:00
Date: Sat, 27 Sep 1997 00:00
22 lines
1782 bytes
1782 bytes
In article <60hohg$oli$1@flea.best.net>, Matt Dillon <dillon@best.net> wrote: >:In article <342C0AFE.F4EB92D5@syr.edu>, > > The standard inn file storage model is broken because it blows up the > namei cache. There are just too many files... several million in your > typical spool. Even with a hash-based directory lookup, namei misses > still add a large number of random seeks to the disk. I suspect it would be worthwhile to put a quota on the number of article files in the namei cache, especially since the hit rate on files is likely to be low. This would give you a pretty good chance of keeping all the directories in the namei cache, so that you'd get cache hits on all the components of the path name until you got to the last component (the article number), at which point a hash-based directory lookup would be the best strategy. -- Don "Truck" Lewis TDK Semiconductor Internet: Don.Lewis@tsc.tdk.com 138 New Mohawk Road Phone: +1 916 478-8284 FAX: +1 916 478-8251 Nevada City, CA 95959
Re: News data storage model
Author: tmiller
Date: Sun, 28 Sep 1997 00:00
Date: Sun, 28 Sep 1997 00:00
19 lines
1319 bytes
1319 bytes
dillon@best.net (Matt Dillon) writes:
> No, not unless the caching disk controller has a lot (> 32MB) of on-board
> memory. Frankly, I consider caching disk controllers a waste of time...
> it's better to throw that money into main memory for the machine.
> Something like FreeBSD will do a much better job with it then a caching
> disk controller.
I'd have to agree with this; we're running fully-mmap'd INN as a
transport feeder on a machine w/ 2 *Gb* of memory, and it fairly flies
along.
--
Cerebus <tmill06@ibm.net>
PGP Fingerprint:
BC AB 28 19 A6 A4 FF 5B CA 4D B4 03 3A A7 F4 5C
Re: News data storage model
Author: Matthias Urlichs
Date: Sun, 05 Oct 1997 00:00
Date: Sun, 05 Oct 1997 00:00
36 lines
2017 bytes
2017 bytes
dillon@best.net (Matt Dillon) writes: > > memory. Frankly, I consider caching disk controllers a waste of time... > it's better to throw that money into main memory for the machine. Right. The main problem with a caching controller is that it doesn't know what to retain. After all, there are tons of write()s and tons of read()s, but 90% of it is actual article data and of the rest, more than half of the write()s are inode access time updates. :-( On a file system used for Netnews, you can toss the atime updates (via a mount option on any decent operating system) and you can toss the article data from the cache a whole lot faster than the directory stuff. You go ahead and show me a caching disk controller which knows about that kind of stuff... > Something like FreeBSD will do a much better job with it then a caching > disk controller. > Try Linux 2.1.very_recent. It has a separate directory cache in the kernel. (Warning, it's the development kernel!) I'd like to see what happens when you throw enough RAM and a couple of full feeds at it -- the time spent in open(), INN's major time waster, should then be smaller by one order of magnitude. However, I'd rather drop all that nonsense and use the 'big file' approach, a la INN+CNFS or Diablo or ... -- Matthias Urlichs noris network GmbH
Re: *NEW* News Server Software!
Author: Matthias Urlichs
Date: Sun, 05 Oct 1997 00:00
Date: Sun, 05 Oct 1997 00:00
19 lines
1285 bytes
1285 bytes
davidsen@tmr.com (bill davidsen) writes: > | > | Actually, this surprised the hell out of me: the perl filters are > | surprisingly cheap. Jeff's used about 1.5ms/article and discarded a > | ton of spam. It's nice being able to reload them on the fly. > > If you have code which will do a CRC in 10ms in perl I'll forget C. > But that doesn't appear to be the case. I suspect there's a diferent > method being used to catch the spam. You can code just the CRC code in C, and call it from perl (even load it dynamically for even greater coolness ;-). -- Matthias Urlichs noris network GmbH
Page 2 of 2 • 99 total messages
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