🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
9 messages
9 total messages Started by joe Tue, 20 Oct 1998 00:00
PII Xeon vs. PII vs. Celeron A for feed boxes and reader boxes?
#32346
Author: joe
Date: Tue, 20 Oct 1998 00:00
22 lines
1603 bytes
Has anyone empirically examined the benefits (if any) of using a PII Xeon
vs. a regular PII vs. a Celeron A as the compute engine for feed and/or reader
boxes? (Obviously, choice of OS and choice of feed/reader software technology
will have an impact, too, and yes, I know that I/O subsystem and memory 
related effects will also be crucial, but for now I'm just wondering about 
the extent to which cache-related and CPU speed relatedeffects are material). 

Why? Well, consider the pricing on these chips:

   PII Xeon 400 with 1MB cache @ ~$3250      25 X
   PII Xeon 400 with 512KB cache @ ~$1000    7.7X
   PII 450 with 512KB cache @ ~$550          4.2X
   Celeron 300a with 128KB cache @ ~$130     1.0 (baseline)

In a nutshell, I'd love to be able to convince myself that a Celeron 300a,
running as-is (or overclocked), is the right thing to do...

Thanks,

Joe

Re: PII Xeon vs. PII vs. Celeron A for feed boxes and reader boxes?
#32333
Author: Matt Dillon
Date: Tue, 20 Oct 1998 00:00
68 lines
3947 bytes
:In article <70j6rm$64j$1@pith.uoregon.edu>,  <joe@oregon.uoregon.edu> wrote:
:>Has anyone empirically examined the benefits (if any) of using a PII Xeon
:>vs. a regular PII vs. a Celeron A as the compute engine for feed and/or reader
:>boxes? (Obviously, choice of OS and choice of feed/reader software technology
:>will have an impact, too, and yes, I know that I/O subsystem and memory 
:>related effects will also be crucial, but for now I'm just wondering about 
:>the extent to which cache-related and CPU speed relatedeffects are material). 
:>
:>Why? Well, consider the pricing on these chips:
:>
:>   PII Xeon 400 with 1MB cache @ ~$3250      25 X
:>   PII Xeon 400 with 512KB cache @ ~$1000    7.7X
:>   PII 450 with 512KB cache @ ~$550          4.2X
:>   Celeron 300a with 128KB cache @ ~$130     1.0 (baseline)
:>
:>In a nutshell, I'd love to be able to convince myself that a Celeron 300a,
:>running as-is (or overclocked), is the right thing to do...
:>
:>Thanks,
:>
:>Joe

    A Celeron-A series, which I believe has the 1xClock 128K L2 cache,
    is as fast as a pentium-II at the same frequency with the 512K half speed
    L2 cache.

    A Xeon (with its 1xClock 1MByte cache) is about twice as fast as a 
    pentium-II at the same frequency.

    A Xeon is roughly equivalent to a Pentium-PRO (which had 1xClock L2 cache),
    but is available at higher frequencies, can take bigger L2 caches, and has
    a faster physical memory interface (I think).  The Xeon can also cache the
    full 4G of memory while the pentium-II can only cache 512MB (though I've 
    heard that later revs of the P-II can cache the entire 4G address space 
    too).

    What it comes down to is:  How much cpu do you need? 

    If you think the single-cpu pentium-II doesn't 'quite' have enough cpu
    for your needs, but is very close, then definitely consider a 
    duel-cpu Pentium-II motherboard after the single cpu board BEFORE you
    consider a Xeon.  The duel-cpu pentium-II motherboards are very cheap,
    especially if you don't get the bleeding edge pentium II's to go with them.

    For example, we have one production machine with a duel-pentium-II Tyan
    motherboard with two P-II/300's in it.  It's our NNTP server (300+ online
    users and, in fact doesn't really need the second cpu).  None of our 
    30+ web servers really need such a high-end configuration because they are
    more disk-limited then cpu-limited.  I'm only willing to commit so much
    disk to any given machine for reliability reasons.

    I would expect you would be able to take advantage of a duel-cpu 
    motherboard using any of the major operating systems, depending on what
    your needs are.  My personal favoriate is FreeBSD-3.0.

    Personally, I think the Xeon is too costly at the moment and that most of
    the people buying them just don't realize that a decked out P-II system
    will work just as well for their needs.  That is how it typically works...
    marketing rather then need is selling the highest-end chips.

						-Matt

-- 
    Matthew Dillon  Engineering, HiWay Technologies, Inc. & BEST Internet
                    Communications
    <dillon@best.net> (Please include original email in any response)

Re: PII Xeon vs. PII vs. Celeron A for feed boxes and reader boxes?
#32351
Author: bill davidsen
Date: Wed, 21 Oct 1998 00:00
26 lines
1939 bytes
In article <70j6rm$64j$1@pith.uoregon.edu>,  <joe@oregon.uoregon.edu> wrote:

| Why? Well, consider the pricing on these chips:
| 
|    PII Xeon 400 with 1MB cache @ ~$3250      25 X
|    PII Xeon 400 with 512KB cache @ ~$1000    7.7X
|    PII 450 with 512KB cache @ ~$550          4.2X
|    Celeron 300a with 128KB cache @ ~$130     1.0 (baseline)

I would go PPro, because it will cache more than 512MB. Some slot1 P-II
are said to do this, but I haven't seen any change in the spec to
support that. A dual-PPro, using the new overdrive (333MHz) chips, will
list at about $1500, and cost less than that.

Allows for lots of memory, lots of power, etc. Dual CPU really helps
with reader boxen, on a news router it's less helpful; innd is the
bottleneck, unless you have a boatload of feeds nothing else is
significant.

Linux SMP works, the stable kernels will give you a few percent less
than the development kernel, but you shouldn't be cutting it that close!
-- 
    bill davidsen <davidsen@tmr.com>    CTO, TMR Associates, Inc
Never underestimate the power of stupid people in large groups

Re: PII Xeon vs. PII vs. Celeron A for feed boxes and reader boxes?
#32360
Author: Matt Dillon
Date: Wed, 21 Oct 1998 00:00
49 lines
2759 bytes
:In article <slrn72sqrq.tjm.niels@liquid.tpb.net>,
:Niels Bakker - Non PGP encrypted email deleted automatically. <niels@usenet.bakker.net> wrote:
:>In article <70jbm6$h2$1@flea.best.net>, Matt Dillon wrote:
:>
:>
:>What is currently considered a "good" machine for 20-30 feeds?  Apart from
:>a 100BaseTX interface, are Fast-SCSI2 disks good enough for "pure" Diablo?
:>(I have some lying around, you see :) they aren't RAID, so no good for
:> websites and such, but they're available.)
:>
:>TIA,

    'only' 20-30 feed?  Heh heh.  A 486 would *almost* do it :-)

    A single-cpu pentium-II/300 box with 256MB of ram will work just fine.
    In fact, it's overkill.  100BaseTX, 2940UW (ultra/wide, i.e. 40 MBytes/sec 
    bus), and stripe a couple of fast SCSI-II disks together.  You can make do 
    with two 4G or two 9G drives, but I'd throw in three to give yourself
    a bigger margin (Also, figure out how much spool you need for the
    newsfeeds box).

    I've begun to use a stripe size of 128 sectors (64KBytes).  I think it
    works much better then the 1024/2048 sector stripes I was using before.

    As far as OS's go:  FreeBSD-current (and I think the -3.0 release too)
    fixes *all* known VM bugs.  You ought to be able to run Linux or Solaris
    as well, but a Linux or Solaris person will have to post comments in
    regards to machine config.

    You should be able to put the /news and /news/spool/news partitions on
    the same stripe set if you are striping three disks together, especially
    with softupdates enabled.

    I am running about 90 feeds on a similarly endowed machine.  It's running
    close to the edge w/ 256MB of ram.  I'll probably upgrade it to 512MB
    in the next few weeks to reduce the disk I/O a bit.

						    -Matt

:>
:>	-- Niels.


-- 
    Matthew Dillon  Engineering, HiWay Technologies, Inc. & BEST Internet
                    Communications
    <dillon@best.net> (Please include original email in any response)

Re: PII Xeon vs. PII vs. Celeron A for feed boxes and reader boxes?
#32364
Author: Matt Dillon
Date: Thu, 22 Oct 1998 00:00
36 lines
2035 bytes
:In article <362fa9c5.0@news.sto.telegate.se>,
:Fredrik Lindgren <fredrik@tfi.net> wrote:
:><snip>
:>
:...
:>
:>As for the reader code on Linux I've had som problems. While it can easily
:>take 200 simultaneous readers (no, not on THAT machine. :) It keeps
:>leaving "reader slots" busy even though the reader client have disconnected.

    What software (Diablo?), and what release?

    Are you sure the reader clients involved really disconnected?  What
    is the socket state out of netstat ?  Something I see a lot are users
    who connect in from dialups, then hangup without disconnecting.  The
    SO_KEEPALIVE flag that I set in dreaderd should fix this, but it
    could take a while for the system to figure out that the socket is
    dead.

						-Matt

:>Anyone else seeing this problem? This is on linux 2.1.113 up to 2.1.125.
:>I guess I ougth to try a 2.0.x series kernel, but I need the new raid
:>support that is in the newer kernels so that I can have up to 12 devices
:>in the spool RAID set.
:>
:>Regrads,
:>  Fredrik Lindgren
:>  Sonera Corporation

-- 
    Matthew Dillon  Engineering, HiWay Technologies, Inc. & BEST Internet
                    Communications
    <dillon@best.net> (Please include original email in any response)

Re: PII Xeon vs. PII vs. Celeron A for feed boxes and reader boxes?
#32376
Author: Jean-Francois Stenuit
Date: Thu, 22 Oct 1998 00:00
45 lines
2492 bytes
Matt Dillon wrote:
> 
> :In article <slrn72sqrq.tjm.niels@liquid.tpb.net>,
> :Niels Bakker - Non PGP encrypted email deleted automatically. <niels@usenet.bakker.net> wrote:
> :>In article <70jbm6$h2$1@flea.best.net>, Matt Dillon wrote:
> :>
> :>
> :>What is currently considered a "good" machine for 20-30 feeds?  Apart from
> :>a 100BaseTX interface, are Fast-SCSI2 disks good enough for "pure" Diablo?
> :>(I have some lying around, you see :) they aren't RAID, so no good for
> :> websites and such, but they're available.)
> :>
> :>TIA,
> 
>     'only' 20-30 feed?  Heh heh.  A 486 would *almost* do it :-)
<snip>
>     As far as OS's go:  FreeBSD-current (and I think the -3.0 release too)
>     fixes *all* known VM bugs.  You ought to be able to run Linux or Solaris
>     as well, but a Linux or Solaris person will have to post comments in
>     regards to machine config.

With about the same config, we're using a PPRO-200 256MB RAM, with linux
2.1.123
(but it should be fine with 2.0.35). The only problem with Linux is that
the RAID
software in the kernel is rather young. Anyway, this worked out right
out of the
box, without changing the stripe sector size. I has been running
smoothly for three weeks now.

I made some tests with cleanfeed plugged into diablo, but I would advice
a more powerfull CPU for that kind of stuff, as an external perl filter
definitely eats up the resources of your system.

When I found the system stable, I may be looking into future fine tuning
...

Regards,

--
Jean-Francois "Jef" Stenuit
Network Manager
Belgacom Skynet SA/NV

Re: PII Xeon vs. PII vs. Celeron A for feed boxes and reader boxes?
#32383
Author: Fredrik Lindgren
Date: Fri, 23 Oct 1998 00:00
50 lines
2648 bytes
<snip>

>    'only' 20-30 feed?  Heh heh.  A 486 would *almost* do it :-)
>
>    A single-cpu pentium-II/300 box with 256MB of ram will work just fine.
>    In fact, it's overkill.  100BaseTX, 2940UW (ultra/wide, i.e. 40
MBytes/sec
>    bus), and stripe a couple of fast SCSI-II disks together.  You can make
do
>    with two 4G or two 9G drives, but I'd throw in three to give yourself
>    a bigger margin (Also, figure out how much spool you need for the
>    newsfeeds box).
>
>    I've begun to use a stripe size of 128 sectors (64KBytes).  I think it
>    works much better then the 1024/2048 sector stripes I was using before.
>
>    As far as OS's go:  FreeBSD-current (and I think the -3.0 release too)
>    fixes *all* known VM bugs.  You ought to be able to run Linux or
Solaris
>    as well, but a Linux or Solaris person will have to post comments in
>    regards to machine config.

Well, we're on a P166 with 128Meg RAM here... Add to that an Adaptec
controller under Linux and the old disks and you have a system which
won't run with anything else than 5Mhz SCSI bus speed... Hopefully I'll
be able to get another controller and new disks soon. It's got some
15 feeds at present.

#688 on Freenix and climbing... :)

This is on Linux 2.0.36pre12, rock solid. I did try adding the cleanfeed
stuff, the machine died... I guess you need some cooler hardware to keep
up with that.

As for the reader code on Linux I've had som problems. While it can easily
take 200 simultaneous readers (no, not on THAT machine. :) It keeps
leaving "reader slots" busy even though the reader client have disconnected.
Anyone else seeing this problem? This is on linux 2.1.113 up to 2.1.125.
I guess I ougth to try a 2.0.x series kernel, but I need the new raid
support that is in the newer kernels so that I can have up to 12 devices
in the spool RAID set.

Regrads,
  Fredrik Lindgren
  Sonera Corporation




Re: PII Xeon vs. PII vs. Celeron A for feed boxes and reader boxes?
#32387
Author: Matt Dillon
Date: Fri, 23 Oct 1998 00:00
154 lines
5796 bytes
:In article <36311e5e.0@news.sto.telegate.se>,
:Fredrik Lindgren <fredrik@tfi.net> wrote:
:>Matt Dillon <dillon@best.net> wrote in message 70onkf$egp$1@flea.best.net...
:>>:In article <362fa9c5.0@news.sto.telegate.se>,
:>
:>Aha, that is it I guess. There are lots of sockets apparently stuck in the
:>"CLOSE" state. Either that or new ones are showing up faster than they time
:>out. This is unlikely though since the machine will run for about 3-4 days
:>before running our of the 500 slots that are configured. It typically sees
:>100-200 simultaneous readers.
:>
:>The sockets that are stuck are all shown to be in the (startup) phase in
:>dreaderd.status. Some have data en the send-q and some dont.
:>
:>Could this be Linux? I'll try to test it on 2.0.x and see if it works any
:>better.

     Hmmm.   It sounds like a client close of an embrionic connection is 
     not causing the socket to be marked 'readable' in select.  i.e. a bug
     in Linux.  Linux has gone through three rewrites of the tcp stack,
     it could be a select wakeup case that it isn't handling.

     I check for passed descriptors that are beyond select()'s range, so it
     can't be that.  I don't think this sort of thing would occur if the
     box were running out of descriptors, but it would be a good idea to
     double check the max descriptors per process (at least 1024) and
     max descriptors for machine (at least 16384).

     If it is a bug in the linux kernel, we might be able to hack around it by
     scheduling a wakeup that 'marks' all the descriptors readable to force
     a read() attempt every so-often, like every 5 minutes or something.

     I have included a patch below for you to try... see if it clears out the
     stale connections.  This patch is against diablo-1.21-test01.  If this
     patch works, I'll keep it in and extend it to implement an idle timeout
     feature (which dreaderd does not currently have).

:>>:>Anyone else seeing this problem? This is on linux 2.1.113 up to 2.1.125.
:>>:>I guess I ougth to try a 2.0.x series kernel, but I need the new raid
:>>:>support that is in the newer kernels so that I can have up to 12 devices
:>>:>in the spool RAID set.
:>
:>Regards,
:>  Fredrik Lindgren
:>  Sonera Corporation


Index: dreaderd/reader.c
===================================================================
RCS file: /home/ncvs/diablo/dreaderd/reader.c,v
retrieving revision 1.5
diff -c -r1.5 reader.c
*** reader.c	1998/10/22 06:14:23	1.5
--- reader.c	1998/10/24 06:35:10
***************
*** 42,47 ****
--- 42,48 ----
  {
      time_t dtime = 0;
      time_t ltime = 0;
+     time_t itime = 0;
      int counter = 0;
  
      TFd = fd;
***************
*** 90,95 ****
--- 91,102 ----
  	fd_set wfds = WFds;
  	int i;
  
+ 	/*
+ 	 *  Get next scheduled timeout, no more then 2 seconds
+ 	 *  (x 10 counter counts = 20 seconds max for dtime/itime 
+ 	 *  check)
+ 	 */
+ 
  	NextTimeout(&tv, 2 * 1000);
  
  	stprintf("%s readers=%02d spoolsrv=%d/%d postsrv=%d/%d",
***************
*** 115,126 ****
  	if (FeedOnlyServer <= 0) {
  	    if (++counter == 10) {
  		time_t t = CurTime.tv_sec;
! 		if (ltime)
  		    dtime += t - ltime;
  		if (dtime < -5 || dtime >= 60) {
  		    CheckServerConfig(t, ServersTerminated);
  		    dtime = 0;
  		}
  		ltime = t;
  		counter = 0;
  	    }
--- 122,150 ----
  	if (FeedOnlyServer <= 0) {
  	    if (++counter == 10) {
  		time_t t = CurTime.tv_sec;
! 		if (ltime) {
  		    dtime += t - ltime;
+ 		    itime += t - ltime;
+ 		}
+ 
+ 		/*
+ 		 * Check for server config change once a minute
+ 		 */
  		if (dtime < -5 || dtime >= 60) {
  		    CheckServerConfig(t, ServersTerminated);
  		    dtime = 0;
  		}
+ 
+ 		/*
+ 		 * Poll all active descriptors once every 5 minutes.  This
+ 		 * will work around a linux embrionic close bug that
+ 		 * doesn't wakeup select(), and is used to idle-timeout
+ 		 * connections. XXX
+ 		 */
+ 		if (itime < -5 || itime >= 300) {
+ 		    rfds = RFds;
+ 		    itime = 0;
+ 		}
  		ltime = t;
  		counter = 0;
  	    }
***************
*** 220,229 ****
      cmsg.fd = -1;
      errno = 0;
  
-     if (DebugOpt)
- 	printf("RECV MSG\n");
- 
      if ((r = recvmsg(desc->d_Fd, &msg, MSG_EOR|MSG_WAITALL)) == sizeof(dres)) {
  	if (cmsg.fd >= MAXFDS) {
  	    logit(LOG_WARNING, "fd too large %d/%d, increase MAXFDS for select. Closing fd", cmsg.fd, MAXFDS);
  	    /*
--- 244,253 ----
      cmsg.fd = -1;
      errno = 0;
  
      if ((r = recvmsg(desc->d_Fd, &msg, MSG_EOR|MSG_WAITALL)) == sizeof(dres)) {
+ 	if (DebugOpt)
+ 	    printf("RECV MSG\n");
+ 
  	if (cmsg.fd >= MAXFDS) {
  	    logit(LOG_WARNING, "fd too large %d/%d, increase MAXFDS for select. Closing fd", cmsg.fd, MAXFDS);
  	    /*


-- 
    Matthew Dillon  Engineering, HiWay Technologies, Inc. & BEST Internet
                    Communications
    <dillon@best.net> (Please include original email in any response)

Re: PII Xeon vs. PII vs. Celeron A for feed boxes and reader boxes?
#32396
Author: Fredrik Lindgren
Date: Sat, 24 Oct 1998 00:00
50 lines
2590 bytes
Matt Dillon <dillon@best.net> wrote in message 70onkf$egp$1@flea.best.net...
>:In article <362fa9c5.0@news.sto.telegate.se>,
>:Fredrik Lindgren <fredrik@tfi.net> wrote:
>:><snip>
>:>
>:...
>:>
>:>As for the reader code on Linux I've had som problems. While it can
easily
>:>take 200 simultaneous readers (no, not on THAT machine. :) It keeps
>:>leaving "reader slots" busy even though the reader client have
disconnected.
>
>    What software (Diablo?), and what release?

Yep, Diablo. I've seen this from the first reader version i tried, somewhere
in the high 1.16tests I believe.

>    Are you sure the reader clients involved really disconnected?
>
>    What is the socket state out of netstat ?  Something I see a lot are
>    users who connect in from dialups, then hangup without disconnecting.
>    The SO_KEEPALIVE flag that I set in dreaderd should fix this, but it
>    could take a while for the system to figure out that the socket is
>    dead.

Aha, that is it I guess. There are lots of sockets apparently stuck in the
"CLOSE" state. Either that or new ones are showing up faster than they time
out. This is unlikely though since the machine will run for about 3-4 days
before running our of the 500 slots that are configured. It typically sees
100-200 simultaneous readers.

The sockets that are stuck are all shown to be in the (startup) phase in
dreaderd.status. Some have data en the send-q and some dont.

Could this be Linux? I'll try to test it on 2.0.x and see if it works any
better.

>:>Anyone else seeing this problem? This is on linux 2.1.113 up to 2.1.125.
>:>I guess I ougth to try a 2.0.x series kernel, but I need the new raid
>:>support that is in the newer kernels so that I can have up to 12 devices
>:>in the spool RAID set.

Regards,
  Fredrik Lindgren
  Sonera Corporation



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