🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
35 messages
35 total messages Started by lewcifer999 Fri, 11 Feb 2000 00:00
Q: Wildcard Authentication for Diablo Reader
#44014
Author: lewcifer999
Date: Fri, 11 Feb 2000 00:00
29 lines
1367 bytes
Using Diablo, we've configured reader/post access
in dreader.hosts per the examples with no problem:

209.11.62.*     rp
209.11.63.*     rp
# Static IP - DSL Cust #1
63.138.29.24    r

However, if I want to give authenticated access to
users on dynamic IP's, how do I do it?  I tried
the following without success:

# Dynamic IP (outside) subscribers
*               rp user=auser pass=myapass
*               rp user=buser pass=mybpass
*               rp user=cuser pass=mycpass

I've tried various combinations of the above,
without success.  Can someone give me a clue?

Regards,
Lew Payne
lew@lppi.com


Sent via Deja.com http://www.deja.com/
Before you buy.

Re: Q: Wildcard Authentication for Diablo Reader
#44018
Author: Russell Vincent
Date: Fri, 11 Feb 2000 00:00
109 lines
3889 bytes
lewcifer999@my-deja.com wrote:
> However, if I want to give authenticated access to
> users on dynamic IP's, how do I do it?  I tried
> the following without success:

As has been pointed out, you can't do it with the current dreaderd,
but with the following patch, you should be able to use an external
file with 'username:password' combinations and use 'pwfile=filename'
in dreader.hosts (like you would use 'user='). You still need to
use the 'a' option, but use pwfile instead of the user=/pass=
combination. e.g:

*	rpa	pwfile=filename

Note that the patch might not apply very easily as I have a very
different dns.c to the original (lots of hacking). It shouldn't
be difficult to manually add it, though. I haven't tested it
completely, so use it at your peril.

 -Russell

*** dns.c.old	Fri Feb 11 10:03:43 2000
--- dns.c	Mon Jan 31 14:08:00 2000
***************
*** 24,29 ****
--- 24,30 ----
  int readtoeof(int fd, void *buf, int bytes, int secs);
  int cidrMatch(const char *c_line, const struct in_addr *c_host);
  void ReadVhosts();
+ int pwfileCheck(char *pwfile, char *druser, char *drpass);
  
  int DFd = -1;
  MemPool	*DnsMemPool;
***************
*** 223,228 ****
--- 224,230 ----
  		char *kt;
  		char *user = NULL;
  		char *pass = NULL;
+ 		char *pwfile = NULL;
  
  		while ((kt = strtok(NULL, " \t\n")) != NULL) {
  		    if (strncmp(kt, "user=", 5) == 0) {
***************
*** 230,240 ****
  		    } else if (strncmp(kt, "pass=", 5) == 0) {
  			if (kt[5])
  			    pass = kt + 5;
  		    }
  		}
  		if (DebugOpt)
  		    printf("USER %s PASS %s DR_USER %s\n", user, pass, dres->dr_User);
! 		if (user == NULL) {
  		    needauth = 1;
  		    logit(LOG_INFO, "No user - need to get it");
  #if DIABLO_AUTH
--- 232,247 ----
  		    } else if (strncmp(kt, "pass=", 5) == 0) {
  			if (kt[5])
  			    pass = kt + 5;
+ 		    } else if (strncmp(kt, "pwfile=", 7) == 0) {
+ 			if (kt[7])
+ 			    pwfile = kt + 7;
  		    }
  		}
  		if (DebugOpt)
  		    printf("USER %s PASS %s DR_USER %s\n", user, pass, dres->dr_User);
! 		if ((pwfile != NULL) && dreq->dr_AuthUser[0] && dreq->dr_AuthPass[0]) {
! 		    needauth = pwfileCheck(pwfile, dreq->dr_AuthUser, dreq->dr_AuthPass);
! 		} else if (user == NULL) {
  		    needauth = 1;
  		    logit(LOG_INFO, "No user - need to get it");
  #if DIABLO_AUTH
***************
*** 807,809 ****
--- 814,844 ----
      return (0);
  }
  
+ int
+ pwfileCheck(char *pwfile, char *druser, char *drpass)
+ {
+     FILE *fi;
+     char buf[256];
+     int found = 0;
+     
+     fi = fopen(pwfile,"r");
+     if (fi == NULL) {
+ 	logit(LOG_ERR, "Unable to open pwfile: %s", pwfile);
+ 	return(1);
+     }
+     while (fgets(buf, sizeof(buf), fi) != NULL) {
+ 	char *user = NULL;
+ 	char *pass = NULL;
+ 	user = strtok(buf, ":");
+ 	pass = strtok(NULL, " \n");
+ 	if (user && pass && (strcmp(druser, user) == 0) && (strcmp(drpass, pass) == 0)) {
+ 	    found = 1;
+ 	    break;
+ 	}
+     }
+     fclose(fi);
+     if (found)
+ 	return(0);
+     return(1);
+ }
+ 

Re: Q: Wildcard Authentication for Diablo Reader
#44033
Author: Nickolai Zeldovich
Date: Fri, 11 Feb 2000 00:00
10 lines
972 bytes
In article <87vvl4$dl5$1@nnrp1.deja.com>, lewcifer999@my-deja.com wrote:
>However, if I want to give authenticated access to
>users on dynamic IP's, how do I do it?

The current dreaderd code does not allow this; you can only specify a
single username/password pair per hostname/IP wildcard.

-- Nickolai.

Re: Q: Wildcard Authentication for Diablo Reader
#44045
Author: Joe Greco
Date: Sat, 12 Feb 2000 00:00
22 lines
1746 bytes
In news.software.nntp article <slrn8a7d72.e90.kolya@pepsi.mit.edu>, kolya@mit.edu (Nickolai Zeldovich) wrote:
:In article <87vvl4$dl5$1@nnrp1.deja.com>, lewcifer999@my-deja.com wrote:
:>However, if I want to give authenticated access to
:>users on dynamic IP's, how do I do it?
:
:The current dreaderd code does not allow this; you can only specify a
:single username/password pair per hostname/IP wildcard.

My unofficial version of Diablo has support for this, along with doing it
as an external file of some sort, or RADIUS, or...  :-)  the old version
of DnsTest just wasn't quite right for doing this, as it used a first-match
algorithm.  Mine uses a maximal-privilege/any-match-goes model that will
allow you to do more interesting things (IMO).  For example, if you want
to allow RADIUS auth for users dialing in from a PSI dialup, you might do

38/8	radius=/etc/radius.conf rp

which also shows off the nice CIDR parsing.

... JG

Re: Q: Wildcard Authentication for Diablo Reader
#44063
Author: Paul Martin
Date: Sun, 13 Feb 2000 00:00
22 lines
1702 bytes
In article <RArp4.41395$ox5.10632233@tw11.nn.bcandid.com>, Chris Adams wrote:

>available from other places either.  For example, didn't somebody (you?)
>have a patch that allowed you to spread the spool across multiple (equal
>sized) drives without having to RAID them?  I'm thinking about building
>a large server, and the thought of having to fsck a multi-hundred GB
>filesystem is not fun.  If it was several separate filesystems, they
>wouldn't be as big and they could run in parallel.

Tip: Diablo doesn't generate many files in /news/spool/news, probably
50000 tops, so why bother having millions of inodes on that filesystem?
Also, the files that it does generate are large, so increasing the
block size (and blocks per inode) is a win.

All fsck is checking is metadata. If you tune things correctly, you can
get your diablo spool fscked in a few minutes.

-- 
Paul Martin <pm@zetnet.net>
at home, swap dash to dot to email.

Re: Q: Wildcard Authentication for Diablo Reader
#44070
Author: Nickolai Zeldovich
Date: Sun, 13 Feb 2000 00:00
11 lines
1132 bytes
In article <RArp4.41395$ox5.10632233@tw11.nn.bcandid.com>, Chris Adams wrote:
>                                   having to fsck a multi-hundred GB
>filesystem is not fun.

FWIW, we solved this by enabling UFS logging (Solaris DiskSuite) on
the spool partition; works quite well and doesn't seem to decrease
performance noticeably.

-- Nickolai.

Re: Q: Wildcard Authentication for Diablo Reader
#44071
Author: Brad Knowles
Date: Sun, 13 Feb 2000 00:00
46 lines
2703 bytes
In article <RArp4.41395$ox5.10632233@tw11.nn.bcandid.com>, 
cmadams@fly.hiwaay.net (Chris Adams) wrote:

> And where might this magical version of Diablo appear? :-)

    Give us a chance.  We're working on it.

> It does seem like some more work is happening on Diablo now, with
> several new releases lately, but I think there have been other things
> posted here (like this by you) that aren't in the "official" release or
> available from other places either.

    It looks like we're going to have this problem solved, and we're 
going to be able to incorporate the various different patches from the 
various different sources, to come up with one canonical and official 
version.

    Stay tuned for more.

>                                      For example, didn't somebody (you?)
> have a patch that allowed you to spread the spool across multiple (equal
> sized) drives without having to RAID them?

    Yup.  That's included in Joe's version.

>                                             I'm thinking about building
> a large server, and the thought of having to fsck a multi-hundred GB
> filesystem is not fun.

    Tell me about it.  ;-)

>                         If it was several separate filesystems, they
> wouldn't be as big and they could run in parallel.

    And if you had multiple SCSI channels between your disks and your 
host, you could avoid bus contention and increase your overall 
throughput.

-- 
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>

Are you a USENET news server administrator outside of North America or
Western Europe?  Would you like a newsfeed from a site in the Freenix
Top 65?  If so, please contact me via private e-mail for details.

Re: Q: Wildcard Authentication for Diablo Reader
#44076
Author: Chris Adams
Date: Sun, 13 Feb 2000 00:00
28 lines
2060 bytes
Once upon a time, Joe Greco <jgreco@ns.sol.net> said:
>My unofficial version of Diablo has support for this, along with doing it

And where might this magical version of Diablo appear? :-)

>38/8	radius=/etc/radius.conf rp
>
>which also shows off the nice CIDR parsing.

I also had a patch to do this that I sent in, and CIDR parsing is in the
latest version of Diablo (I'm probably the forgotten author who wrote
the patch that didn't work right in all cases :-) ).

It does seem like some more work is happening on Diablo now, with
several new releases lately, but I think there have been other things
posted here (like this by you) that aren't in the "official" release or
available from other places either.  For example, didn't somebody (you?)
have a patch that allowed you to spread the spool across multiple (equal
sized) drives without having to RAID them?  I'm thinking about building
a large server, and the thought of having to fsck a multi-hundred GB
filesystem is not fun.  If it was several separate filesystems, they
wouldn't be as big and they could run in parallel.
-- 
Chris Adams <cmadams@hiwaay.net>
Systems and Network Administrator - HiWAAY Information Services
I don't speak for anybody but myself - that's enough trouble.

Re: Q: Wildcard Authentication for Diablo Reader
#44080
Author: Joe Greco
Date: Mon, 14 Feb 2000 00:00
32 lines
2272 bytes
In news.software.nntp article <RArp4.41395$ox5.10632233@tw11.nn.bcandid.com>, cmadams@fly.hiwaay.net (Chris Adams) wrote:
:Once upon a time, Joe Greco <jgreco@ns.sol.net> said:
:>My unofficial version of Diablo has support for this, along with doing it
:
:And where might this magical version of Diablo appear? :-)

I've been handing out access to interested parties.

:>38/8	radius=/etc/radius.conf rp
:>
:>which also shows off the nice CIDR parsing.
:
:I also had a patch to do this that I sent in, and CIDR parsing is in the
:latest version of Diablo (I'm probably the forgotten author who wrote
:the patch that didn't work right in all cases :-) ).
:
:It does seem like some more work is happening on Diablo now, with
:several new releases lately, but I think there have been other things
:posted here (like this by you) that aren't in the "official" release or
:available from other places either.  For example, didn't somebody (you?)
:have a patch that allowed you to spread the spool across multiple (equal
:sized) drives without having to RAID them?  I'm thinking about building
:a large server, and the thought of having to fsck a multi-hundred GB
:filesystem is not fun.  If it was several separate filesystems, they
:wouldn't be as big and they could run in parallel.

Yes.  Me.  Guilty.  Works great too.  Building 1.8TB servers using that
methodology.

... JG

Re: Q: Wildcard Authentication for Diablo Reader
#44090
Author: Joe Greco
Date: Mon, 14 Feb 2000 00:00
34 lines
2275 bytes
In news.software.nntp article <Yk2q4.454$K01.71190@ptah.visi.com>, drechsau+usenet@yuck.net (Mike Horwath) wrote:
:### within authentication system as listed above...
:0/0                     radius=/news/<ISP-name>/radius.conf rpv1h10
:
:and ask that the ISP use 'realms' type logins for RADIUS so that their
:user will get their configuration (including message IDs and such).
:
:This way their users within their IP range can authenticate or not and
:read news, while at the same time be able to authenticate from outside
:the IP range as well.
:
:An idea on how to strip the 'realm' part from the auth name before
:passing it onto the remote RADIUS server might be a good thing as
:well, and I am talking to my downstreams about it already.

I thought about that, but I wasn't sure I wanted to start building radiator
into the news system.  :-)  If, at some point, it becomes clear what sorts
of things are useful to more than one or two people, I'd certainly like to
consider adding things (like realm-strip or realm-add).  It might make the
most general sense to rewrite the way I do RADIUS a bit, but that'd be a
breeze with the way it is coded.  ;-)

Actually, it'd be a three-minute hack to do

0/0 radius=/file realm=isp.com rpv1h10

which you'd almost need anyways.  This would only apply if somebody
supplied an "@isp.com" suffix to the username.  Hmmm...

<think>

... JG

Re: Q: Wildcard Authentication for Diablo Reader
#44126
Author: Joe Greco
Date: Mon, 14 Feb 2000 00:00
38 lines
2712 bytes
In news.software.nntp article <slrn8adu8n.35p.pm@manlap.zetnet.co.uk>, pm@nowster-zetnet.co.uk (Paul Martin) wrote:
:In article <RArp4.41395$ox5.10632233@tw11.nn.bcandid.com>, Chris Adams wrote:
:
:>available from other places either.  For example, didn't somebody (you?)
:>have a patch that allowed you to spread the spool across multiple (equal
:>sized) drives without having to RAID them?  I'm thinking about building
:>a large server, and the thought of having to fsck a multi-hundred GB
:>filesystem is not fun.  If it was several separate filesystems, they
:>wouldn't be as big and they could run in parallel.
:
:Tip: Diablo doesn't generate many files in /news/spool/news, probably
:50000 tops, so why bother having millions of inodes on that filesystem?
:Also, the files that it does generate are large, so increasing the
:block size (and blocks per inode) is a win.

Don't mess with the block size on FreeBSD.  Does odd things.

My 180-day text spool has about 114136 inodes consumed.  However, to get
that kind of performance, you do have to make sure that you've a reasonable
spool filling policy.  Getting a hundred feeds from all over will ruin the
nice low number-of-inodes, since Diablo creates a file per inbound stream.
To keep the numbers as low as I've got, I can only create 635 files/day, or
26 an hour.

:All fsck is checking is metadata. If you tune things correctly, you can
:get your diablo spool fscked in a few minutes.

Better tip: take best of both worlds.  Make multiple filesystems which can
be efficiently checked in parallel.  Gets fsck times down to ~30 seconds
for 250GB (9 spools).

Oh, and that WAS for _dirty_ filesystems, ones where I went to the machine
and pressed RESET while running.  Clean filesystems are, of course, much
faster on most modern OS's.

... JG

Re: Q: Wildcard Authentication for Diablo Reader
#44098
Author: Joe Greco
Date: Tue, 15 Feb 2000 00:00
29 lines
1867 bytes
In news.software.nntp article <LR4q4.499$K01.78284@ptah.visi.com>, drechsau+usenet@yuck.net (Mike Horwath) wrote:
:Joe Greco <jgreco@ns.sol.net> wrote:
:: Actually, it'd be a three-minute hack to do
:
:: 0/0 radius=/file realm=isp.com rpv1h10
:
:: which you'd almost need anyways.  This would only apply if somebody
:: supplied an "@isp.com" suffix to the username.  Hmmm...
:
:That is exactly what I was thinking of.
:
:This way I (yep, me :) could authenticate for many users on remote
:radius servers handled by my customer's without any interaction from
:me at all.
:
:And by doing that, the end customer doesn't need to do anything with
:their radius server except share a secret with me, and tell their
:authentication customers to use username@domain.name.
:
:If it is 3 minutes, wanna hack it up and be done with it?

Uhhh..  no, not really.  I hate doing things twice.

Read the comment, though.  It's _important_, and woe to he who fails to
read the documentation.

... JG

Re: Q: Wildcard Authentication for Diablo Reader
#44106
Author: Andrew Gierth
Date: Wed, 16 Feb 2000 00:00
18 lines
1651 bytes
>>>>> "Kjetil" == Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> writes:

 >> Do I need to also have them limit article size (and if so, what is
 >> a good size to call text-only)?

 Kjetil> Last I heard, the largest text article you will likely see is
 Kjetil> FAQ from rec.arts.startrek FAQ.  The current version is a
 Kjetil> little more than 100kB.

comp.unix.programmer FAQ is about 128k currently (3600 or so lines),
and I have no intention of splitting it into parts unless it grows to
at least 256k. There are plenty of bigger FAQs to be found in
news.answers.

-- 
Andrew.

Re: Q: Wildcard Authentication for Diablo Reader
#44114
Author: Joe Greco
Date: Wed, 16 Feb 2000 00:00
18 lines
1475 bytes
In news.software.nntp article <U8zq4.120$cR1.15959@ptah.visi.com>, drechsau+usenet@yuck.net (Mike Horwath) wrote:
:Chris Adams <cmadams@hiwaay.net> wrote:
:: Once upon a time, Mike Horwath <drechsau+usenet@yuck.net> said:
::>Joe Greco <jgreco@ns.sol.net> wrote:
::>: Read the comment, though.  It's _important_, and woe to he who fails to
::>: read the documentation.
::>
::>No longer lost...a quick cvs and things are more clear.
:
:: CVS?  Where?
:
:Ask Mr. Greco, it is his server, I am just a guinea pig for his majesty.

<A HREF="http://www.nntp.sol.net/whos_responsible.au">

... JG

Re: Q: Wildcard Authentication for Diablo Reader
#44115
Author: Nickolai Zeldovich
Date: Wed, 16 Feb 2000 00:00
11 lines
1244 bytes
In article <1rya8lyalm.fsf@haey.ifi.uio.no>, Kjetil Torgrim Homme wrote:
>Last I heard, the largest text article you will likely see is FAQ from
>rec.arts.startrek FAQ.

A quick glance at news.answers shows that the DVD FAQ is a little
under 300kB (<rec-video/dvd-faq_950525294@rtfm.mit.edu>). No, it
doesn't seem to include any encoded video or audio data :-)

-- Nickolai.

Re: Q: Wildcard Authentication for Diablo Reader
#44116
Author: Brad Knowles
Date: Wed, 16 Feb 2000 00:00
22 lines
1837 bytes
In article <38aadefa$0$1408@news.execpc.com>, jgreco@ns.sol.net (Joe 
Greco) wrote:

> The actual structure of the machine was described on freebsd-chat just a
> bit ago, and highlights a clever way to make the most of your spindles.

    Are you talking about message-id 
<200002151836.MAA64919_aurora.sol.net@ns.sol.net>?  If so, could you 
re-interpret this into English?

    If you're talking about another message or set of messages, do you 
have message-ids that you could give us and we could go read and try to 
attempt to comprehend?  ;-)

-- 
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>

Are you a USENET news server administrator outside of North America or
Western Europe?  Would you like a newsfeed from a site in the Freenix
Top 65?  If so, please contact me via private e-mail for details.

Re: Q: Wildcard Authentication for Diablo Reader
#44121
Author: Chris Adams
Date: Wed, 16 Feb 2000 00:00
57 lines
3591 bytes
Once upon a time, Joe Greco <jgreco@ns.sol.net> said:
>In news.software.nntp article <slrn8adu8n.35p.pm@manlap.zetnet.co.uk>,
>pm@nowster-zetnet.co.uk (Paul Martin) wrote:
>:Tip: Diablo doesn't generate many files in /news/spool/news, probably
>:50000 tops, so why bother having millions of inodes on that filesystem?
>:Also, the files that it does generate are large, so increasing the
>:block size (and blocks per inode) is a win.
>
>Don't mess with the block size on FreeBSD.  Does odd things.

I'm using Linux.  I've set it to 4k blocks.

>My 180-day text spool has about 114136 inodes consumed.  However, to get
>that kind of performance, you do have to make sure that you've a reasonable
>spool filling policy.  Getting a hundred feeds from all over will ruin the
>nice low number-of-inodes, since Diablo creates a file per inbound stream.
>To keep the numbers as low as I've got, I can only create 635 files/day, or
>26 an hour.

Since you mentioned a text spool; I've got another (non Diablo)
question: I'm working at the moment on setting up a text-only server.
What should I request from a feeder/peer to get a "text-only" feed?
Will something like '*,!*binar*,!*binaer*' catch the various spellings
of binaries?  Do I need to also have them limit article size (and if so,
what is a good size to call text-only)?

Also, how much space should you allow for overview information for a
text-only feed?  If I want 50G of articles, how much space should I
allow for overviews?

>:All fsck is checking is metadata. If you tune things correctly, you can
>:get your diablo spool fscked in a few minutes.
>
>Better tip: take best of both worlds.  Make multiple filesystems which can
>be efficiently checked in parallel.  Gets fsck times down to ~30 seconds
>for 250GB (9 spools).

That's why I was asking about your Diablo patch that splits spool across
multiple drives - I thought of that.  Also, how does your patch affect
performance?  Does it spread the load across multiple drives fairly
well, or does it it hit on one for a bit, then the next one, then the
next one, and so on?  I've set up large spools in the past by setting
up RAID 0 across lots of drives, both to make a large filesystem and to
improve performance.  Is that necessary with Diablo, with (or without)
your patch?

>Oh, and that WAS for _dirty_ filesystems, ones where I went to the machine
>and pressed RESET while running.  Clean filesystems are, of course, much
>faster on most modern OS's.

Well I figured that.  I don't plan to fsck a _clean_ filesystem. :-)
-- 
Chris Adams <cmadams@hiwaay.net>
Systems and Network Administrator - HiWAAY Information Services
I don't speak for anybody but myself - that's enough trouble.

Re: Q: Wildcard Authentication for Diablo Reader
#44123
Author: Kjetil Torgrim Homme
Date: Wed, 16 Feb 2000 00:00
16 lines
1438 bytes
[Andrew Gierth]

>   comp.unix.programmer FAQ is about 128k currently (3600 or so lines),
>   and I have no intention of splitting it into parts unless it grows to
>   at least 256k. There are plenty of bigger FAQs to be found in
>   news.answers.

So I guess one should set the cutoff 64 kB or thereabouts and
explicitly allow anything in *.answers (until some joker creates
alt.binaries.erotica.answers ;-)


Kjetil T.


Re: Q: Wildcard Authentication for Diablo Reader
#44127
Author: Russ Allbery
Date: Wed, 16 Feb 2000 00:00
12 lines
1326 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> writes:

> So I guess one should set the cutoff 64 kB or thereabouts and explicitly
> allow anything in *.answers (until some joker creates
> alt.binaries.erotica.answers ;-)

The responses too objectionable to post to rec.humor.oracle?  :)

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

Re: Q: Wildcard Authentication for Diablo Reader
#44128
Author: Joe Greco
Date: Wed, 16 Feb 2000 00:00
92 lines
5046 bytes
In news.software.nntp article <lQnq4.46720$ox5.12256086@tw11.nn.bcandid.com>, cmadams@HiWAAY.net (Chris Adams) wrote:
:Once upon a time, Joe Greco <jgreco@ns.sol.net> said:
:>In news.software.nntp article <slrn8adu8n.35p.pm@manlap.zetnet.co.uk>,
:>pm@nowster-zetnet.co.uk (Paul Martin) wrote:
:>:Tip: Diablo doesn't generate many files in /news/spool/news, probably
:>:50000 tops, so why bother having millions of inodes on that filesystem?
:>:Also, the files that it does generate are large, so increasing the
:>:block size (and blocks per inode) is a win.
:>
:>Don't mess with the block size on FreeBSD.  Does odd things.
:
:I'm using Linux.  I've set it to 4k blocks.
:
:>My 180-day text spool has about 114136 inodes consumed.  However, to get
:>that kind of performance, you do have to make sure that you've a reasonable
:>spool filling policy.  Getting a hundred feeds from all over will ruin the
:>nice low number-of-inodes, since Diablo creates a file per inbound stream.
:>To keep the numbers as low as I've got, I can only create 635 files/day, or
:>26 an hour.
:
:Since you mentioned a text spool; I've got another (non Diablo)
:question: I'm working at the moment on setting up a text-only server.
:What should I request from a feeder/peer to get a "text-only" feed?
:Will something like '*,!*binar*,!*binaer*' catch the various spellings
:of binaries?  Do I need to also have them limit article size (and if so,
:what is a good size to call text-only)?

I classify:

if (type & ARTTYPE_BINARY || type & ARTTYPE_PS || type & ARTTYPE_PARTIAL || type & ARTTYPE_PGPMESSAGE) {
}

as binary.  This uses the articleType function that I've passed around once
or twice before.  I do plan to put this function into Diablo, so that you
may actually have a feed object like

label	site
	alias	site
	addgroup	*
	delarttype	binaries,ps,partial,pgpmessage
end

and it'll just weed out the binaries.  I have this running in production
now, as a backend to Diablo.  It is ugly but works.  Integration is the
right way to go.

:Also, how much space should you allow for overview information for a
:text-only feed?  If I want 50G of articles, how much space should I
:allow for overviews?

Dunno.  Never did the math.  My readers have 36GB of overview space,
for ~16000 groups, including binaries, and store things an average of
about 80 days.  My estimate is that there are probably about 25 million
articles on overview.

1.5K/article?  Seems about right.

:>:All fsck is checking is metadata. If you tune things correctly, you can
:>:get your diablo spool fscked in a few minutes.
:>
:>Better tip: take best of both worlds.  Make multiple filesystems which can
:>be efficiently checked in parallel.  Gets fsck times down to ~30 seconds
:>for 250GB (9 spools).
:
:That's why I was asking about your Diablo patch that splits spool across
:multiple drives - I thought of that.  Also, how does your patch affect
:performance?  Does it spread the load across multiple drives fairly
:well, or does it it hit on one for a bit, then the next one, then the
:next one, and so on?  I've set up large spools in the past by setting
:up RAID 0 across lots of drives, both to make a large filesystem and to
:improve performance.  Is that necessary with Diablo, with (or without)
:your patch?

It's always necessary to consider performance.

As far as write performance goes, Diablo still tends to localize writes on
one area of the spool, and therefore on one filesystem - but the target fs
rotates slowly.  That's OK because write activity is rather minimal when
compared to read.  Read performance is probably not _enhanced_ by having
multiple spool fs's, either, though.  So I'd say it's probably more of a
wash when considering runtime performance.  Now that we've concluded that
performance isn't a big deal...

Where you win is recovery.  The ability to do parallelizing fsck's, to lose
only a portion of your spool if a drive goes bad, etc.

The actual structure of the machine was described on freebsd-chat just a
bit ago, and highlights a clever way to make the most of your spindles.

... JG

Re: Q: Wildcard Authentication for Diablo Reader
#44130
Author: Chris Adams
Date: Wed, 16 Feb 2000 00:00
14 lines
1271 bytes
Once upon a time, Mike Horwath <drechsau+usenet@yuck.net> said:
>Joe Greco <jgreco@ns.sol.net> wrote:
>: Read the comment, though.  It's _important_, and woe to he who fails to
>: read the documentation.
>
>No longer lost...a quick cvs and things are more clear.

CVS?  Where?
-- 
Chris Adams <cmadams@hiwaay.net>
Systems and Network Administrator - HiWAAY Information Services
I don't speak for anybody but myself - that's enough trouble.

Re: Q: Wildcard Authentication for Diablo Reader
#44131
Author: Kjetil Torgrim Homme
Date: Wed, 16 Feb 2000 00:00
33 lines
2122 bytes
[Chris Adams]

>   Since you mentioned a text spool; I've got another (non Diablo)
>   question: I'm working at the moment on setting up a text-only server.
>   What should I request from a feeder/peer to get a "text-only" feed?
>   Will something like '*,!*binar*,!*binaer*' catch the various spellings
>   of binaries?

(I'm not Joe, but I'll answer anyway :-)

No.  There is at least alt.bainaries.*, but remember alt.sex.pictures
and other "stealth" groups.

>   Do I need to also have them limit article size (and if so, what is
>   a good size to call text-only)?

Last I heard, the largest text article you will likely see is FAQ from
rec.arts.startrek FAQ.  The current version is a little more than
100kB.  I don't know how common it is to split binaries into 64 kB
chunks these days, but I would be surprised if it was.

>   Also, how much space should you allow for overview information for
>   a text-only feed?  If I want 50G of articles, how much space
>   should I allow for overviews?

Roughly a quarter of that, most articles are small.  Diablo may need
more, though.  (INN only keeps _some_ of the headers, Diablo keeps
them all.)


Kjetil T.

Re: Q: Wildcard Authentication for Diablo Reader
#44141
Author: Brad Knowles
Date: Thu, 17 Feb 2000 00:00
21 lines
1770 bytes
In article <38ab2540$0$1402@news.execpc.com>, jgreco@ns.sol.net (Joe 
Greco) wrote:

> Uh, it _is_ in English.  Thank you, please try again.  :-)

    I tried to read it.  I know that my knowledge of Diablo is not 
encyclopedic, and that my knowledge of FreeBSD is not encyclopedic, but 
I certainly wasn't able to grok just what the heck it was you were 
talking about.

    Could you translate for those of us that don't know quite as much 
about Diablo & FreeBSD as you?  ;-)

-- 
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>

Are you a USENET news server administrator outside of North America or
Western Europe?  Would you like a newsfeed from a site in the Freenix
Top 65?  If so, please contact me via private e-mail for details.

Re: Q: Wildcard Authentication for Diablo Reader
#44149
Author: Joe Greco
Date: Thu, 17 Feb 2000 00:00
90 lines
5230 bytes
In news.software.nntp article <9TSq4.35$Yd2.1990@ptah.visi.com>, drechsau+usenet@yuck.net (Mike Horwath) wrote:
:Brad Knowles <brad@shub-internet.org> wrote:
::     Could you translate for those of us that don't know quite as much 
:: about Diablo & FreeBSD as you?  ;-)
:
:It is big, it is bad, and you should bow down unto it.
:
:That's the gist.
:
::)

I like that summary.  It could be taken several ways.  :-)

<A HREF="http://www.nntp.sol.net/fogleg12.wav">

I'm just going to describe the I/O subsystem here.

Imagine you have four shelves of drives.  Each shelf is composed of 9 50GB
Barracuda drives.  Someone happened to snap a photo of it:

<A HREF="http://www.nntp.sol.net/mvc-076f.jpg">

The lefthand rack is bins0-milwwi, the 1.8TB machine.  It was built with
the new-style Antec UW SCSI removable drive modules, and has a lit LCD for
each screen (finger-twirl).  The machine itself, in the center, is flanked
by two shelves of drives on either side, to minimize cable lengths.

The righthand rack is the bottom portion of one of the old binaries servers
(top right) - you cannot see the top drive shelf.  The bottom machine is
a standard article spool server, two shelves of 18G's below the server.
Below that are the two readers that handle my production reader load:  they
are a bit overloaded, but until I actually finish deploying my distributed
DNS thing, they're handling a subscriber base of 340,000.  I am not going
to describe this any further.  The remainder is an outline of the new
machine.

Now, we all know that Diablo (and most news systems) are hell on history.
Those of us who have run Diablo for any period also know that Diablo is very
easy on the spool.  I sort of wish I had much larger, maybe slower disks for
the spool, and fewer of them, but a nice stripe set of very fast, small
drives for the history.

So, instead of getting additional drives for the history, I decided to use
the ones I had, and leverage the fact that I have a large number of
Barracuda-speed drives, all of which are vastly underutilized for spool.
I make two striped metadevices, cutting 750MB from each drive.  The top two
shelves get their 750MB segments striped together, 14GB or so.  The bottom
two, likewise.  Now I mirror the two 14GB metadevices together, and make
that my /news filesystem.  Now I have, essentially, a very fast number of
small drives for /news.  Better, vinum for FreeBSD can optimize reads to
come from either metadevice...  very fast.

This leaves me with about 49GB on each drive.  To keep things easy to
understand and also to spread the stripe load across the SCSI busses, I
then take each vertical column of drives and stripe it into a ~196GB
data filesystems.  Nine columns, nine filesystems.  The number of
filesystems is not so large as to be unwieldy, as 18 or 36 might be, but 
is large enough to allow substantial benefits from parallelization of 
fsck, etc.

I then figure out what newfs parameters to use.  I know this'll be binaries,
and I know that I'll never get the ratio of inodes to bytes to a point I'd
like, so I arbitrarily decide on 2MB since fsck time seems reasonable (only
223,000 inodes per fs).

Now I go back and tune my stripe size to the size in sectors of the cylinder
group, so that operations within a CG will land on a single drive.  That is
an optimization to increase parallelization within the filesystem, and has
been hashed through here before.

Then you put it in production and get:

/dev/vinum/news  14149612   630226 13519386     4%    /news
/dev/vinum/n0   192125401 44463169 147662232    23%    /news/spool/news/N.00
/dev/vinum/n1   192125401 42998424 149126977    22%    /news/spool/news/N.01
/dev/vinum/n2   192125401 44965039 147160362    23%    /news/spool/news/N.02
/dev/vinum/n3   192125401 46532136 145593265    24%    /news/spool/news/N.03
/dev/vinum/n4   192125401 44560448 147564953    23%    /news/spool/news/N.04
/dev/vinum/n5   192125401 45182968 146942433    24%    /news/spool/news/N.05
/dev/vinum/n6   192125401 43807007 148318394    23%    /news/spool/news/N.06
/dev/vinum/n7   192125401 43778887 148346514    23%    /news/spool/news/N.07
/dev/vinum/n8   192125401 46930648 145194753    24%    /news/spool/news/N.08

<A HREF="http://www.nntp.sol.net/fogleg40.wav">

:-)

... JG

Re: Q: Wildcard Authentication for Diablo Reader
#44150
Author: Joe Greco
Date: Thu, 17 Feb 2000 00:00
147 lines
7593 bytes
In news.software.nntp article <brad-5AD0EC.19580717022000@news.skynet.be>, Brad Knowles <brad@shub-internet.org> wrote:
:In article <38ac286b$0$86644@news.execpc.com>, jgreco@ns.sol.net (Joe 
:Greco) wrote:
:
:> Imagine you have four shelves of drives.  Each shelf is composed of 9 
:> 50GB Barracuda drives.  Someone happened to snap a photo of it:
:
:    Hmm.  I've got a drive array with five SCSI busses internally, and 
:currently four drives per bus (it can take a max of six per bus), plus 
:one extra for hot spare.  Each of my drives is only 18GB in size 
:(currently, they only support as large as 36GB).
:
:    You've got 1.8TB raw, I've got only 360GB raw.
:
:>                            Now I have, essentially, a very fast number of
:> small drives for /news.  Better, vinum for FreeBSD can optimize reads to
:> come from either metadevice...  very fast.
:
:    Fascinating.  Out of curiosity, how large do you expect your history 
:to get?

Do I expect it to get?  Why not just ask how big it is.  On the binaries 
server, not real large.  The 750GB binaries server is

-rw-r--r--  1 news  news  673595408 Feb 17 13:53 /news/dhistory

while the 250GB text server is

-rw-r--r--  1 news  news  3228525584 Feb 17 13:53 /news/dhistory

But I have a tendency to use a 64m hash size, which is artificially bloating
the size for the binaries server.

:    Unfortunately, I don't think my drive array lets me do a 
:configuration like this.  ;-(

Sigh.

:    Could you do some benchmarking with rawio & postmark, and tell me 
:what kind of numbers of transactions per second and what kind of 
:throughput you get on your /news partition?

# ./rawio -r -R  /dev/vinum/rnews
           Random read  Sequential read    Random write Sequential write
ID          K/sec  /sec    K/sec  /sec     K/sec  /sec     K/sec  /sec
news      14393.5   900  11796.0   720
# ./rawio -c 128 -p 16 -n 65536 -r -R  /dev/vinum/rnews
           Random read  Sequential read    Random write Sequential write
ID          K/sec  /sec    K/sec  /sec     K/sec  /sec     K/sec  /sec
news      46541.9   711  37292.1   569
# ./rawio -c 128 -p 32 -n 65536 -r -R /dev/vinum/rnews
           Random read  Sequential read    Random write Sequential write
ID          K/sec  /sec    K/sec  /sec     K/sec  /sec     K/sec  /sec
news      59013.8   905  48887.0   746

All of that looks like crap from a TPS point of view, although the K/s
looks fairly respectable.  Now, switch to a model that more closely
resembles history access, and watch this.

# ./rawio -c 1 -p 64 -n 1048576 -r -R /dev/vinum/rnews
           Random read  Sequential read    Random write Sequential write
ID          K/sec  /sec    K/sec  /sec     K/sec  /sec     K/sec  /sec
news       1941.9  7583    796.2  1555

I blasted six hundred thousand duplicate articles at the machine last
night.  It was rejecting them at a rate of a thousand per second.

:    I want to compare this with the numbers I got for a memory-based 
:filesystem (which is what I use on our news peering server for the 
:history file), so that I can have some kind of idea where our 
:performance is likely going to need to be in that range.
:
:
:    Speaking of which, should I post the results here that I have 
:recently turned up?  I already posted them to the postfix-users and 
:freebsd-stable lists, but I'm wondering if anyone else is interested....

If you want to explain to me how to make postmark pop up numbers that have
any relevance to this discussion, go ahead.

:> This leaves me with about 49GB on each drive.  To keep things easy to
:> understand and also to spread the stripe load across the SCSI busses, I
:> then take each vertical column of drives and stripe it into a ~196GB
:> data filesystems.  Nine columns, nine filesystems.  The number of
:> filesystems is not so large as to be unwieldy, as 18 or 36 might be, but 
:> is large enough to allow substantial benefits from parallelization of 
:> fsck, etc.
:
:    I'll have just four filesystems spread across the five SCSI busses, 
:and because this will be my only news spool server, I'll have to use 
:RAID-5 for reliability.  This cuts me down to 288GB raw.
:
:    Even if I could otherwise duplicate your sort of configuration, I 
:think I'd have to either go with at least a pair of machines, or with 
:RAID-5 on one machine, because I don't think I can afford to have this 
:thing go Tango Uniform on me very often.

Of course.  :-)  This is actually the third binaries server here, and I
won't actually start using the extra capacity until I've got it in at
least a redundant configuration (I like threes myself).

:> I then figure out what newfs parameters to use.  I know this'll be 
:> binaries, and I know that I'll never get the ratio of inodes to bytes
:> to a point I'd like, so I arbitrarily decide on 2MB since fsck time
:> seems reasonable (only 223,000 inodes per fs).
:
:    Hmm.  Sounds reasonable, although I think I might be inclined to go 
:with some slightly smaller numbers, since my filesystems will be rather 
:smaller than yours, and I think I'll have a proportionally higher 
:percentage of text articles.

That has so very little to do with it.  Diablo can put a large number of
binaries in a single file, or an even larger number of text articles in
a single file.  What you need to figure out is how many files per hour
you will be creating.

:> Now I go back and tune my stripe size to the size in sectors of the 
:> cylinder group, so that operations within a CG will land on a single
:> drive.  That is an optimization to increase parallelization within
:> the filesystem, and has been hashed through here before.
:
:    I'll have to go look for that.  I don't suppose you have any 
:message-ids you could give me?

No, but I summarized the whole goal in that previous sentence.  You want
to promote parallelism within the I/O subsystem by forcing a single
mechanism to perform as much of a complete operation as possible -
including the directory lookup.  That leaves the other spindles free to do
other things.

:    Again, I don't think my drive array lets me do things like this.  ;-(
:
:> <A HREF="http://www.nntp.sol.net/fogleg40.wav">
:
:    Yeah, it's getting through.  It's getting through that I let 
:management talk me into what will probably be a bad solution for our 
:news spool server.  ;-( ;-( ;-(

That's the joy of being a systems architect.  Nobody bothers to tell you
the site is swampy until they've poured the basement and it fills with mud.

Send mail, let's talk.  You used to annoy me daily in mail, what happened?
;-)

... JG

Re: Q: Wildcard Authentication for Diablo Reader
#44152
Author: Terry Kennedy
Date: Thu, 17 Feb 2000 00:00
46 lines
3221 bytes
Brad Knowles <brad@shub-internet.org> writes:
>     I want to compare this with the numbers I got for a memory-based 
> filesystem (which is what I use on our news peering server for the 
> history file), so that I can have some kind of idea where our 
> performance is likely going to need to be in that range.

  I'm using a 1GB solid state disk for my Diablo history file on my peer-
ing box (news.new-york.net). It's an older unit and it only does wide
SCSI (not Ultra or faster) so it's somewhat benchmark-limited by that.
But it seems fine from a production point of view.

  This: http://www.new-york.net/news1a.jpg was Freenix #77 in November and
December, and #94 in January (due to a FreeBSD issue I spent a long time
isolating and working around).

>     Could you do some benchmarking with rawio & postmark, and tell me 
> what kind of numbers of transactions per second and what kind of 
> throughput you get on your /news partition?

  Just for fun (using the first and last of Joe Greco's posted benchmarks):

(0:1) news:/# rawio -R -r /dev/rda4s1e
           Random read  Sequential read    Random write Sequential write
ID          K/sec  /sec    K/sec  /sec     K/sec  /sec     K/sec  /sec
anon      15729.3   978  15675.4   957                         
         
(0:2) news:/# rawio -c 1 -p 64 -n 1048576 -r -R /dev/rda4s1e
           Random read  Sequential read    Random write Sequential write
ID          K/sec  /sec    K/sec  /sec     K/sec  /sec     K/sec  /sec
anon       2831.3 11057   2815.1  5498                                  

  This is the Imperial SSD on an Adaptec 2944UW. During normal news use,
the "Available" LED on the SSD rarely blinks off. It was amusing to see
it go off completely during the first test. During the second test it was
mostly on, but I think that was because the Adaptec driver isn't really
set up for a large number of small reads - there's only memory for 16
SCB's on the card.

  A page detailing some other stuff about my news server can be found at:
http://www.new-york.net/news_history and server stats are at:
http://www.new-york.net/terrypub/news-stats/

	Terry Kennedy             http://www.tmk.com
        terry@tmk.com             Jersey City, NJ USA

Re: Q: Wildcard Authentication for Diablo Reader
#44154
Author: Joe Greco
Date: Thu, 17 Feb 2000 00:00
19 lines
1570 bytes
In news.software.nntp article <jiVq4.67$Yd2.7118@ptah.visi.com>, drechsau+usenet@yuck.net (Mike Horwath) wrote:
:Joe Greco <jgreco@ns.sol.net> wrote:
:: That's a service I normally charge customers for :-)
:
:And I already purchased my decoder ring.
:
:Wanna borrow it?  I don't think I have any license restrictions
:stating I can't loan it out.

"loan it out."  Now that's something I wonder if I cover in my license
agreements.  Probably doesn't matter since I tie stuff to IP addresses.

Nf sbe lbhe qrpbqre evat, lbh pyrneyl tbg vg va n obk bs Penpxrewnpx, fb V
jbhyq fhttrfg gung lbh erghea vg gb gur cynpr bs chepunfr sbe n shyy ershaq.
Gur AFN zvtug oernx vg fbzrqnl.  :-)

... WT

Re: Q: Wildcard Authentication for Diablo Reader
#44173
Author: Joe Greco
Date: Thu, 17 Feb 2000 00:00
19 lines
1563 bytes
In news.software.nntp article <brad-241CBD.13321017022000@news.skynet.be>, Brad Knowles <brad@shub-internet.org> wrote:
:In article <38ab2540$0$1402@news.execpc.com>, jgreco@ns.sol.net (Joe 
:Greco) wrote:
:
:> Uh, it _is_ in English.  Thank you, please try again.  :-)
:
:    I tried to read it.  I know that my knowledge of Diablo is not 
:encyclopedic, and that my knowledge of FreeBSD is not encyclopedic, but 
:I certainly wasn't able to grok just what the heck it was you were 
:talking about.
:
:    Could you translate for those of us that don't know quite as much 
:about Diablo & FreeBSD as you?  ;-)

That's a service I normally charge customers for :-)

... JG

Re: Q: Wildcard Authentication for Diablo Reader
#44174
Author: Brad Knowles
Date: Thu, 17 Feb 2000 00:00
23 lines
1914 bytes
In article <9TSq4.35$Yd2.1990@ptah.visi.com>, drechsau+usenet@yuck.net 
(Mike Horwath) wrote:

> Brad Knowles <brad@shub-internet.org> wrote:
> :     Could you translate for those of us that don't know quite as much 
> : about Diablo & FreeBSD as you?  ;-)
> 
> It is big, it is bad, and you should bow down unto it.

    I will do that at SANE 2000.  ;-)

    However, I also want to build something approaching a miniature 
version of it (before SANE 2000), and to do *that* I need to understand 
a bit better just what exactly he's done....

-- 
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>

Are you a USENET news server administrator outside of North America or
Western Europe?  Would you like a newsfeed from a site in the Freenix
Top 65?  If so, please contact me via private e-mail for details.

Re: Q: Wildcard Authentication for Diablo Reader
#44187
Author: Brad Knowles
Date: Thu, 17 Feb 2000 00:00
89 lines
4983 bytes
In article <38ac286b$0$86644@news.execpc.com>, jgreco@ns.sol.net (Joe 
Greco) wrote:

> Imagine you have four shelves of drives.  Each shelf is composed of 9 
> 50GB Barracuda drives.  Someone happened to snap a photo of it:

    Hmm.  I've got a drive array with five SCSI busses internally, and 
currently four drives per bus (it can take a max of six per bus), plus 
one extra for hot spare.  Each of my drives is only 18GB in size 
(currently, they only support as large as 36GB).

    You've got 1.8TB raw, I've got only 360GB raw.

>                            Now I have, essentially, a very fast number of
> small drives for /news.  Better, vinum for FreeBSD can optimize reads to
> come from either metadevice...  very fast.

    Fascinating.  Out of curiosity, how large do you expect your history 
to get?

    Unfortunately, I don't think my drive array lets me do a 
configuration like this.  ;-(


    Could you do some benchmarking with rawio & postmark, and tell me 
what kind of numbers of transactions per second and what kind of 
throughput you get on your /news partition?

    I want to compare this with the numbers I got for a memory-based 
filesystem (which is what I use on our news peering server for the 
history file), so that I can have some kind of idea where our 
performance is likely going to need to be in that range.


    Speaking of which, should I post the results here that I have 
recently turned up?  I already posted them to the postfix-users and 
freebsd-stable lists, but I'm wondering if anyone else is interested....

> This leaves me with about 49GB on each drive.  To keep things easy to
> understand and also to spread the stripe load across the SCSI busses, I
> then take each vertical column of drives and stripe it into a ~196GB
> data filesystems.  Nine columns, nine filesystems.  The number of
> filesystems is not so large as to be unwieldy, as 18 or 36 might be, but 
> is large enough to allow substantial benefits from parallelization of 
> fsck, etc.

    I'll have just four filesystems spread across the five SCSI busses, 
and because this will be my only news spool server, I'll have to use 
RAID-5 for reliability.  This cuts me down to 288GB raw.

    Even if I could otherwise duplicate your sort of configuration, I 
think I'd have to either go with at least a pair of machines, or with 
RAID-5 on one machine, because I don't think I can afford to have this 
thing go Tango Uniform on me very often.

> I then figure out what newfs parameters to use.  I know this'll be 
> binaries, and I know that I'll never get the ratio of inodes to bytes
> to a point I'd like, so I arbitrarily decide on 2MB since fsck time
> seems reasonable (only 223,000 inodes per fs).

    Hmm.  Sounds reasonable, although I think I might be inclined to go 
with some slightly smaller numbers, since my filesystems will be rather 
smaller than yours, and I think I'll have a proportionally higher 
percentage of text articles.

> Now I go back and tune my stripe size to the size in sectors of the 
> cylinder group, so that operations within a CG will land on a single
> drive.  That is an optimization to increase parallelization within
> the filesystem, and has been hashed through here before.

    I'll have to go look for that.  I don't suppose you have any 
message-ids you could give me?

    Again, I don't think my drive array lets me do things like this.  ;-(

> <A HREF="http://www.nntp.sol.net/fogleg40.wav">

    Yeah, it's getting through.  It's getting through that I let 
management talk me into what will probably be a bad solution for our 
news spool server.  ;-( ;-( ;-(

-- 
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>

Are you a USENET news server administrator outside of North America or
Western Europe?  Would you like a newsfeed from a site in the Freenix
Top 65?  If so, please contact me via private e-mail for details.

Re: Q: Wildcard Authentication for Diablo Reader
#44199
Author: Brad Knowles
Date: Fri, 18 Feb 2000 00:00
72 lines
4036 bytes
In article <38ac565b$0$187@news.execpc.com>, jgreco@ns.sol.net (Joe 
Greco) wrote:

> # ./rawio -c 1 -p 64 -n 1048576 -r -R /dev/vinum/rnews
>            Random read  Sequential read    Random write Sequential write
> ID          K/sec  /sec    K/sec  /sec     K/sec  /sec     K/sec  /sec
> news       1941.9  7583    796.2  1555

    Yowch.  Those sequential read numbers kinda hurt (I can do almost as 
well on a 4-way 10kRPM vinum stripseset), but then I guess for history 
access you don't worry about that much.  ;-)

    Sure does make me wonder what it is that would hurt the sequential 
performance so much, but boost the random performance, though....

> If you want to explain to me how to make postmark pop up numbers that 
> have any relevance to this discussion, go ahead.

    Relevance to USENET news servers, none (well, unless you're running 
traditional spool, but ... ;-).

    Relevance to what I'm trying to do with mail servers, perhaps a lot 
(depending on whether you believe that postmark is a reasonable first 
approximation of the pattern of traffic that a mail server sees when 
receiving mail).

> That has so very little to do with it.  Diablo can put a large number of
> binaries in a single file, or an even larger number of text articles in
> a single file.  What you need to figure out is how many files per hour
> you will be creating.

    Okay, and how would one go about finding this out?

> No, but I summarized the whole goal in that previous sentence.  You want
> to promote parallelism within the I/O subsystem by forcing a single
> mechanism to perform as much of a complete operation as possible -
> including the directory lookup.  That leaves the other spindles free to 
> do other things.

    Understood, but at the moment that's kind of like explaining the 
difference between cleats and sneakers to a kid who can't even walk yet.

    Greg Lehey was trying to get me to understand this sort of thing, 
too.  So far, he hasn't been completely successful.  Maybe one of these 
days one of you guys will manage to pound it into my brain.

> That's the joy of being a systems architect.  Nobody bothers to tell you
> the site is swampy until they've poured the basement and it fills with 
> mud.

    Yeah, well.  Now that we've got it, what the heck can we do with it?  
;-(

> Send mail, let's talk.  You used to annoy me daily in mail, what 
> happened?
> ;-)

    There was a long period there when you didn't answer e-mail very 
much, although that recently appears to have changed for the better.  
During the drought, the best way to get in contact with you was usually 
via USENET news.

    I guess I can go back to more regular channels, now....  ;-)

-- 
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>

Are you a USENET news server administrator outside of North America or
Western Europe?  Would you like a newsfeed from a site in the Freenix
Top 65?  If so, please contact me via private e-mail for details.

Re: Q: Wildcard Authentication for Diablo Reader
#44200
Author: Brad Knowles
Date: Fri, 18 Feb 2000 00:00
33 lines
2467 bytes
In article <Fq3Kwq.BqG@spcuna.spc.edu>, Terry Kennedy 
<terry@gate.tmk.com> wrote:

> (0:1) news:/# rawio -R -r /dev/rda4s1e
>            Random read  Sequential read    Random write Sequential write
> ID          K/sec  /sec    K/sec  /sec     K/sec  /sec     K/sec  /sec
> anon      15729.3   978  15675.4   957                         
>          
> (0:2) news:/# rawio -c 1 -p 64 -n 1048576 -r -R /dev/rda4s1e
>            Random read  Sequential read    Random write Sequential write
> ID          K/sec  /sec    K/sec  /sec     K/sec  /sec     K/sec  /sec
> anon       2831.3 11057   2815.1  5498                                  

    WOOF!  I was getting *MUCH* better results with the vinum four-way 
stripe of 10kRPM disks.  See 
<http://www.shub-internet.org/brad/FreeBSD/vinum.html> for details.

    In short, I got ~18MBps sequential read throughput, and slightly 
over 16MBps random read throughput.  And this was to real, live, 
physical disks.


    I'm beginning to wish that rawio would run against memory-based 
filesystems, so that I could get an idea of what it thinks I'm getting.

-- 
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>

Are you a USENET news server administrator outside of North America or
Western Europe?  Would you like a newsfeed from a site in the Freenix
Top 65?  If so, please contact me via private e-mail for details.

Re: Q: Wildcard Authentication for Diablo Reader
#44202
Author: Brad Knowles
Date: Fri, 18 Feb 2000 00:00
44 lines
3156 bytes
In article <brad-AD1A43.01121318022000@news.skynet.be>, Brad Knowles 
<brad@shub-internet.org> wrote:

> In article <Fq3Kwq.BqG@spcuna.spc.edu>, Terry Kennedy 
> <terry@gate.tmk.com> wrote:
> 
> > (0:1) news:/# rawio -R -r /dev/rda4s1e
> >            Random read  Sequential read    Random write Sequential write
> > ID          K/sec  /sec    K/sec  /sec     K/sec  /sec     K/sec  /sec
> > anon      15729.3   978  15675.4   957                         
> >          
> > (0:2) news:/# rawio -c 1 -p 64 -n 1048576 -r -R /dev/rda4s1e
> >            Random read  Sequential read    Random write Sequential write
> > ID          K/sec  /sec    K/sec  /sec     K/sec  /sec     K/sec  /sec
> > anon       2831.3 11057   2815.1  5498                                  
> 
>     WOOF!  I was getting *MUCH* better results with the vinum four-way 
> stripe of 10kRPM disks.  See 
> <http://www.shub-internet.org/brad/FreeBSD/vinum.html> for details.

    Let me elaborate.  I was previously looking at throughput volume, 
but I was ignoring numbers of transactions.  I don't recall for sure, 
but I think I had problems getting rawio to do average/max transfer 
sizes below 2 sectors, and I'm sure having problems getting it to do 
average/max transfer sizes below 2 sectors right now.

    The data I took at two sectors indicated a peak random read 
throughput of 690 KB/sec, and 900 TPS.  Sequential read was 1217.9KBps 
and 1189 TPS.  Now that I compare both of these numbers of yours to the 
numbers of mine, I see that while I might be able to match your TPS, I 
can't touch your KBps at that rate, and while I may be able to beat your 
KBps by large amounts, I can't touch your TPS at those rates.


    Now I see, says the blind man....

-- 
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>

Are you a USENET news server administrator outside of North America or
Western Europe?  Would you like a newsfeed from a site in the Freenix
Top 65?  If so, please contact me via private e-mail for details.

Re: Q: Wildcard Authentication for Diablo Reader
#44204
Author: Brad Knowles
Date: Fri, 18 Feb 2000 00:00
26 lines
2226 bytes
In article <Fq3Kwq.BqG@spcuna.spc.edu>, Terry Kennedy 
<terry@gate.tmk.com> wrote:

> (0:2) news:/# rawio -c 1 -p 64 -n 1048576 -r -R /dev/rda4s1e
>            Random read  Sequential read    Random write Sequential write
> ID          K/sec  /sec    K/sec  /sec     K/sec  /sec     K/sec  /sec
> anon       2831.3 11057   2815.1  5498                                  

    Awright, I just put up the Excel file that contains all the raw data 
for the graphs I generated at 
<http://www.shub-internet.org/brad/FreeBSD/vinum.html>.  See 
<ftp://ftp.shub-internet.org/pub/shub/brad/news/vinumraw.xls>.  It's 
191,488 bytes in size, and contains the various charts that I produced 
in addition to the main ones I turned into GIFs.

    If we're going to try to compare your performance testing versus 
mine, we might as well use complete datasets.

-- 
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>

Are you a USENET news server administrator outside of North America or
Western Europe?  Would you like a newsfeed from a site in the Freenix
Top 65?  If so, please contact me via private e-mail for details.

Re: Q: Wildcard Authentication for Diablo Reader
#44208
Author: Terry Kennedy
Date: Fri, 18 Feb 2000 00:00
61 lines
3605 bytes
Brad Knowles <brad@shub-internet.org> writes:
>     WOOF!  I was getting *MUCH* better results with the vinum four-way 
> stripe of 10kRPM disks.  See 
> <http://www.shub-internet.org/brad/FreeBSD/vinum.html> for details.

  You're comparing your spool disks with my history disk, I think. If you
look at my history disk vs. Joe's /news (which is mostly his history),
things look a bit better, particular when comparing the amounts we probably
spent on our respective servers 8-}

Let's compare the results Joe Greco and I got when running the same tests:

Joe:

# ./rawio -r -R  /dev/vinum/rnews
           Random read  Sequential read    Random write Sequential write
ID          K/sec  /sec    K/sec  /sec     K/sec  /sec     K/sec  /sec
news      14393.5   900  11796.0   720

Terry:

(0:1) news:/# rawio -R -r /dev/rda4s1e
           Random read  Sequential read    Random write Sequential write
ID          K/sec  /sec    K/sec  /sec     K/sec  /sec     K/sec  /sec
anon      15729.3   978  15675.4   957                         

Joe:

# ./rawio -c 1 -p 64 -n 1048576 -r -R /dev/vinum/rnews
           Random read  Sequential read    Random write Sequential write
ID          K/sec  /sec    K/sec  /sec     K/sec  /sec     K/sec  /sec
news       1941.9  7583    796.2  1555

Terry:

(0:2) news:/# rawio -c 1 -p 64 -n 1048576 -r -R /dev/rda4s1e
           Random read  Sequential read    Random write Sequential write
ID          K/sec  /sec    K/sec  /sec     K/sec  /sec     K/sec  /sec
anon       2831.3 11057   2815.1  5498                                  

>     In short, I got ~18MBps sequential read throughput, and slightly 
> over 16MBps random read throughput.  And this was to real, live, 
> physical disks.

  I can get 17Mbyte/sec sequential read with a single IDE disk (IBM DJNA)
as long as I turn on DMA, multi-sector, and all that stuff. In fact, while
I was running news.new-york.net on IDE disks last month (while chasing the
FreeBSD mbuf corruption panics) I had the whole thing on an IDE Maxtor 
(about 4GB) and the IBM DJNA (22GB).

>     I'm beginning to wish that rawio would run against memory-based 
> filesystems, so that I could get an idea of what it thinks I'm getting.

  Well, for a rough idea you could time a dd of a large file on the mfs
filesystem (I assume we're talking about mfs here?). Since memory should
have no seek delay, sequential or random access won't matter much.

	Terry Kennedy             http://www.tmk.com
        terry@tmk.com             Jersey City, NJ USA

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