🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
11 messages
11 total messages Started by Brad Knowles Tue, 23 Mar 1999 00:00
Diablo/Linux questions....
#36114
Author: Brad Knowles
Date: Tue, 23 Mar 1999 00:00
61 lines
3573 bytes
Folks,

    I've read <http://www.backplane.com/diablo/hard.html>, but I'm
wondering if maybe you could give me some more information.

    We're running Diablo 1.23-REL with Jeremy's cleanfeed (version
0.95.8-beta1).  We've recently added feeds from a number of Top Ten sites,
and have seen the load averages on our news router climb pretty
dramatically.  We still have a bit of idle time left even when the load
average hits twenty-five and above, but I'd really kind of like to get the
load averages back down towards or even below unity, but without dropping
any feeds, etc....

    The machine in question is running Debian Linux (obviously ;-), with a
2.x kernel.  It has 256MB RAM (100MB swap), of which only about 13MB is
left over for use as buffer cache.  It's an older machine, with just a
Pentium II 200Mhz processor and probably just a 10BaseT ethernet card
(although it is switched).


    The top CPU crunching process on the system is cleanfeed.  It's
racking up more than twice as many CPU cycles as any other process on the
system.  However, it's impact is still relatively light, with no more than
8-10MB RAM footprint and normally no more than 5-15% of the CPU at any one
point in time, although there are peaks where cleanfeed hits 25% CPU
utilization.

    Nevertheless, I'm wondering if there has been any progress in getting
a new type of interface set up between Diablo and programs such as
cleanfeed (perhaps something more INN-like?), so that the impact of
feeding articles to cleanfeed is not quite so high?


    Secondly, although I realize that you don't necessarily need a
particularly powerful machine to run Diablo and handle a large number of
newsfeeds (and a high volume of news), I'm wondering if a more up-to-date
configuration might be beneficial.

    In particular, how about one that focusses on using the fastest
available hard drives (three or four 9GB or 18GB Seagate "Cheetah"
mechanisms) attached to a hardware RAID controller in striping mode (e.g.,
a DPT SmartRAID4 or a Mylex DAC960), then running FreeBSD 3.1-STABLE and
"soft updates" on the /news and /news/spool filesystems?

    I'm also wondering if a faster CPU or perhaps SMP system would be
beneficial (e.g., a Pentium Xeon based system with perhaps two or four
processors)?  And RAM -- would 1GB be enough for a news router that would
be targeted to handle a full 30-40GB/day newsfeed from a number of Top Ten
sites and feeding out to between thirty and sixty recipient sites?


    Thanks for any and all information you can provide!

-- 
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
    <http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0xE38CCEF1>

Are you looking for a news feed from a site in the Freenix Top 200?
If so, contact me via private e-mail for details.

Re: Diablo/Linux questions....
#36113
Author: Brad Knowles
Date: Tue, 23 Mar 1999 00:00
46 lines
2834 bytes
In article <36F7B6C5.A2A0C4D5@nl.uu.net>, Frank Ederveen
<franke@nl.uu.net> wrote:

> Just a small remark, is this machine really running with a 10Mbit
> ethernet card, or should that have been 100?

    Nope, that's ten megabits per second.  The claim that Matt makes at
<http://www.backplane.com/diablo/hard.html> is that so long as it's
switched, 10BaseT should be fine at least for smaller news servers.

    Obviously, this is one of the first things we're going to change, but
I wouldn't expect it to really be that much of a serious problem.  But
I've been known to be wrong before, and it wouldn't surprise me too much
if I'm wrong now.

> A pentiumII should have no trouble at all in filling up 10Mbit. Do
> you feed binaries?

    We feed binaries only to our news spool server, and no one else.  And
even that is restricted in size primarily because we have a satellite news
provider that can't give us a full feed.  Even if it could, we know that
the servers we have today couldn't keep up with a full 30-40GB/day news
feed.

> On a pentiumII-350 we see peeks (netstat 1) of 6 or 7 Mbyte/sec.
> This machine is actually a dual cpu system but at the moment it
> is running with just one cpu enabled. It seems to be faster that
> way. Yes, we are puzzled by this too (freebsd-3.1).

    Hmm.  I know that the SMP support in FreeBSD is relatively new, and
that Diablo was written with single CPU systems in mind.

    I wonder if there's not something going on in the code that causes it
want to do all I/O on a single processor (as even Digital Unix did until
very recently), or otherwise step on it's own toes with regards to kernel
locks, or wanting to single-thread through some critical sections of code,
etc....

-- 
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
    <http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0xE38CCEF1>

Are you looking for a news feed from a site in the Freenix Top 200?
If so, contact me via private e-mail for details.

Re: Diablo/Linux questions....
#36118
Author: Russ Allbery
Date: Tue, 23 Mar 1999 00:00
43 lines
2518 bytes
Brad Knowles <brad@shub-internet.org> writes:
> Russ Allbery <rra@stanford.edu> wrote:

>> Well, do you care about accepting duplicate articles?  Not all of the
>> information stored in the history file is available elsewhere on the
>> system.

> Obviously I'm once again demonstrating my ignorance here, but it would
> seem to me that when you rebuilt the history database out of the spool
> you have on-disk, you would record the message-id of each message you
> still have.

Right.

> Although you might accept duplicates of messages you had seen (but which
> have since expired out of your spool, and then your news router crashed
> so you lost the only history entry that you had for that message-id),

Right, that's the case I'm thinking of.

> this shouldn't be too much of a problem since the other news servers you
> would be communicating with should all recognize and refuse to accept a
> message-id that they've already recently seen.

'cording to Barry, who's the only person I recall studying this in much
depth, it's downright common to get regurgitated messages from a few days
(or a week) later from various peers.  I'd gotten the impression that it
was reasonably widespread.  I haven't actually done much investigating
myself, though.

It's quite possible it's a minor enough problem that you don't care.  It's
just the only drawback that occurred to me (assuming that the history
rebuild time from the spool is fast, which I don't know).

Oh, and you'll take a performance hit if you reject a lot and were running
with the equivalent of REMEMBER_TRASH, since all those articles you got
offered and rejected you'll reject again rather than refuse.  But that's
not too bad.

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

Re: Diablo/Linux questions....
#36123
Author: Brad Knowles
Date: Tue, 23 Mar 1999 00:00
37 lines
2484 bytes
In article <F923rv.4ps@spcuna.spc.edu>, Terry Kennedy
<terry@spcunb.spc.edu> wrote:

>   I can say that I've never used a Linux box, so this may not apply to you.
> When I installed Diablo, I had many diablo processes in disk wait state (D
> in ps). They were almost all waiting for access to the history disk. On BSD
> systems (BSD/OS, at least) processes in D state add 1 to the load average.
> I took the brute-force approach and installed a 1GB solid state disk for the
> history file, on its own ultra/wide/differential SCSI controller. That got
> rid of all of the disk waits, except for article writing of large articles. 

    Here's an interesting question -- MFS vs. SSD.


    Let's say that you were using a Xeon based system, and had stuffed it
with as much RAM as the box was physically capable of holding (4GB?). 
Now, if you took say half of that and dedicated it as a memory-based
filesystem, you'd have something very inexpensive (relatively speaking),
and almost as fast as a true SSD.

    The question is what would happen to the news server if the power got
cut and you lost the MFS -- could you relatively easily rebuild the
history database, so that you could come back up quickly?  Or is this
another case (like putting your mqueue on SSD) where you really want
something that is non-volatile?


    Has anyone actually tried putting the history database on MFS?

-- 
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
    <http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0xE38CCEF1>

Are you looking for a news feed from a site in the Freenix Top 200?
If so, contact me via private e-mail for details.

Re: Diablo/Linux questions....
#36133
Author: Brad Knowles
Date: Tue, 23 Mar 1999 00:00
30 lines
2119 bytes
In article <ylww08ysuu.fsf@windlord.stanford.edu>, Russ Allbery
<rra@stanford.edu> wrote:

> Well, do you care about accepting duplicate articles?  Not all of the
> information stored in the history file is available elsewhere on the
> system.

    Obviously I'm once again demonstrating my ignorance here, but it would
seem to me that when you rebuilt the history database out of the spool you
have on-disk, you would record the message-id of each message you still
have.

    Although you might accept duplicates of messages you had seen (but
which have since expired out of your spool, and then your news router
crashed so you lost the only history entry that you had for that
message-id), this shouldn't be too much of a problem since the other news
servers you would be communicating with should all recognize and refuse to
accept a message-id that they've already recently seen.


    Or is there a larger problem here that I'm not seeing?

-- 
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
    <http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0xE38CCEF1>

Are you looking for a news feed from a site in the Freenix Top 200?
If so, contact me via private e-mail for details.

Re: Diablo/Linux questions....
#36137
Author: Russ Allbery
Date: Tue, 23 Mar 1999 00:00
14 lines
1109 bytes
Brad Knowles <brad@shub-internet.org> writes:

> The question is what would happen to the news server if the power got
> cut and you lost the MFS -- could you relatively easily rebuild the
> history database, so that you could come back up quickly?

Well, do you care about accepting duplicate articles?  Not all of the
information stored in the history file is available elsewhere on the
system.

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

Re: Diablo/Linux questions....
#36139
Author: Terry Kennedy
Date: Tue, 23 Mar 1999 00:00
84 lines
5135 bytes
Brad Knowles <brad@shub-internet.org> writes:
>     We're running Diablo 1.23-REL with Jeremy's cleanfeed (version
> 0.95.8-beta1).  We've recently added feeds from a number of Top Ten sites,
> and have seen the load averages on our news router climb pretty
> dramatically.  We still have a bit of idle time left even when the load
> average hits twenty-five and above, but I'd really kind of like to get the
> load averages back down towards or even below unity, but without dropping
> any feeds, etc....

  I can say that I've never used a Linux box, so this may not apply to you.
When I installed Diablo, I had many diablo processes in disk wait state (D
in ps). They were almost all waiting for access to the history disk. On BSD
systems (BSD/OS, at least) processes in D state add 1 to the load average.
I took the brute-force approach and installed a 1GB solid state disk for the
history file, on its own ultra/wide/differential SCSI controller. That got
rid of all of the disk waits, except for article writing of large articles. 

  The attached "top" output is from news.new-york.net, currently Freenix #84.
Given the number of runnable processes, the load makes sense. But there's
still a reasonable amount of idle time. This box is a PPro200/512 with 512MB
of RAM running BSD/OS 3.1. I'll be upgrading it to dual PPro200/512's, maybe
1GB, and BSD/OS 4.0.

last pid: 18117;  load averages:  7.46,  7.45,  8.08                   11:33:17
182 processes: 14 running, 168 sleeping
CPU states:  7.6% user, 12.9% nice, 27.6% system,  0.0% interrupt, 51.9% idle
Memory: Real: 54M/168M Virt: 493M/1370M Free: 204M

  PID USERNAME PRI NICE  SIZE   RES STATE   TIME   WCPU    CPU COMMAND
16806 news       2    4  272K 2588K sleep 221:57  6.79%  6.79% diablo
18078 news       2    0  200K  392K sleep   0:09  5.32%  5.32% dnewslink
13728 news      68    4  200K  396K run    12:04  4.59%  4.59% dnewslink
18077 news      40    0  200K  392K run     0:07  3.42%  3.42% dnewslink
17725 news      33    0  200K  392K run     0:44  1.56%  1.56% dnewslink
 7125 news       2    4  284K 2424K sleep   8:36  0.93%  0.93% diablo
14475 news       2    0  200K  396K sleep   3:38  0.93%  0.93% dnewslink
17551 news       2    0  200K  396K sleep   0:31  0.83%  0.83% dnewslink
13581 news       2    0  200K  396K sleep   7:19  0.83%  0.83% dnewslink
15857 news      30    0  200K  396K run     2:29  0.78%  0.78% dnewslink
11797 news      50    4  288K 2400K run     2:47  0.68%  0.68% diablo
11796 news       2    4  284K 2752K sleep   2:44  0.49%  0.49% diablo
12754 news       2    0  200K  396K sleep   3:34  0.29%  0.29% dnewslink
13105 news       2    0  200K  396K run     4:11  0.20%  0.20% dnewslink
17010 news       2    4  284K 2352K sleep   0:23  0.20%  0.20% diablo
17327 news       2    4  284K 1080K sleep   0:09  0.15%  0.15% diablo
18088 news       2    0  200K  388K sleep   0:00  0.10%  0.10% dnewslink
 7142 news       2    4  284K 2396K sleep   7:39  0.10%  0.10% diablo

  By the way, this news stuff is getting _way_ out of hand 8-). I just did
a "netstat -s" on this box, and it's pumped out over 4.5 terabytes in the
last month, all of it news. And this is to peers, not full-feed customers!

tcp:
	4342015549 packets sent
		3777023277 data packets (4696746784599 bytes)
		31334852 data packets (35011527984 bytes) retransmitted
		3377150 fast retransmits
		238263272 ack-only packets (94996530 delayed)
		21 URG only packets
		479428 window probe packets
		298411892 window update packets
		1008822 control packets
	2878033415 packets received
		1726810693 acks (for 4697421838282 bytes)
		31113263 duplicate acks
		0 acks for unsent data
		1283147943 packets (979736669809 bytes) received in-sequence
		12352923 completely duplicate packets (8328168114 bytes)
		277735 old duplicate packets
		279523 packets with some dup. data (84184070 bytes duped)
		146991999 out-of-order packets (177903278826 bytes)
		122635 packets (17740292 bytes) of data after window
		107078 window probes
		63071884 window update packets
		16069 packets received after close
		2199 discarded for bad checksums
		0 discarded for bad header offset fields
		0 discarded because packet too short

	Terry Kennedy		  Operations Manager, Academic Computing
	terry@spcvxa.spc.edu	  St. Peter's College, Jersey City, NJ USA
        +1 201 915 9381 (voice)   +1 201 435-3662 (FAX)

Re: Diablo/Linux questions....
#36140
Author: Frank Ederveen
Date: Tue, 23 Mar 1999 00:00
17 lines
1306 bytes
Just a small remark, is this machine really running with a 10Mbit
ethernet card, or should that have been 100?

A pentiumII should have no trouble at all in filling up 10Mbit. Do
you feed binaries?

On a pentiumII-350 we see peeks (netstat 1) of 6 or 7 Mbyte/sec.
This machine is actually a dual cpu system but at the moment it
is running with just one cpu enabled. It seems to be faster that
way. Yes, we are puzzled by this too (freebsd-3.1).

Regards,

Frank Ederveen

Re: Diablo/Linux questions....
#36153
Author: Terry Kennedy
Date: Wed, 24 Mar 1999 00:00
16 lines
1568 bytes
Niels Bakker - Non PGP encrypted email deleted automatically. <niels@usenet.bakker.net> writes:
> On my newsfeeds box, tcp packets ~= tcp bytes, so I guess it wrapped over.

  Yup. A long time ago, I submitted a bug to BSDI saying "netstat counters 
need to be 64 bits". When they called me to ask "which ones", I said "all
of 'em". They didn't believe me until I showed them a netstat output with
most of the non-zero counters wrapped after about 4 hours of uptime 8-(

  My news boxes are generating about 20Mbit/sec each in the outbound dir-
ection. Fortunately, they don't all go out the same T3.

	Terry Kennedy		  Operations Manager, Academic Computing
	terry@spcvxa.spc.edu	  St. Peter's College, Jersey City, NJ USA
        +1 201 915 9381 (voice)   +1 201 435-3662 (FAX)

Re: Diablo/Linux questions....
#36162
Author: Cor Bosman
Date: Wed, 24 Mar 1999 00:00
29 lines
1710 bytes
brad@shub-internet.org (Brad Knowles) writes:

Hi Brad,

>    Secondly, although I realize that you don't necessarily need a
>particularly powerful machine to run Diablo and handle a large number of
>newsfeeds (and a high volume of news), I'm wondering if a more up-to-date
>configuration might be beneficial.

Diablo, especially with spam filters can be pretty CPU intensive. We switched
from a Ppro 200 to a dual p2/400 (bsdi 4.0.1), and have noticed a huge
increase in performance. 

>    In particular, how about one that focusses on using the fastest
>available hard drives (three or four 9GB or 18GB Seagate "Cheetah"
>mechanisms) attached to a hardware RAID controller in striping mode (e.g.,
>a DPT SmartRAID4 or a Mylex DAC960), then running FreeBSD 3.1-STABLE and
>"soft updates" on the /news and /news/spool filesystems?

This isnt really necessary imho. We're using a buncha software striped
9gb LVD seagate disks. Works like a charm. 

Id say, add CPU before faster disks. Oh, and memory helps too.

Regards,

Cor

Re: Diablo/Linux questions....
#36215
Author: Steinar Haug
Date: Sat, 27 Mar 1999 00:00
14 lines
1216 bytes
[Frank Ederveen]

|   On a pentiumII-350 we see peeks (netstat 1) of 6 or 7 Mbyte/sec.
|   This machine is actually a dual cpu system but at the moment it
|   is running with just one cpu enabled. It seems to be faster that
|   way. Yes, we are puzzled by this too (freebsd-3.1).

On the other hand, we run Diablo on a dual PII-333, FreeBSD 3.1-STABLE,
and it runs *very* well here. Very definitely faster with two CPUs than
with one.

Steinar Haug, Nethelp consulting, sthaug@nethelp.no

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