🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
120 messages
120 total messages Page 3 of 3 Started by Brian Kramer Mon, 12 Feb 1996 00:00
Page 3 of 3 • 120 total messages
Re: How to do a better USENET file system
#5960
Author: Alan Brown
Date: Sun, 24 Mar 1996 00:00
32 lines
2207 bytes
In article <4iqlpc$4kj@olivea.atc.olivetti.com>,
Jerry Aguirre <jerry@strobe.ATC.Olivetti.Com> wrote:

>Look at the criticism of any technique that is not a flooding store and
>foward.  The UUCP crowd feel threatened.  Your almost certainly going to
>have one of those on a committee to represent their interests.  Even if
>you point out methods of supporting them they will still worry about
>being left out or treated like 2nd class citizens.

My UUCP users can manipulate their own feeds through an automated
mailing scheme. UUCP sites dowstream of them can do this too using
similar dos stuff which is designed to handle this sort of thing.

Even given the current flooding model, I'd be very happy if I could
manipulate my upstream feeds in the same way (try getting anyone to
install gup if they don't see a need for it) and have the requests done
automatically based on what my nntp and uucp readers are taking or
not taking.... 

900Mb/day across a 128kb/s link is not my idea of fun. It leaves
little else for the dialup users or the leased line clients.

Don't tell me to get a T1. A T1 will cost me close to $30,000/month
with data charges from the NZ gateway on top of that.

AB
-- 
"But you can't say they have arrived to classify your nervous lies
 What's right, what's not, what may not be. Don't try your tricky tests on me
 For I won't live in fear my friend - that every day could be my end"

Re: Poor performance with INN and FreeBSD.
#5979
Author: Don Lewis
Date: Mon, 25 Mar 1996 00:00
27 lines
2205 bytes
In article <DoJ1Js.H2t@unixhub.SLAC.Stanford.EDU>,
Karl L. Swartz <kls@MAILBOX.SLAC.Stanford.EDU> wrote:
>Frankly, I was pretty skeptical of the idea of having an NFS-based
>/var/spool/news for my news server, figuring the access over the network
>would be sure death.  The appeal of having an enormous filesystem was
>sufficiently tempting for me to at least give it a try, and I set up some
>tests to compare a local disk with a model 1400 "toaster."  The tests
>consisted of a mixture of unbatching a bunch of news and deleting selected
>files in random order, with other activity running "off the clock."
>Unbatching was two to three times faster using than toaster than a local
>disk, while the deletes were nearly an order of magnitude faster.

I believe the "toaster" has a non-volatile write cache for it's disks,
which would speed up file creation and deletion significantly, since
these usually involve synchronous writes to the disk on your typical
Unix local filesystem.

I've heard that Suns with Prestoserve boards (which are generally
installed to optimize NFS serving) experience a similar performance
boost.  Expire is reported to run really fast ;-)
-- 
Don "Truck" Lewis                                       Silicon Systems
Internet: gdonl@gv.ssi1.com                             138 New Mohawk Road
Phone: +1 916 478-8284       FAX: +1 916 478-8251       Nevada City, CA  95959


Re: Poor performance with INN and FreeBSD.
#5990
Author: bill davidsen
Date: Mon, 25 Mar 1996 00:00
58 lines
3634 bytes
In article <DoJ1Js.H2t@unixhub.SLAC.Stanford.EDU>,
Karl L. Swartz <kls@MAILBOX.SLAC.Stanford.EDU> wrote:

| Frankly, I was pretty skeptical of the idea of having an NFS-based
| /var/spool/news for my news server, figuring the access over the network
| would be sure death.  The appeal of having an enormous filesystem was
| sufficiently tempting for me to at least give it a try, and I set up some
| tests to compare a local disk with a model 1400 "toaster."  The tests
| consisted of a mixture of unbatching a bunch of news and deleting selected
| files in random order, with other activity running "off the clock."
| Unbatching was two to three times faster using than toaster than a local
| disk, while the deletes were nearly an order of magnitude faster.

Why are you worried about batch and unbatch, or feed times? Are you
really running a news server with enough news to be a problem and
few enough readers that they are NOT the problem?

| Hopefully, I'll have a paper with all the details at LISA this year.

???
| 
| >Of course, I was thinking more along the lines of a log filesystem with the
| >overviews stored in a separate SQL-oriented database, indexed by message-id,
| >starting sector, and group:article#.
| 
| I talked with Margo Seltzer a bit about news after one of her talks on the
| BSD 4.4 log-structured filesystem and she thought news would be an excellent
| application for LFS.  I'd like to give it a try, but so far the code is still
| supposed to be pretty buggy and I haven't had the time to fiddle with it.
| I've never given the NOV part of it much thought since that's never seemed to
| be the bottleneck, though maybe integrating it to handle the directory
| portion of the FS would be interesting.

Having run on a log filesystem (JFS on AIX), I can tell you that the
log file is the bottleneck. To get performance up, first I put the
logfile on a dedicated disk (cut expire time by 3), and then on a
dedicated solid state disk (cut expire time by 3 again).

Increases in storage of articles were noted, but the big winner was
expire.

| Separate filesystems also mean you have to invest more time in system
| management, looking not just at how much space you expect to need overall,
| but at which pockets you think you'll need it in.  One of the attractions to
| the "toaster" is that you just throw more disk at it when necessary, without
| worrying about where exactly it should go.  With disks being cheap and
| reduction in staffing being plentiful, that's very attractive.

Yes, but adding disk on striped filesystems is not generally easy,
and the performance hit by not striping, at least for readers, is
just not acceptable.
--
	-bill davidsen (davidsen@tmr.com)
"As a software development model, Anarchy does not scale well."
		-Dave Welch


Expire strategy (Re: Poor performance with INN and FreeBSD.)
#5992
Author: Olaf Titz
Date: Mon, 25 Mar 1996 00:00
39 lines
2587 bytes
Karl L. Swartz <kls@MAILBOX.SLAC.Stanford.EDU> wrote:
> >Once the filesystem has been filled, the oldest articles are
> >automatically overwritten as new messages are added to the spool.
> Nice idea, but it doesn't address varying expiration times, not to mention
> seasonally varying loads.

It does address varying loads - exactly the amount of space that is needed
gets freed. I really like that idea (s.b.)

It _would_ address varying (tunable) expiration times if the definition of
"oldest" were adjusted accordingly. :-)

> >Want to add more capacity? Stripe the data in one 'newsfs' across multiple
> >drives.
> >Need to have different expiration times for different group hierarchies?
> >break the spool into separate 'newsfs's by group.
> That's awfully coarse.  What about certain subsets of hierarchies which you
> want to have different expiration times, perhaps because your readers care

Breaking up the spool into different filesystems for this purpose is
extremely inelegant - this is what can't cope with varying flow. Balancing
the expire times for the different spool sections is extremely delicate and
usually impossible to get to an optimum.

Look at dexpire. This provides the IMHO right solution - freeing just the
desired amount of space, can be configured for different expire times per
group just like with a regular explist. Write me if you want to beta-test an
enhanced version I'm developing (the official release has some serious
shortcomings, unfortunately).

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: Poor performance with INN and FreeBSD.
#5994
Author: Peter da Silva
Date: Mon, 25 Mar 1996 00:00
29 lines
2403 bytes
In article <4ipb5c$24om@usenetw1.news.prodigy.com>,
bill davidsen <davidsen@tmr.com> wrote:
> Having run on a log filesystem (JFS on AIX), I can tell you that the
> log file is the bottleneck. To get performance up, first I put the
> logfile on a dedicated disk (cut expire time by 3), and then on a
> dedicated solid state disk (cut expire time by 3 again).

This paragraph doesn't make sense to me. Maybe I'm missing something,
but isn't the distinguishing feature of a log file system that all data
is *only* stored in the log? I'm not familiar with JFS, but the acronym
sounds like "Journalling File System"... which is to say a conventional
file system with a small log containing recent updates only and primarily
used for crash recovery rather than performance.

The Sprite logging file system, the BDS LFS, and other pure logging
file systems don't have a separate "log file" that can be stored in
a dedicated disk or a solid-state disk. Rather they simply append all
transactions to the logical end of the data on disk (in a round-robin
fashion), and periodically checkpoint metadata (either into the log or
into a series of dedicated metadata areas) pointing into the log and
indicating where the files currently live.
-- 
Peter da Silva    (NIC: PJD2)      `-_-'             1601 Industrial Boulevard
Bailey Network Management           'U`             Sugar Land, TX  77487-5013
+1 713 274 5180         "Har du kramat din varg idag?"                     USA
Bailey pays for my technical expertise.        My opinions probably scare them


Re: Poor performance with INN and FreeBSD.
#6069
Author: bill davidsen
Date: Wed, 27 Mar 1996 00:00
42 lines
2846 bytes
In article <4j6l4a$9ia@web.nmti.com>, Peter da Silva <peter@nmti.com> wrote:
| In article <4ipb5c$24om@usenetw1.news.prodigy.com>,
| bill davidsen <davidsen@tmr.com> wrote:
| > Having run on a log filesystem (JFS on AIX), I can tell you that the
| > log file is the bottleneck. To get performance up, first I put the
| > logfile on a dedicated disk (cut expire time by 3), and then on a
| > dedicated solid state disk (cut expire time by 3 again).
| 
| This paragraph doesn't make sense to me. Maybe I'm missing something,
| but isn't the distinguishing feature of a log file system that all data
| is *only* stored in the log? I'm not familiar with JFS, but the acronym
| sounds like "Journalling File System"... which is to say a conventional
| file system with a small log containing recent updates only and primarily
| used for crash recovery rather than performance.

Changes to the directory structure are written to the log logical
volume (type jfslog), which is a circular queue. It's a separate
logical volume, and can be on any device. Once a directory change
has been written to the actual directory file the trailing pointer
of the queue is moved. With an operation which has major file
creation or deletion this becomes a bottleneck.
| 
| The Sprite logging file system, the BDS LFS, and other pure logging
| file systems don't have a separate "log file" that can be stored in
| a dedicated disk or a solid-state disk.

AIX JFS does. Every volume group has a logical volume of type
jfslog which is used to do logging. It can be on any device in the
volume group.

And for the AIX challenged, a volume group is a group of physical
devices, while a logical volume is sort of like a DOS partition, but
which has characteristics like striped or not, mirrored or not, etc.
By putting these jfslogs on a fast device the performance is
significantly enhanced.
--
	-bill davidsen (davidsen@tmr.com)
"As a software development model, Anarchy does not scale well."
		-Dave Welch


Re: How to do a better USENET file system
#6072
Author: Jerry Aguirre
Date: Wed, 27 Mar 1996 00:00
22 lines
1608 bytes
In article <4imb61$fe5@tines.hsc-sec.fr> archer@hsc.fr.net (Vincent Archer) writes:
>
>Jerry Aguirre (jerry@strobe.ATC.Olivetti.Com) wrote:
>Pre-fetch?
>If you know beforehand that you need some specific subset of articles,
>a push (i.e. NNTP feed) is less ressource intensive than a pull (i.e.
>suck feed).

That is true of the current news systems.  It is more a detail of
how "suck" type feeds are implemented than any theoretical limitation.

For a web based news service I don't see any reason why it would be true.
Don't assume it will have a "history" file, a "newnews" command,
distributions, etc. to worry about.

If you had a list of IDs already, from the "push" fed URL/NOV, then you
don't need a "newnews" command.  Even with the current scheme this would
only require a lookup of the pathname.  If the articles were stored by
message id, instead of the stupid !@#$$&* article number you would not
even need that.

Re: How to do a better USENET file system
#6084
Author: Vincent Archer
Date: Thu, 28 Mar 1996 00:00
24 lines
1844 bytes
Jerry Aguirre (jerry@strobe.ATC.Olivetti.Com) wrote:
> archer@hsc.fr.net (Vincent Archer) writes:
> >If you know beforehand that you need some specific subset of articles,
> >a push (i.e. NNTP feed) is less ressource intensive than a pull (i.e.
> >suck feed).
> That is true of the current news systems.  It is more a detail of
> how "suck" type feeds are implemented than any theoretical limitation.

No. It comes from a principle. If you are using a pull, you are scattering
more your requests across the disk. If you are using a push, you can sequence
your sendings so that the impact is less.

Nntpget type is a little better (because you use newnews, so you end up
requesting articles roughly in the storage order, which should be better)
than read-type (in which you essentially behave like a newsreader, entering
each group, and getting all articles in that group).

Anyway, the best type of feed is one that has an article go over a link
only once, and only if that article will be read.
-- 
Vincent ARCHER  -=-=-  Herve Schauer Consultants -=-=-   archer@hsc.fr.net
Tel: +33 1 46388990                                    Fax: +33 1 46380505

Re: How to do a better USENET file system
#6090
Author: Andy Clews
Date: Thu, 28 Mar 1996 00:00
27 lines
1633 bytes
And lo, thus spake Jerry Aguirre unto the assembled multitudes:
> If you had a list of IDs already, from the "push" fed URL/NOV, then you
> don't need a "newnews" command.  Even with the current scheme this would
> only require a lookup of the pathname.  If the articles were stored by
> message id, instead of the stupid !@#$$&* article number you would not
> even need that.

...except that storing articles with file names such as

	<4imb61$fe5@tines.hsc-sec.fr>

might cause all sorts of problems, given that most news servers are UNIX
boxes. Don't forget that the characters <, > and $ are all shell
metacharacters and this may cause more overall administrative grief than it is
worth, not to mention the increase in space requirements due to the greatly
increased length of file names.





-- 
Andy Clews, Computing Service, University of Sussex, Brighton BN1 9QJ,  UK
			Email:   A.Clews@sussex.ac.uk


Re: How to do a better USENET file system
#6107
Author: USENET news
Date: Thu, 28 Mar 1996 00:00
32 lines
2309 bytes
In article <4je9g8$e2d@infa.central.susx.ac.uk>,
Andy Clews <andy@central.susx.ac.uk> wrote:
>And lo, thus spake Jerry Aguirre unto the assembled multitudes:
>> If you had a list of IDs already, from the "push" fed URL/NOV, then you
>> don't need a "newnews" command.  Even with the current scheme this would
>> only require a lookup of the pathname.  If the articles were stored by
>> message id, instead of the stupid !@#$$&* article number you would not
>> even need that.
>
>...except that storing articles with file names such as
>
>	<4imb61$fe5@tines.hsc-sec.fr>
>
>might cause all sorts of problems, given that most news servers are UNIX
>boxes. Don't forget that the characters <, > and $ are all shell
>metacharacters and this may cause more overall administrative grief than it is
>worth, not to mention the increase in space requirements due to the greatly
>increased length of file names.

You could always encode the problem characters, e.g. as in URLs
(%+hexadecimal code). However, since you wouldn't want all the articles
(maybe a million or more) in one enormous directory (lookup speed would be
awful on many systems, even if directories that large worked at all), you'd
probably want to use some sort of hashing scheme and then subdivide into
directories e.g. by leading substring, or something like that. Given some
means to resolve hashing collisions, you could well be able to use
hash-derived filenames much shorter than the ridiculously long message IDs
generated by some software, and containing only safe characters.

                                John Line

Re: How to do a better USENET file system
#6108
Author: Mark Delany
Date: Fri, 29 Mar 1996 00:00
24 lines
1499 bytes
news@news.cam.ac.uk (USENET news) writes:

>>...except that storing articles with file names such as
>>
>>	<4imb61$fe5@tines.hsc-sec.fr>
>>
>>might cause all sorts of problems, given that most news servers are UNIX

>You could always encode the problem characters, e.g. as in URLs
>(%+hexadecimal code). However, since you wouldn't want all the articles
>(maybe a million or more) in one enormous directory (lookup speed would be
>awful on many systems, even if directories that large worked at all), you'd
>probably want to use some sort of hashing scheme and then subdivide into


Heck, maybe we could call them disk offsets :>

The history file consumes a lot of space for a path, a decent sized
disk offset would fit into, oh, 16 bytes of hex or thereabouts.


Regards.

Re: Poor performance with INN and FreeBSD.
#6120
Author: Peter da Silva
Date: Fri, 29 Mar 1996 00:00
38 lines
2935 bytes
In article <4j9rce$210g@usenetw1.news.prodigy.com>,
bill davidsen <davidsen@tmr.com> wrote:
> In article <4j6l4a$9ia@web.nmti.com>, Peter da Silva <peter@nmti.com> wrote:
> | In article <4ipb5c$24om@usenetw1.news.prodigy.com>,
> | bill davidsen <davidsen@tmr.com> wrote:
> | > Having run on a log filesystem (JFS on AIX), I can tell you that the
> | > log file is the bottleneck. To get performance up, first I put the
> | > logfile on a dedicated disk (cut expire time by 3), and then on a
> | > dedicated solid state disk (cut expire time by 3 again).

> | This paragraph doesn't make sense to me. Maybe I'm missing something,
> | but isn't the distinguishing feature of a log file system that all data
> | is *only* stored in the log? I'm not familiar with JFS, but the acronym
> | sounds like "Journalling File System"... which is to say a conventional
> | file system with a small log containing recent updates only and primarily
> | used for crash recovery rather than performance.

> Changes to the directory structure are written to the log logical
> volume (type jfslog), which is a circular queue. It's a separate
> logical volume, and can be on any device. Once a directory change
> has been written to the actual directory file the trailing pointer
> of the queue is moved.

Then it's not a log file system, it's a journalled file system using a log
file for the journal. You can't generalize from the behaviour of JFS to the
behaviour of the log file systems we're talking about. There is no separate
write to the log... the write to the log is the *only* action performed, and
it's performed in line with all the other writes (that is, the head just sits
there at the end of the log going click...click...click track after track
after track).
-- 
Peter da Silva    (NIC: PJD2)      `-_-'             1601 Industrial Boulevard
Bailey Network Management           'U`             Sugar Land, TX  77487-5013
+1 713 274 5180         "Har du kramat din varg idag?"                     USA
Bailey pays for my technical expertise.        My opinions probably scare them


Re: How to do a better USENET file system
#6145
Author: Mark Delany
Date: Sat, 30 Mar 1996 00:00
60 lines
2867 bytes
brad@clarinet.com (Brad Templeton) writes:

[Getting back to classes/cycles for just a moment and losing some
context as I only hold this group for a couple of weeks...]

If we assume for a moment that we have a number of classes which are
used to implement local retention policy, eg:

class	1	local.*			/dev/d1
class	2	*binaries*		/dev/d2
class	3	*			/dev/d3	/dev/d4 /dev/d5

For discussion purposes assume /dev/d1 has been sized to hold on to a
typical local.* set of articles for six months while /dev/d3 typically
wraps in a day or so.

Now to the question. What would you do with a cross-posted article
that could end up in multiple classes? Which class do you actually
store it in? Is an arbitrary rule like "write it to the first class
that matches on the first newsgroup" sufficient?

The significance of this question is that classes change the notion of
expire whereby an article currently stays around until it expires in
every group while the class scheme causes it to disappear as soon as
the class wraps over it regardless of how many groups it is posted to.

Using the arbitrary rule, a posting to local.announce,alt.binaries is
stored in Class 1 and live for ages while a posting to
alt.binaries,local.announce is stored in Class 2 and lives for just a
day or so.

So, is this reasonable or are more sophisticated rules necessary?

	..

On a second front, both expire and simplistic classes are vulnerable
to smart warez posters (yeah I know it devalues the meaning of
'smart').

My thought is to have a size rule for classes as well as a newsgroup
pattern.

class	0	>100K:*			/dev/null
class	1	<50K:local.*		/dev/d1
class	2	>0:*binaries*		/dev/d2
class	3	>0:*			/dev/d3	/dev/d4 /dev/d5

It still doesn't stop the dedicated warez poster who cross-posts lots
and lots of small articles - sigh.

I guess the right answer is to have hooks into a separate "decision
engine" which makes the determination and simply tells the news file
system which class to use. A simple "decision engine" might implement
the rules above while a sophisticated one could provide a programmable
interface, perhaps in perl or TCL...


Regards.

Re: How to do a better USENET file system
#6169
Author: Jerry Aguirre
Date: Mon, 01 Apr 1996 00:00
39 lines
2662 bytes
In article <4jds5q$9s5@tines.hsc-sec.fr> archer@hsc.fr.net (Vincent Archer) writes:
>No. It comes from a principle. If you are using a pull, you are scattering
>more your requests across the disk. If you are using a push, you can sequence
>your sendings so that the impact is less.

On a new news system article access may corespond to arrival order.
But remember that a UFS file system is a little more complex than
that.  It tries to organize all files in a directory together.  Then
there is the tree search overhead.  This changes radically as one gets
many thousands of articles in groups.

I would expect that even with a newly created file system that reading
all the article in a group, and then on to the next group, would be
more efficient than reading them by history file order.  On some other
type of file system this might not be true.

Let the file system get scrambled by multiple fillings, expires,
refillings and the arrival order is not going to mean much in terms of
disk layout.  Some dinky little test on a few files doesn't mean much.
Try it on a server that has been up for months and is running with
gigabytes of articles and is >90% full.

The fact that sorting the list passed to fastrm improves performance
supports this.  If it were true that article access was faster by
arrival order then the sort would slow down processing.  Expire
generates the list in arrival order.  Sorting changes that to having
all articles in a group in sequence.

The only theoretical advantage a "push" type feed has is sending
articles as they arrive and are still in cache.  If the feed can keep
up this means no extra disk overhead to get the article as it is still
in cache from when the news software just created it.  If the sending
queue runs even a minute behind the likelyhood of the article still
being in cache drops very low.

If news servers wern't having trouble keeping up with a full flow then
we wouldn't be having this discussion.

Re: Expire strategy (Re: Poor performance with INN and FreeBSD.)
#6411
Author: Karl L. Swartz
Date: Tue, 09 Apr 1996 00:00
22 lines
1749 bytes
In article <m0u08NS-000019C@sapa.inka.de>, Olaf Titz <olaf@inka.de> wrote:
>Karl L. Swartz <kls@MAILBOX.SLAC.Stanford.EDU> wrote:
>> >Once the filesystem has been filled, the oldest articles are
>> >automatically overwritten as new messages are added to the spool.
>> Nice idea, but it doesn't address varying expiration times, not to mention
>> seasonally varying loads.

>It does address varying loads - exactly the amount of space that is needed
>gets freed. I really like that idea (s.b.)

That's nice, but I want to keep comp.unix for 21 days while chucking
comp.os.ms-windows after 2 days.  Your scheme doesn't appear to provide
any way of doing that, which is what I was talking about.

-- 
Karl Swartz		|INet	kls@unixhub.slac.stanford.edu
SLAC Computing Services	|	   or kls@chicago.com
1-415/926-3630		|UUCP	uunet!lll-winken!unixhub!kls  -or-  ditka!kls
(SLAC and the US Dept. of Energy don't necessarily agree with my opinions.)


Re: Poor performance with INN and FreeBSD.
#6412
Author: Leonard N. Zubkoff
Date: Tue, 09 Apr 1996 00:00
29 lines
2195 bytes
In article <DpHI0o.2A6@unixhub.SLAC.Stanford.EDU> kls@MAILBOX.SLAC.Stanford.EDU (Karl L. Swartz) writes:

  [snip snip]

  Who said anything about striped filesystems?  True striping is foolish
  for news anyway -- it's forte is with large files, exactly the opposite
  of what you see with news.  For news you'd want concatenation, and in
  that case it's generally pretty easy to add another disk.  Right now
  I'm using Sun's OnLine:DiskSuite and adding a disk is trivial.  You'll
  still get better performance than one larger disk, though not for one
  individual article.

  [My experience with concatenation vs. striping is at a variance with Karl's
  statement.  Jerry Aguirre has posted on this issue in the past, and the
  upshot seems to be that striping does indeed work better for news.  --mod]

Indeed, striping for news is a win if done properly.  You do not want
concatenation.  Consider a 14GB news spool composed of 7 2GB disks that's
only 85% full.  With a concentated file system, a random I/O load will be
spread only across the first 6 disks since file systems will generally
optimize for locality.  If we stripe those 7 disks instead, we are
guaranteed to be spreading the random I/O load across all the spindles.
The key point is to make sure the stripe width is set large enough that the
typical I/O transaction only needs to access one of the 7 drives.

		Leonard


Re: Poor performance with INN and FreeBSD.
#6430
Author: Karl L. Swartz
Date: Tue, 09 Apr 1996 00:00
65 lines
3982 bytes
In article <4ipb5c$24om@usenetw1.news.prodigy.com>,
bill davidsen <davidsen@tmr.com> wrote:

>Why are you worried about batch and unbatch, or feed times? Are you
>really running a news server with enough news to be a problem and
>few enough readers that they are NOT the problem?

I'm worried about batch and feed times because they're the critical
path.  A full feed is around 750,000 or more articles per week.  If
you take one second to process each accepted article (never mind the
ones you reject), you're screwed, because there aren't 750,000 seconds
in a week.  Hopefully there's some parallelism with multiple feeds,
but you still don't have a lot of time.

Readers don't have nearly the volume.  I look at a handful of groups
and, of the stuff offered from NOV data, I might look at a few hundred.
Say 500 articles, an exceedingly generous amount.  If it takes a second
or two to pull up each article, I might get mildly cranky, not nothing
dire will happen.  If there were 100 readers on the system who were as
active as I am, that's still only 50,000 articles being read per week,
not even 10% of the total flowing through the system.

>Having run on a log filesystem (JFS on AIX), I can tell you that the
>log file is the bottleneck. To get performance up, first I put the
>logfile on a dedicated disk (cut expire time by 3), and then on a
>dedicated solid state disk (cut expire time by 3 again).

As Peter correctly noted, AIX's JFS is not a log-structured filesystem.
It's a fairly conventional filesystem, with a separate journal which
is log-structured.  That's an entirely different animal.

>| One of the attractions to
>| the "toaster" is that you just throw more disk at it when necessary, without
>| worrying about where exactly it should go.  With disks being cheap and
>| reduction in staffing being plentiful, that's very attractive.

>Yes, but adding disk on striped filesystems is not generally easy,
>and the performance hit by not striping, at least for readers, is
>just not acceptable.

Who said anything about striped filesystems?  True striping is foolish
for news anyway -- it's forte is with large files, exactly the opposite
of what you see with news.  For news you'd want concatenation, and in
that case it's generally pretty easy to add another disk.  Right now
I'm using Sun's OnLine:DiskSuite and adding a disk is trivial.  You'll
still get better performance than one larger disk, though not for one
individual article.

[My experience with concatenation vs. striping is at a variance with Karl's
statement.  Jerry Aguirre has posted on this issue in the past, and the
upshot seems to be that striping does indeed work better for news.  --mod]

The Network Appliance "toaster" uses RAID 4 but adding a disk is even
more trivial than with OnLine:DiskSuite.  You plug in a 4 GB disk and
tell the system to use it, and you've got an added 4 GB (minus some
overhead).

-- 
Karl Swartz		|INet	kls@unixhub.slac.stanford.edu
SLAC Computing Services	|	   or kls@chicago.com
1-415/926-3630		|UUCP	uunet!lll-winken!unixhub!kls  -or-  ditka!kls
(SLAC and the US Dept. of Energy don't necessarily agree with my opinions.)


Re: Poor performance with INN and FreeBSD.
#6438
Author: Karl L. Swartz
Date: Tue, 09 Apr 1996 00:00
31 lines
2125 bytes
In article <4itdar$oqh@sunrise.gv.ssi1.com>,
Don Lewis <gdonl@gv.ssi1.com> wrote:

>I believe the "toaster" has a non-volatile write cache for it's disks,
>which would speed up file creation and deletion significantly, since
>these usually involve synchronous writes to the disk on your typical
>Unix local filesystem.

Yes, it does, and that's certainly part of the performance boost.  The
other big part is that an in-core hash table for each directory is
built when the directory is accessed, so adding a file to a directory
with n files in it is O(1) instead of O(n).

>I've heard that Suns with Prestoserve boards (which are generally
>installed to optimize NFS serving) experience a similar performance
>boost.  Expire is reported to run really fast ;-)

I hadn't thought of that before but it certainly makes sense.  You can
help expire with INN's fastpurge (?) feature, though, while creating a
file still requires a linear search of the whole directory to make
sure there isn't already a file with the desired name.  The toaster's
hash table addresses that problem nicely.

-- 
Karl Swartz		|INet	kls@unixhub.slac.stanford.edu
SLAC Computing Services	|	   or kls@chicago.com
1-415/926-3630		|UUCP	uunet!lll-winken!unixhub!kls  -or-  ditka!kls
(SLAC and the US Dept. of Energy don't necessarily agree with my opinions.)


Re: Poor performance with INN and FreeBSD.
#6610
Author: Joe Greco
Date: Tue, 16 Apr 1996 00:00
32 lines
2340 bytes
In news.admin.technical article <4kea27$6f0@kelewan.dandelion.com>, lnz@dandelion.com (Leonard N. Zubkoff) wrote:
:Indeed, striping for news is a win if done properly.  You do not want
:concatenation.  Consider a 14GB news spool composed of 7 2GB disks that's
:only 85% full.  With a concentated file system, a random I/O load will be
:spread only across the first 6 disks since file systems will generally
:optimize for locality.  If we stripe those 7 disks instead, we are
:guaranteed to be spreading the random I/O load across all the spindles.
:The key point is to make sure the stripe width is set large enough that the
:typical I/O transaction only needs to access one of the 7 drives.

Bingo, but not many people seem to understand that  :-)

Under FreeBSD, I've been using "just 2048" as a somewhat arbitrary number 
to do this.  It would probably be better to split on something like cylinder
group boundaries.  I've been thinking about redoing this partition:

/dev/rccd0e:    8380352 sectors in 2046 cylinders of 1 tracks, 4096 sectors
	4092.0MB in 128 cyl groups (16 c/g, 32.00MB/g, 7680 i/g)

with a stripe size of (16 c/g * 1 tr * 4096 sec) = 65536..  that's
essentially alternating every 32MB between disks.

I don't know how ideal that is..

... Joe

-------------------------------------------------------------------------------
Joe Greco - Systems Administrator			      jgreco@ns.sol.net
Solaria Public Access UNIX - Milwaukee, WI			   414/546-7968


Page 3 of 3 • 120 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