🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
47 messages
47 total messages Started by J.D. Falk Tue, 20 Aug 1996 00:00
Probs with innfeed 0.8.5b on Solaris
#10255
Author: J.D. Falk
Date: Tue, 20 Aug 1996 00:00
21 lines
1532 bytes
	I'm experiencing some serious problems with innfeed 0.8.5b on
a Sparc 20 running Solaris 2.4, and on an UltraSparc 1 running Solaris
2.5; in both cases, I get errors like the following:

] Tue Aug 20 05:04:27 1996 innfeed: bufferByteCount < (1024 * 1024 * 10)
] in file buffer.c line 420

...and then it dumps core.  This is usually after it runs successfully for
about a minute and a half to five minutes. 

	Any thoughts?

-- 
 ---------========== J.D. Falk <jdfalk@cybernothing.org> =========---------
  |   "I happen to know that the CAIS guys are members of the            |
  |             Bavarian Illuminati and the Trilateral Commission...."   |
  |                            -- Doug Humphrey, in dc.general           |
 ----========== http://www.cybernothing.org/jdfalk/home.html ==========----

Re: Probs with innfeed 0.8.5b on Solaris
#10226
Author: coneill
Date: Tue, 20 Aug 1996 00:00
27 lines
1388 bytes
On 20 Aug 1996 11:28:52 GMT, J.D. Falk <jdfalk@cyberNOTHING.org> wrote:
>	I'm experiencing some serious problems with innfeed 0.8.5b on
>a Sparc 20 running Solaris 2.4, and on an UltraSparc 1 running Solaris
>2.5; in both cases, I get errors like the following:
>
>] Tue Aug 20 05:04:27 1996 innfeed: bufferByteCount < (1024 * 1024 * 10)
>] in file buffer.c line 420
>
>...and then it dumps core.  This is usually after it runs successfully for
>about a minute and a half to five minutes. 
>
>	Any thoughts?

Either don't feed binaries into innfeed or increase SOFT_ARTICLE_BYTE_LIMIT
in config.h to more than 10mb.  The problem is that innfeed tries to keep
articles in memory until they've been sent to all feeds, and with a few
900k postings you can go over 10mb pretty easily.  


-- 

Clayton O'Neill
whatever@oneill.net


Re: Probs with innfeed 0.8.5b on Solaris
#10282
Author: Andrew A. Vasilyev
Date: Wed, 21 Aug 1996 00:00
13 lines
1001 bytes
T. William Wells (bill@twwells.com) wrote:
> I don't run innfeed anymore; instead, I run a 100 line perl
> script that interacts with nntpsend and innxmit to accomplish 90%
> of what innfeed does.

  Well, to run multiple feeds from nntpsend one needs 10-lines
  change in nntpsend and 2 bytes add to nntpsend.ctl lines.
  100 line perl script should also bring you pizza and beer :)
________
	ANDY

Re: Probs with innfeed 0.8.5b on Solaris
#10283
Author: James Brister
Date: Wed, 21 Aug 1996 00:00
21 lines
1136 bytes
J.D. Falk (jdfalk@cyberNOTHING.org) wrote:

: ] Tue Aug 20 05:04:27 1996 innfeed: bufferByteCount < (1024 * 1024 * 10)
: ] in file buffer.c line 420

The value in the ASSERT is way too small for a very active system
(which my test system isn't). You should grab the latest that just got
released:

	ftp.vix.com:/pub/inn/innfeed/innfeed-0.9.tar.gz

(changing SOFT_ARTICLE_BYTE_LIMIT as Conor mentioned is a good thing to do
too).

James
--
James Brister                                            brister@vix.com
Internet Software Consortium

Re: Probs with innfeed 0.8.5b on Solaris
#10285
Author: J.D. Falk
Date: Wed, 21 Aug 1996 00:00
22 lines
1723 bytes
In news.software.nntp,  <coneill@luser.halo.net> wrote...

> Either don't feed binaries into innfeed or increase SOFT_ARTICLE_BYTE_LIMIT
> in config.h to more than 10mb.  The problem is that innfeed tries to keep
> articles in memory until they've been sent to all feeds, and with a few
> 900k postings you can go over 10mb pretty easily.  

I tried it at 40 megs, then at 80 megs, but it crashed the same way....

> Clayton O'Neill
> whatever@oneill.net

-- 
 ---------========== J.D. Falk <jdfalk@cybernothing.org> =========---------
  |     "When that what now is yet to be has come to pass,               |
  |      thou shalt realize that thy existance 'tis merely another       |
  |      building block upon that edifice which we call reality."        |
  |                                --Pink Floyd (paraphrased)            |
 ----========== http://www.cybernothing.org/jdfalk/home.html ==========----

Re: Probs with innfeed 0.8.5b on Solaris
#10287
Author: James Brister
Date: Wed, 21 Aug 1996 00:00
15 lines
868 bytes
I just said: 

: 	ftp.vix.com:/pub/inn/innfeed/innfeed-0.9.tar.gz

and it is already:

	ftp.vix.com:/pub/inn/innfeed/innfeed-0.9.1.tar.gz

James
--
James Brister                                            brister@vix.com
Internet Software Consortium

Re: Probs with innfeed 0.8.5b on Solaris
#10288
Author: T. William Wells
Date: Wed, 21 Aug 1996 00:00
22 lines
1357 bytes
In article <4vc7hk$sjj@news2.cais.com>,
J.D. Falk <jdfalk@cybernothing.org> wrote:
:       I'm experiencing some serious problems with innfeed 0.8.5b on
: a Sparc 20 running Solaris 2.4, and on an UltraSparc 1 running Solaris
: 2.5; in both cases, I get errors like the following:
:
: ] Tue Aug 20 05:04:27 1996 innfeed: bufferByteCount < (1024 * 1024 * 10)
: ] in file buffer.c line 420
:
: ...and then it dumps core.  This is usually after it runs successfully for
: about a minute and a half to five minutes.

Removing that check is supposedly harmless. After I saw innfeed
blow up to 50 megabytes, I decided it wasn't so harmless after
all....

I don't run innfeed anymore; instead, I run a 100 line perl
script that interacts with nntpsend and innxmit to accomplish 90%
of what innfeed does.

Re: Probs with innfeed 0.8.5b on Solaris
#10289
Author: J.D. Falk
Date: Wed, 21 Aug 1996 00:00
24 lines
1604 bytes
In news.software.nntp, James Brister <brister@gw.home.vix.com> wrote...

> I just said: 
> 
> : 	ftp.vix.com:/pub/inn/innfeed/innfeed-0.9.tar.gz
> 
> and it is already:
> 
> 	ftp.vix.com:/pub/inn/innfeed/innfeed-0.9.1.tar.gz

	Aah, thanks -- I'll give that a try.

> James Brister                                            brister@vix.com
> Internet Software Consortium

-- 
 ---------========== J.D. Falk <jdfalk@cybernothing.org> =========---------
  |  "There are two major products that come out of Berkeley:            |
  |    LSD and [BSD] UNIX.  We don't believe this to be a coincidence."  |
  |                                  -- Jeremy S. Anderson               |
 ----========== http://www.cybernothing.org/jdfalk/home.html ==========----

Re: Probs with innfeed 0.8.5b on Solaris
#10307
Author: James Brister
Date: Thu, 22 Aug 1996 00:00
23 lines
1645 bytes
To respond to Bill Wells, the decision to keep the article in memory
was deliberate (and desirable to some people who manage huge sites)
so that it would have to be read in only one time no matter how
many feeds it went out. It tries to avoid going over a certain
limit (i.e. it tries to hold only so many MB of article data in at
once), but this is an area that hasn't been fully worked on (my
first priority at the moment is getting inn 1.5 out the door)

As for mmap(). You need a open file descriptor for that, and file
descriptors are a pretty precious resource. Until INN has an
alternative storage scheme where (for example) all articles are
smashed into a few big container files, then mmap seems like it
wouldn't be much help.

I'm working on the backlog issue.

James
--
James Brister                                            brister@vix.com
Internet Software Consortium                             inn@isc.org

Re: Probs with innfeed 0.8.5b on Solaris
#10311
Author: Dave Pascoe
Date: Thu, 22 Aug 1996 00:00
18 lines
1258 bytes
brister>James Brister <brister@gw.home.vix.com> wrote:
brister>: It's possible there is still a memory leak in there, but even so,
brister>: given the way innfeed keeps articles in memory while feeding,

T. William Wells (bill@twwells.com) wrote:

bill>Given this, there are no circumnstances under which I will _ever_
bill>use innfeed. This is a _bad_ policy decision.

Bill, care to elaborate why this is a bad policy decision?  I'm
curious.

-- 
Dave Pascoe    dave@mathworks.com   http://www.mathworks.com
KM3T           508-647-7362         FAX: 508-647-7002

Re: Probs with innfeed 0.8.5b on Solaris
#10312
Author: Joe Greco
Date: Thu, 22 Aug 1996 00:00
43 lines
2714 bytes
In news.software.nntp article <slrn51plk2.j0.coneill@luser.halo.net>, coneill@luser.halo.net () wrote:
:However, some of us don't have financial obligations to our peers and are
:not obligated to feed large articles to our peers.  Keeping 10mb of 2-4k
:articles isn't a problem for me at all.

People have financial obligations to peers?  :-)  Well, I don't...

:>I would much rather allow it to "grow without bounds" and see it use
:>mmap()'ed article accesses, because while the process might APPEAR to be
:>100MB in size, in reality, it will load as much in core as possible and
:>the rest will be sitting out in your spool - not in your swap space.
:>Very efficient in comparison.  :-)
:
:You're right, this will be the best solution.  What will be even nicer is if
:we can change the on disk format of articles to include dot escaping and
:\n\r line termination.  That whould be nice since you would only have to
:preprocess the header, and then send the rest of the article across in a
:single write from an mmap'ed file.

I would tend to agree.  This is HIGHLY efficient...  FreeBSD does this in
its ftpd, just mmap-and-write it and let the kernel deal with it.

The disadvantage, obviously, in changing the spool format is that it may
break compatibility with a lot of existing software, including newsreaders
that access the spool via NFS, etc.

I think that that's a sufficiently powerful argument _against_ changing
the spool format, even as tempting as it sounds.  Besides, CPU is 
relatively cheap, and writing out a writev/iovec isn't a bad alternative
(unless you're on a SVR4 system).

I ran some tests earlier (and even panicked a machine), it looks like 
all the UNIX variants I tested could easily handle 1000 or even 10000 
simultaneously mmap'd articles.  One of my FreeBSD boxes got up into 
the 45000's before it died on a panic, I was a bit disappointed that it
panicked.

On the other hand, 45000 articles is a LOT of articles.

... JG

Re: Probs with innfeed 0.8.5b on Solaris
#10313
Author: Joe Greco
Date: Thu, 22 Aug 1996 00:00
16 lines
1239 bytes
In news.software.nntp article <4vdrth$h92@news2.cais.com>, jdfalk@cybernothing.org wrote:
:In news.software.nntp,  <coneill@luser.halo.net> wrote...
:
:> Either don't feed binaries into innfeed or increase SOFT_ARTICLE_BYTE_LIMIT
:> in config.h to more than 10mb.  The problem is that innfeed tries to keep
:> articles in memory until they've been sent to all feeds, and with a few
:> 900k postings you can go over 10mb pretty easily.  
:
:I tried it at 40 megs, then at 80 megs, but it crashed the same way....

But it crashes less often.  :-)  :-)

... JG

Re: Probs with innfeed 0.8.5b on Solaris
#10314
Author: James Brister
Date: Thu, 22 Aug 1996 00:00
20 lines
1476 bytes
It's possible there is still a memory leak in there, but even so,
given the way innfeed keeps articles in memory while feeding, it's
very easy to configure it so that it will run out of memory. Anybody
who starts using innfeed should start light (few parallel connections
and low max-check values), and then experiment from there. You only need a
burst of big binaries along with high values in your config file to kill
it.

My current copy has been running for 27 hours feeding 3 machines (two
streaming, one not) over two connections each, a maximum of 10
CHECKs at once for the streaming connections. It's processed about
150000 articles, and is only taking up 7MB.

James
--
James Brister                                            brister@vix.com
Internet Software Consortium                             inn@isc.org

Re: Probs with innfeed 0.8.5b on Solaris
#10315
Author: Joe Greco
Date: Thu, 22 Aug 1996 00:00
63 lines
3849 bytes
In news.software.nntp article <4vgpmj$sfe@gw.home.vix.com>, brister@gw.home.vix.com (James Brister) wrote:
:It's possible there is still a memory leak in there, but even so,
:given the way innfeed keeps articles in memory while feeding, it's
:very easy to configure it so that it will run out of memory. Anybody
:who starts using innfeed should start light (few parallel connections
:and low max-check values), and then experiment from there. You only need a
:burst of big binaries along with high values in your config file to kill
:it.

Let me ask a "stupid" question...  wouldn't it be more practical to use
mmap() to map in articles?  When you mmap() in an article, it becomes an
entity which does not "require" physical memory AND swap space...

That means on a large system where I am running several dozen peers with
innfeed, I would not care if there are 36 peers x 5 feeds per peer x 10
articles pending per feed x 1000000 bytes per article = 1.8GB worth of
articles in my VM map (and certainly!!!! not in core)..

Or to be a little more detailed...

If you mmap(), the greatest possible penalty in terms of I/O for an article
is that you would fault it in to feed it.  Ideally you do not want to do 
ANY further I/O, and if you have the physical RAM to back it up, you're
fine and dandy.  However, the WORST case scenario is that you do NOT have
the memory, the VM system reclaims your pages after EACH peer transmission,
and you have to fault it in again for each remaining peer referencing that 
article.  You may end up reading it in precisely 'N' times, in the worst 
case, where 'N' is the number of peers you are feeding.

If you read() it into a buffer, you still pay the I/O penalty to read it the
first time.  If you HAVE the physical RAM to back it up, you are in the same
situation as above - you do not have to pay any further I/O penalty and the
result is the same.  However, if you DON'T, when the VM system decides to
page you out, you get WRITTEN to swap and then READ back from swap,
potentially once for each of 'N' feeds.

Scoreboard:	Best case		Worst case

mmap():		reads: 1 writes: 0	reads: N writes: 0
buffer:		reads: 1 writes: 0	reads: N writes: N-1

I would not be uncomfortable with a NNTP feeder that mmap()'ed in a few
thousand articles if need be, because I know my VM system will make the most
of it.  I would be less comfortable with a NNTP feeder that read in a few
thousand articles...  I wouldn't have the swap to back it.

I am just trying to understand from a large scale systems engineering point
of view.  Please don't think I'm saying anything bad about innfeed, I am
NOT!!!

I do like innfeed, a lot, but it is missing a few things so far.  This is
one potentially large problem for sites feeding a few dozen others.

My other MAJOR gripe is how to control the size of backlogs, I used to keep
all my backlogs tightly capped at a few MB's, innfeed likes to generate
hundreds of MB's per site with no readily apparent way to cap it, and if I 
do not carefully monitor, it will fill up a disk and then innfeed actually 
STOPS running at all...

... JG

Re: Probs with innfeed 0.8.5b on Solaris
#10317
Author: T. William Wells
Date: Thu, 22 Aug 1996 00:00
10 lines
991 bytes
In article <4vgpmj$sfe@gw.home.vix.com>,
James Brister <brister@gw.home.vix.com> wrote:
: It's possible there is still a memory leak in there, but even so,
: given the way innfeed keeps articles in memory while feeding,

Given this, there are no circumnstances under which I will _ever_
use innfeed. This is a _bad_ policy decision.

Re: Probs with innfeed 0.8.5b on Solaris
#10319
Author: James Brister
Date: Thu, 22 Aug 1996 00:00
31 lines
1963 bytes
Joe Greco (jgreco@brasil.moneng.mei.com) wrote:
: In news.software.nntp article <4vhun0$90g@gw.home.vix.com>, brister@gw.home.vix.com (James Brister) wrote:
: :As for mmap(). You need a open file descriptor for that, and file

: Ummmm..  not to differ with you, but I do not agree with that:  :-)

: SunOS 4.1.3, man mmap(), page 1:

Yeah, I see ... sort of counter-intuitive, but useful. Thanks. I'll start
thinking about what needs to be done to use it.

: I think it might be mildly hairy for innfeed, only because you would need
: to do output processing of the article..  you need to look for any "\n."
: sequences and add an additional '.'.  I assume that you probably do that
: while reading in an article right now.. hm.. yes, in nntpPrepareBuffer..

Got to add the '\r' everywhere too... I originally had it doing no
bit-fiddling at all, but using 2 iovec structs per line (one for body
and one for '\r'), but backed out of that when I saw the really
small value SVR4 machines have for the max you can pass into writev.
Guess I'll look into going back to that.

Thanks

James
--
James Brister                                            brister@vix.com
Internet Software Consortium                             inn@isc.org

Re: Probs with innfeed 0.8.5b on Solaris
#10321
Author: Joe Greco
Date: Thu, 22 Aug 1996 00:00
43 lines
2237 bytes
In news.software.nntp article <4vhun0$90g@gw.home.vix.com>, brister@gw.home.vix.com (James Brister) wrote:
:As for mmap(). You need a open file descriptor for that, and file
:descriptors are a pretty precious resource. Until INN has an

Really???

Ummmm..  not to differ with you, but I do not agree with that:  :-)

SunOS 4.1.3, man mmap(), page 1:

     close(2V) does not unmap pages of the object referred to  by
     a descriptor.  Use munmap(2) to remove a mapping.

Solaris 2.5.1, man mmap(), page 1:

     Mappings established from fildes  are  not  removed  upon  a
     close(2) of that descriptor.  Use munmap(2) to remove a map-
     ping.

FreeBSD 2.1.5R, man mmap(), page 2 I think:

     The close(2) function does not unmap pages, see munmap(2) for further in-
     formation.

These are all the platforms I have immediate access to, but I am NOT aware
of any such restriction on ANY OS.

This has, in fact, been one way I've seen people get around the FD limit of
SunOS for particular applications...

I think it might be mildly hairy for innfeed, only because you would need
to do output processing of the article..  you need to look for any "\n."
sequences and add an additional '.'.  I assume that you probably do that
while reading in an article right now.. hm.. yes, in nntpPrepareBuffer..

Still, this is easy to do and can be done with zero string manipulation,
particularly if you are willing to take an extra write() hit in the case
where you do have a '.'-quoted line.

... JG

Re: Probs with innfeed 0.8.5b on Solaris
#10323
Author: Joe Greco
Date: Thu, 22 Aug 1996 00:00
114 lines
5009 bytes
In news.software.nntp article <4vi48m$flj@gw.home.vix.com>, brister@gw.home.vix.com (James Brister) wrote:
:Joe Greco (jgreco@brasil.moneng.mei.com) wrote:
:: In news.software.nntp article <4vhun0$90g@gw.home.vix.com>, brister@gw.home.vix.com (James Brister) wrote:
:: :As for mmap(). You need a open file descriptor for that, and file
:
:: Ummmm..  not to differ with you, but I do not agree with that:  :-)
:
:: SunOS 4.1.3, man mmap(), page 1:
:
:Yeah, I see ... sort of counter-intuitive, but useful. Thanks. I'll start
:thinking about what needs to be done to use it.

As I just wrote you in private mail, I just caused a box to croak due to
excessive mmap'ing :-)  however I think it was at around the 25K-50K files
mark.

Ooooooh it must have been a hard panic, there's no information about the
crash... no crash dump or anything.  Neat.

Ahhhh coool...  running it again... 

We lost our mind at 42900 vnodes... :-)

# vmstat -m | grep vnodes
       vnodes 42315  5288K   5288K 19661K    43480    0     0  16,128,256
       vnodes 42319  5288K   5288K 19661K    43484    0     0  16,128,256
       vnodes 42320  5288K   5288K 19661K    43485    0     0  16,128,256
       vnodes 42324  5289K   5289K 19661K    43489    0     0  16,128,256
       vnodes 42447  5304K   5304K 19661K    43612    0     0  16,128,256
       vnodes 42504  5311K   5311K 19661K    43669    0     0  16,128,256
       vnodes 42900  5361K   5361K 19661K    44065    0     0  16,128,256

Looks like FreeBSD has a bug.  The program itself managed to map most of
those...:

[38400] .. [38912] .. [39424] .. [39936] .. [40448] .. [40960] .. [41472] .. [41984] .. [42496] .. 

Time to talk to Mr. Dyson.  ;-)

Well...  Solaris tops out at about 14848, of course I hadn't tuned any
values on that box to be more permissive.  But at least it stopped with
"mmap: Not enough space".

My test program is enclosed below.

:: I think it might be mildly hairy for innfeed, only because you would need
:: to do output processing of the article..  you need to look for any "\n."
:: sequences and add an additional '.'.  I assume that you probably do that
:: while reading in an article right now.. hm.. yes, in nntpPrepareBuffer..
:
:Got to add the '\r' everywhere too... I originally had it doing no

S*** I forgot about that :-)  Shows you how much NNTP/SMTP programming stuff
I've been doing these days.

:bit-fiddling at all, but using 2 iovec structs per line (one for body
:and one for '\r'), but backed out of that when I saw the really
:small value SVR4 machines have for the max you can pass into writev.
:Guess I'll look into going back to that.

That would probably be my preferred way to see it done, otherwise you are
probably dealing with shuffling in userland AND shuffling in kernelland (I
haven't looked to see how efficient writev is, however).

... JG

#include        <stdio.h>
#include        <sys/types.h>
#include        <sys/stat.h>
#include        <sys/mman.h>
#include        <fcntl.h>

#define         MAX             1048576

caddr_t array[MAX];

int main()
{
        int i = 0;
        int fd;
        char filename[2048];
        struct stat s;
        caddr_t this;

        while (i < MAX) {
                gets(filename);
                if ((fd = open(filename, O_RDONLY, 0)) < 0) {
                        perror(filename);
                        sleep(1);
                } else {
                        if (fstat(fd, &s) < 0) {
                                perror("fstat");
                                sleep(1);
                        } else {
                                this = mmap((caddr_t) 0, s.st_size, PROT_READ,
                                        MAP_PRIVATE, fd, (off_t) 0);
                                if ((int) this == -1) {
                                        perror("mmap");
                                        sleep(1);
                                } else {
                                        array[i++] = this;
                                }
                        }
                        close(fd);
                }
                if (! (i % 512)) {
                        fprintf(stderr, "[%d] .. ", i);
                }
        }
}


Feeding ideas (was Re: Probs with innfeed 0.8.5b on Solaris)
#10330
Author: Michael Mealling
Date: Thu, 22 Aug 1996 00:00
57 lines
3223 bytes
Joe Greco wrote:
> In news.software.nntp article <4vgpmj$sfe@gw.home.vix.com>, brister@gw.home.vix.com (James Brister) wrote:
> :< stuff about innfeed deleted for brevity>
> 
> Let me ask a "stupid" question...  wouldn't it be more practical to use
> mmap() to map in articles?  When you mmap() in an article, it becomes an
> entity which does not "require" physical memory AND swap space...

Maybe we're looking at this all wrong. There are quickly becoming
three types of servers out there:

1) backbone folx like myself, howland, mci, etc who have the bucks to 
   setup machines that have enough RAM to hold stuff in memory. These
   sites demand high throughput and quick history file updates.

2) branch nodes (I know it isn't a tree but you get the idea) that have
   a few feeds (10-20) who need a good deal of flexibility in how their
   feeds are managed and the different types of feeding methods: uucp,
   mail, nnrp, etc.

3) leaf nodes who just want to recieve and maybe forward to one host.
   For these nntpsend/innxmit are just fine and will be for a long time.

Now, I'm personally more interested in #1 cause its the more interesting
in a distributed systems sense. Now, if we look at what actually happens
on
our systems and how we're architecting them it turns out that most of
the 
machines in #1 have NO readers. What we're actually doing is just
sending
around the simple fact that the article exists. The article itself is
amost ancillary until we send it off to someone else. Here's my
proposal:

Create a summary format similar (hell, identical) to the NOV database. 
Our backbone servers send this and only this in our communications.
Then,
in a seperate channel we bulk copy ALL articles who's NOV summaries have
been accepted. We would also need an exceptions channel in case we ended
up with a server getting a request for an article (the actual article,
not
its summary) that  it didn't already have.

This way the fact that an article exists gets out there and propogated 
while the actual article body follows behind in a more bulk type
transfer.

Comments?

-- 
------------------------------------------------------------------------------
<HR><A HREF="http://www.gatech.edu/michael.html">
<ADDRESS>Michael Mealling</ADDRESS>
<ADDRESS>michael.mealling@oit.gatech.edu</ADDRESS></A>

Re: Probs with innfeed 0.8.5b on Solaris
#10332
Author: coneill
Date: Thu, 22 Aug 1996 00:00
47 lines
2467 bytes
On 22 Aug 1996 10:51:53 -0500, Joe Greco <jgreco@brasil.moneng.mei.com> wrote:
>In news.software.nntp article <slrn51ouhj.j0.coneill@luser.halo.net>, coneill@lu
>:I'm not sure exactly why this would be a bad policy decision, but it is a
>:good performance decision, assuming you have the memory to do it w/o
>:swapping.
>
>That's WHY it is a potentially bad policy decision.  See the other article I
>posted about mmap() vs. reads-to-fill-a-buffer.

True.

>Not everybody runs two or three dinky feeds.  Some of us cannot count the
>number of feeds we have on all our fingers and all our toes.

Same here.  

>It's not a "good performance decision" either, because by the time you get
>large enough to notice performance degradation, you are already too large
>and probably don't have the memory to back it anyways.

However, some of us don't have financial obligations to our peers and are
not obligated to feed large articles to our peers.  Keeping 10mb of 2-4k
articles isn't a problem for me at all.

>Even on a small system, you can kill innfeed.
Easily.

>I would much rather allow it to "grow without bounds" and see it use
>mmap()'ed article accesses, because while the process might APPEAR to be
>100MB in size, in reality, it will load as much in core as possible and
>the rest will be sitting out in your spool - not in your swap space.
>Very efficient in comparison.  :-)

You're right, this will be the best solution.  What will be even nicer is if
we can change the on disk format of articles to include dot escaping and
\n\r line termination.  That whould be nice since you would only have to
preprocess the header, and then send the rest of the article across in a
single write from an mmap'ed file.

-- 

Clayton O'Neill
whatever@oneill.net


Re: Probs with innfeed 0.8.5b on Solaris
#10333
Author: Mark Delany
Date: Thu, 22 Aug 1996 00:00
46 lines
2384 bytes
bill@twwells.com (T. William Wells) writes:

>In article <4vc7hk$sjj@news2.cais.com>,
>J.D. Falk <jdfalk@cybernothing.org> wrote:
>:       I'm experiencing some serious problems with innfeed 0.8.5b on
>: a Sparc 20 running Solaris 2.4, and on an UltraSparc 1 running Solaris
>: 2.5; in both cases, I get errors like the following:
>:
>: ] Tue Aug 20 05:04:27 1996 innfeed: bufferByteCount < (1024 * 1024 * 10)
>: ] in file buffer.c line 420
>:
>: ...and then it dumps core.  This is usually after it runs successfully for
>: about a minute and a half to five minutes.

>Removing that check is supposedly harmless. After I saw innfeed
>blow up to 50 megabytes, I decided it wasn't so harmless after
>all....

>I don't run innfeed anymore; instead, I run a 100 line perl
>script that interacts with nntpsend and innxmit to accomplish 90%
>of what innfeed does.

There are actually a couple of "extreme memory usage" tests and I
think I've triggered them all at one stage or the other. My solution
was two-fold. Increase the limits a bit and reduce the default number
of connections to 2 (then tweat the few that need more).

This reduced the working set of innfeed sufficiently to stop hitting
those limits most of the time.

I agree that this isn't a perfect solution, but it should work for
sites that feed less than, oh, 15 other sites or so. For large sites
it's a different story and may require running a number of innfeeds or
taking Bill's approach of using other tools.

James has been aware of this 'problem' for a while but I don't know
whether he has a long-term strategy for dealing with it or not. It
could be argued that innfeed is a nice solution for 80-90% of news
sites and the other 10% are probably being run by well-tuned admins :>



Regards.

Re: Probs with innfeed 0.8.5b on Solaris
#10336
Author: coneill
Date: Thu, 22 Aug 1996 00:00
21 lines
1280 bytes
On 22 Aug 1996 04:49:46 -0400, T. William Wells <bill@twwells.com> wrote:
>In article <4vgpmj$sfe@gw.home.vix.com>,
>James Brister <brister@gw.home.vix.com> wrote:
>: It's possible there is still a memory leak in there, but even so,
>: given the way innfeed keeps articles in memory while feeding,
>
>Given this, there are no circumnstances under which I will _ever_
>use innfeed. This is a _bad_ policy decision.

I'm not sure exactly why this would be a bad policy decision, but it is a
good performance decision, assuming you have the memory to do it w/o
swapping.

-- 

Clayton O'Neill
whatever@oneill.net


Re: Probs with innfeed 0.8.5b on Solaris
#10338
Author: Joe Greco
Date: Thu, 22 Aug 1996 00:00
36 lines
2250 bytes
In news.software.nntp article <slrn51ouhj.j0.coneill@luser.halo.net>, coneill@luser.halo.net () wrote:
:On 22 Aug 1996 04:49:46 -0400, T. William Wells <bill@twwells.com> wrote:
:>In article <4vgpmj$sfe@gw.home.vix.com>,
:>James Brister <brister@gw.home.vix.com> wrote:
:>: It's possible there is still a memory leak in there, but even so,
:>: given the way innfeed keeps articles in memory while feeding,
:>
:>Given this, there are no circumnstances under which I will _ever_
:>use innfeed. This is a _bad_ policy decision.
:
:I'm not sure exactly why this would be a bad policy decision, but it is a
:good performance decision, assuming you have the memory to do it w/o
:swapping.

That's WHY it is a potentially bad policy decision.  See the other article I
posted about mmap() vs. reads-to-fill-a-buffer.

Not everybody runs two or three dinky feeds.  Some of us cannot count the
number of feeds we have on all our fingers and all our toes.

It's not a "good performance decision" either, because by the time you get
large enough to notice performance degradation, you are already too large
and probably don't have the memory to back it anyways.

Even on a small system, you can kill innfeed.

I would much rather allow it to "grow without bounds" and see it use
mmap()'ed article accesses, because while the process might APPEAR to be
100MB in size, in reality, it will load as much in core as possible and
the rest will be sitting out in your spool - not in your swap space.
Very efficient in comparison.  :-)

... JG

Re: Probs with innfeed 0.8.5b on Solaris
#10341
Author: coneill
Date: Thu, 22 Aug 1996 00:00
65 lines
3835 bytes
On 22 Aug 1996 17:09:39 -0500, Joe Greco <jgreco@brasil.moneng.mei.com> wrote:
>In news.software.nntp article <slrn51plk2.j0.coneill@luser.halo.net>, coneill@lu
>People have financial obligations to peers?  :-)  Well, I don't...

Well, we've seen huge performance increases by putting <250000 on all of our
feeds.  You might want to try it on a few feeds and see how it turns out.

>:You're right, this will be the best solution.  What will be even nicer is if
>:we can change the on disk format of articles to include dot escaping and
>:\n\r line termination.  That whould be nice since you would only have to
>:preprocess the header, and then send the rest of the article across in a
>:single write from an mmap'ed file.
>
>I would tend to agree.  This is HIGHLY efficient...  FreeBSD does this in
>its ftpd, just mmap-and-write it and let the kernel deal with it.
>
>The disadvantage, obviously, in changing the spool format is that it may
>break compatibility with a lot of existing software, including newsreaders
>that access the spool via NFS, etc.
>
>I think that that's a sufficiently powerful argument _against_ changing
>the spool format, even as tempting as it sounds.  Besides, CPU is 
>relatively cheap, and writing out a writev/iovec isn't a bad alternative
>(unless you're on a SVR4 system).

I think the better solution would be to have a general purpose spool access
library that can handle accessing it in a manner independent of the way it's
stored.  Ideally I'd like to see this have the ability to fall back from one
method to another, possibly even different methods for different types of
requests.  This could be a big win for people that want to keep 2-3 days of
news locally and then NFS mount a large spool, and have service requests
that fail locally across NFS, or even nntp.  

The real problem is that someone has to write it, and then integrate it into
inn, innfeed, nntplink, etc, etc.  This is the real chore, but really needs
to be done if we're ever going to move to using different storage methods
depending on what is most applicable.  There is no reason one storage method
has to work for everyone.  (Personally I'm not interested in the local spool
format at all, but I do prefer a unix fs based spool since it makes writing
administration tools easier)

>I ran some tests earlier (and even panicked a machine), it looks like 
>all the UNIX variants I tested could easily handle 1000 or even 10000 
>simultaneously mmap'd articles.  One of my FreeBSD boxes got up into 
>the 45000's before it died on a panic, I was a bit disappointed that it
>panicked.
My stats are showing that with about 15-20 feeds I was keeping about 150
article in memory at a time w/innfeed w/an average article size of 9.6k.  I
don't think we'll have a problem with a limit of 5-10k articles for a while. 
Worst comes to worst, innfeed will have to become more agressive about
spooling articles.

>On the other hand, 45000 articles is a LOT of articles.

Yes, I don't forsee any problems with it for at least another 6 months :)


-- 

Clayton O'Neill
whatever@oneill.net


Re: Probs with innfeed 0.8.5b on Solaris
#10345
Author: James Brister
Date: Fri, 23 Aug 1996 00:00
21 lines
1603 bytes
I agree with Rich that it's time to change the on-disk format of
articles to match NNTP's requirements so that mmap() will be most
useful. Probably in 1.6. There shouldn't be any non-NNTP readers
left (note: I didn't say "aren't" I said "shouldn't"). There's
going to be a point in time (probably not too far off) when the
one-article-per-file format just isn't going to cut it any more,
then the non-NNTP readers will be really up the creek.

As for innfeed. I'm thinking about how to put mmap() in there. Of
course I have to allow for people who can't (or won't) use mmap().
I also have to be very careful about not being a vnode hog--some
of you may be able to mmap() 45000 files at once, but others only
150 (not even).

James
--
James Brister                                            brister@vix.com
Internet Software Consortium                             inn@isc.org

Re: Probs with innfeed 0.8.5b on Solaris
#10347
Author: Andrew A. Vasilyev
Date: Fri, 23 Aug 1996 00:00
32 lines
1691 bytes
Joe Greco (jgreco@brasil.moneng.mei.com) wrote:
> No, the thing is, the box shouldn't PANIC.  Apparently it exhausted
			    SHOULDN't :)) but it's Free :(((

> available kernel space.  :-)  It's an obscure bug, sure, but that doesn't
> mean I should have to tolerate it.

  And did they repair FreeBSD broken mmap()?

> Incidentally:  I don't see any such option anyways.

  From /sys/i386/conf/LINT:

#
# Under some circumstances it is useful to have an extra number of
# vnode data structures allocated at boot time.  In particular,
# usenet news servers can benefit if there are enough vnodes to
# cache the busiest newsgroup and overview directories.  Beware that
# this is an expensive option, it consumes physical non-pageable ram.
# A busy news server may benefit from 10,000 extra vnodes or so.
#
options		EXTRAVNODES=1

  What your "uname -a" says?

  By the way: our Solaris box mmaped 55,000+ files with virtual size
  of 501M :)))
________
	ANDY

Re: Probs with innfeed 0.8.5b on Solaris
#10348
Author: Joe Greco
Date: Fri, 23 Aug 1996 00:00
25 lines
1710 bytes
In news.software.nntp article <4vk3et$ipo@news.demos.su>, andy@snm.demos.su (Andrew A. Vasilyev) wrote:
:Joe Greco (jgreco@brasil.moneng.mei.com) wrote:
:> I ran some tests earlier (and even panicked a machine), it looks like 
:> all the UNIX variants I tested could easily handle 1000 or even 10000 
:> simultaneously mmap'd articles.  One of my FreeBSD boxes got up into 
:> the 45000's before it died on a panic, I was a bit disappointed that it
:> panicked.
:
:  Did you try "options EXTRAVNODES=100000" in kernel config?
:				Or even more.

No, the thing is, the box shouldn't PANIC.  Apparently it exhausted
available kernel space.  :-)  It's an obscure bug, sure, but that doesn't
mean I should have to tolerate it.

Incidentally:  I don't see any such option anyways.

... Joe

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

Re: Probs with innfeed 0.8.5b on Solaris
#10349
Author: Joe Greco
Date: Fri, 23 Aug 1996 00:00
37 lines
2090 bytes
In news.software.nntp article <4vjb3f$6no@paperboy.osf.org>, rsalz@osf.org (Rich Salz) wrote:
:In <4vilr3$olj@brasil.moneng.mei.com> jgreco@brasil.moneng.mei.com (Joe Greco) writes:
:>The disadvantage, obviously, in changing the spool format is that it may
:>break compatibility with a lot of existing software, including newsreaders
:>that access the spool via NFS, etc.
:
:Are there any newsreaders in common use that ONLY read via the spool
:and cannot read via NNTP?  I doubt it.
:
:I think it's high time to change INN's on-disk article format to be
:the NNTP format.  Perhaps the "archive" program should unconvert, and
:some author automated archives might need to.  FAQ's-via-url would
:need some filtering too.

Rich,

The problem is this:

Many sites read via NFS and the spool to avoid the hit of having to have 
a per-session nnrpd.

That is in reality a separate problem, I believe Netscape News has a
"threaded" nnrpd that allows multiple clients, and INN really could
use something like this.

I don't personally administer any machines that allow clients to read
via NFS, so I do not have a personal stake in this argument, and I would
not be incredibly unhappy or anything if a decision was made to go with
the NNTP format.

Um.  Oh.  Except my UUCP feeds... but it should be easy to change 'batcher'
to unmangle the articles.

... JG

Multiple innfeeds (was Re: Probs with innfeed 0.8.5b on Solaris)
#10355
Author: J.D. Falk
Date: Fri, 23 Aug 1996 00:00
27 lines
2064 bytes
In news.software.nntp, Mark Delany  <markd@mira.net.au> wrote...

> I agree that this isn't a perfect solution, but it should work for
> sites that feed less than, oh, 15 other sites or so. For large sites
> it's a different story and may require running a number of innfeeds or
> taking Bill's approach of using other tools.

	We're a pretty big site, but I'd still like to get the news
flowing faster with less load (wouldn't everybody?)
	Can anybody share stories about using multiple innfeeds? 

> James has been aware of this 'problem' for a while but I don't know
> whether he has a long-term strategy for dealing with it or not. It
> could be argued that innfeed is a nice solution for 80-90% of news
> sites and the other 10% are probably being run by well-tuned admins :>

	I'm still a little off-key.... *grin*

-- 
 ---------========== J.D. Falk <jdfalk@cybernothing.org> =========---------
  |  "THEY have much more important things to do.  Ever tried debugging  |
  |   an orbital mind control satellite via a 56kbps satellite uplink?"  |
  |                       -- David J. Bianco <bianco@itribe.net>         |
 ----========== http://www.cybernothing.org/jdfalk/home.html ==========----

Re: Probs with innfeed 0.8.5b on Solaris
#10356
Author: Rich Salz
Date: Fri, 23 Aug 1996 00:00
20 lines
1400 bytes

In <4vilr3$olj@brasil.moneng.mei.com> jgreco@brasil.moneng.mei.com (Joe Greco) writes:
>The disadvantage, obviously, in changing the spool format is that it may
>break compatibility with a lot of existing software, including newsreaders
>that access the spool via NFS, etc.
>
>I think that that's a sufficiently powerful argument _against_ changing
>the spool format.

Are there any newsreaders in common use that ONLY read via the spool
and cannot read via NNTP?  I doubt it.

I think it's high time to change INN's on-disk article format to be
the NNTP format.  Perhaps the "archive" program should unconvert, and
some author automated archives might need to.  FAQ's-via-url would
need some filtering too.
	/r$

Re: Probs with innfeed 0.8.5b on Solaris
#10359
Author: Mark Delany
Date: Fri, 23 Aug 1996 00:00
31 lines
1962 bytes
coneill@luser.halo.net () writes:

>I think the better solution would be to have a general purpose spool access
>library that can handle accessing it in a manner independent of the way it's
>stored.

Hey! That's my horse you're riding there pardner!

>Ideally I'd like to see this have the ability to fall back from one
>method to another, possibly even different methods for different types of
>requests.  This could be a big win for people that want to keep 2-3 days of
>news locally and then NFS mount a large spool, and have service requests
>that fail locally across NFS, or even nntp.  

>The real problem is that someone has to write it, and then integrate it into
>inn, innfeed, nntplink, etc, etc.  This is the real chore, but really needs
>to be done if we're ever going to move to using different storage methods

Quite so. When thinking about this don't forget the administrative
side of the interface. Expire is the most obvious, but of course there
are other programs and scripts that assume the current storage format.

It is a real chore and probably fairly thankless, but as Clayton says,
it's what we need to move forward. Maybe that should be a target for
1.5.1?


Regards.

Re: Probs with innfeed 0.8.5b on Solaris
#10361
Author: Casper H.S. Dik - Network Securi...
Date: Fri, 23 Aug 1996 00:00
24 lines
1552 bytes
brister@gw.home.vix.com (James Brister) writes:

>As for mmap(). You need a open file descriptor for that, and file
>descriptors are a pretty precious resource. Until INN has an
>alternative storage scheme where (for example) all articles are
>smashed into a few big container files, then mmap seems like it
>wouldn't be much help.


That's not quite correct; mmap() doesn't require filedescriptors to stay
open.

When you mmap() and close(), you keep the file referenced through your
address space, yet you don't consume a filedescriptor.

Casper
--
Expressed in this posting are my opinions.  They are in no way related
to opinions held by my employer, Sun Microsystems.
Unsolicited e-mail advertisements sent to my address will be proofread
for a $250 flat fee.

Re: Probs with innfeed 0.8.5b on Solaris
#10366
Author: Andrew A. Vasilyev
Date: Fri, 23 Aug 1996 00:00
14 lines
1173 bytes
Joe Greco (jgreco@brasil.moneng.mei.com) wrote:
> I ran some tests earlier (and even panicked a machine), it looks like 
> all the UNIX variants I tested could easily handle 1000 or even 10000 
> simultaneously mmap'd articles.  One of my FreeBSD boxes got up into 
> the 45000's before it died on a panic, I was a bit disappointed that it
> panicked.

  Did you try "options EXTRAVNODES=100000" in kernel config?
				Or even more.
________
	ANDY

Re: Probs with innfeed 0.8.5b on Solaris
#10367
Author: Andrew A. Vasilyev
Date: Fri, 23 Aug 1996 00:00
40 lines
2175 bytes
Joe Greco (jgreco@brasil.moneng.mei.com) wrote:
> :  (and reading FAQ or active :)) set ACT_STYLE to READ, not MMAP - and
> :  this is the way you go under Free :(((
> And what's the problem with that?

  It has not worked (until 2.2...)

  Well, READ ... :)) It would be effective if you (innd) are the only one who
  reads active and history.pag. But when a dozen (zillion) processes used to
  scan 'em?

> No ccd in 2.1.5?  Check again.

  Well, not absence. But I've read somewhere that this driver to be
  under hard development, so I've used the last.

> Solaris drives certain values based on the amount of RAM.  RAM _does_ affect
> the number of files you can map, as far as I am aware.  Or you can tweak it
> in /etc/sysconfig.

  Ha-ha. Do you think that box having 500+ M of RAM+swap? :))) Really no!

> The goal _IS_ to retain as much possible in RAM.  Sure, mmap() is more 
> efficient on a memory-starved system, but in reality the ideal is to read
> an article ONCE off the disk and keep it in core.  mmap() just happens to

  ... and keep it forever ... em-m, till the last draged peer gets it.
  mmap() does all for you: when the article appears, it is in the FS
  buffer - so we send it from memory. No extra I/O. And no extra RAM
  if we can't send it to all peers. Why should we waste memory for
  several levels of buffering?

> be more efficient than reading articles into a zillion buffers  :-)

  Just right.
_______
	ANDY

Re: Probs with innfeed 0.8.5b on Solaris
#10371
Author: Joe Greco
Date: Fri, 23 Aug 1996 00:00
48 lines
2285 bytes
In news.software.nntp article <4vkd63$n7k@news.demos.su>, andy@snm.demos.su (Andrew A. Vasilyev) wrote:
:Joe Greco (jgreco@brasil.moneng.mei.com) wrote:
:> No, the thing is, the box shouldn't PANIC.  Apparently it exhausted
:			    SHOULDN't :)) but it's Free :(((

It's a bug, caused by an "unusual" condition...  :-)

:> available kernel space.  :-)  It's an obscure bug, sure, but that doesn't
:> mean I should have to tolerate it.
:
:  And did they repair FreeBSD broken mmap()?

It's not broken, and I don't think it ever has been.  It does not work
the way SunOS does when expanding files, but that's because INN relies
on a particular behavior that may or may not be a correct assumption to
make.

:> Incidentally:  I don't see any such option anyways.
:
:  From /sys/i386/conf/LINT:
:
:#
:# Under some circumstances it is useful to have an extra number of
:# vnode data structures allocated at boot time.  In particular,
:# usenet news servers can benefit if there are enough vnodes to
:# cache the busiest newsgroup and overview directories.  Beware that
:# this is an expensive option, it consumes physical non-pageable ram.
:# A busy news server may benefit from 10,000 extra vnodes or so.
:#
:options		EXTRAVNODES=1

Where do you see THAT???  I don't see it on 2.1.5 or 2.1.0...

:  What your "uname -a" says?

# uname -mrs
FreeBSD 2.1.5-RELEASE i386

:  By the way: our Solaris box mmaped 55,000+ files with virtual size
:  of 501M :)))

I suppose I could too if I cranked up a few numbers in /etc/sysconfig, or
added more RAM...

... JG

Re: Probs with innfeed 0.8.5b on Solaris
#10372
Author: Jeffrey C. Ollie
Date: Fri, 23 Aug 1996 00:00
38 lines
1935 bytes
-----BEGIN PGP SIGNED MESSAGE-----

On 22 Aug 1996 14:39:38 -0500, Joe Greco <jgreco@brasil.moneng.mei.com> wrote:
>
> [ how many files can you mmap? ]
>
>My test program is enclosed below.

Hmmm, on Digital UNIX v3.2c I was only able to mmap 190 files :(. I'm
sure that there is some configurable kernel parameter but I have no
idea which one it is.


[A copy of the headers and the PGP signature follow.]

Date: Fri, 23 Aug 1996 08:22:07 -0500
Newsgroups: news.software.nntp
Organization: INS Info Services, Des Moines, IA, USA
References: <4vc7hk$sjj@news2.cais.com> <4vhun0$90g@gw.home.vix.com> <4vi124$o7u@brasil.moneng.mei.com> <4vi48m$flj@gw.home.vix.com> <4vid1q$oeb@brasil.moneng.mei.com>
Subject: Re: Probs with innfeed 0.8.5b on Solaris

-----BEGIN PGP SIGNATURE-----
Version: 2.6.2
Comment: AnySign 1.2 - A Python tool for PGP signing e-mail and news.

iQCVAwUBMh2whJwkOQz8sbZFAQEWCAQAovxtcZ0N8ilgpZBUYWJfp2K4pcNZMHck
3vf4X8rFVHAIw75m17JlgzSyC+fpoct1n37MIAndPhY0lYqnPque+JitAMJwjh+6
7eZ41wIZ47wEQWu5hS4booD7Zzj81goV0j3Dtl5RSuVfK/c+UjXoxq19yDM1V4Ku
IDhguKoPLr4=
=JDFm
-----END PGP SIGNATURE-----
-- 
Jeffrey C. Ollie
Iowa Network Services System Administrator


Re: Probs with innfeed 0.8.5b on Solaris
#10373
Author: Joe Greco
Date: Fri, 23 Aug 1996 00:00
67 lines
3372 bytes
In news.software.nntp article <4vkoso$jvq@news.demos.su>, andy@snm.demos.su (Andrew A. Vasilyev) wrote:
:Joe Greco (jgreco@brasil.moneng.mei.com) wrote:
:> :  And did they repair FreeBSD broken mmap()?
:> It's not broken, and I don't think it ever has been.  It does not work
:
:  Never say never :) When mmap() appeared in Free it never (:-))
:  updated mtime of the file you've mmaped. And msync() has 2 arguments,
:  not 3, and now it supports only one flag, not three of SunOS/etc...

Everybody's mmap() is a little different.

:> the way SunOS does when expanding files, but that's because INN relies
:> on a particular behavior that may or may not be a correct assumption to
:> make.
:
:  Well, and when you see a garbage between the last line of active and
:  next 8K bound - is it your own way to go?

I don't see the garbage.  Because these days I use READ, since I couldn't
tell the difference when I checked to see if there was any advantage to
using MMAP...  if two things are essentially equal in performance, and one
works well, and one may have problems due to implementation, which do you
use?

:  Every newsadmin using FreeBSD
:  (and reading FAQ or active :)) set ACT_STYLE to READ, not MMAP - and
:  this is the way you go under Free :(((

And what's the problem with that?

:> :options		EXTRAVNODES=1
:> Where do you see THAT???  I don't see it on 2.1.5 or 2.1.0...
:
:  Hmm, I use 2.2-CURRENT kernel now (due to ccd absence in 2.1.5),

No ccd in 2.1.5?  Check again.

:  and probably there was no EXTRAVNODES that time too. :(((
:  Now we have it.
:
:> :  By the way: our Solaris box mmaped 55,000+ files with virtual size
:> :  of 501M :)))
:> I suppose I could too if I cranked up a few numbers in /etc/sysconfig, or
:> added more RAM...
:
:  You need NO extra RAM when you have mmap() working (in the right way :)) -

Solaris drives certain values based on the amount of RAM.  RAM _does_ affect
the number of files you can map, as far as I am aware.  Or you can tweak it
in /etc/sysconfig.

:  all these terrible Megabytes are in fact the sum of those files you
:  mmaped, nothing in RAM. And the final figures I've got are 61,131 files
:  with 503M - IMHO enough for innfeed if we remember the start of this
:  thread :))) And those box has empty /etc/system. :)))

But you are missing the point.

The goal _IS_ to retain as much possible in RAM.  Sure, mmap() is more 
efficient on a memory-starved system, but in reality the ideal is to read
an article ONCE off the disk and keep it in core.  mmap() just happens to
be more efficient than reading articles into a zillion buffers  :-)

... JG

Re: Probs with innfeed 0.8.5b on Solaris
#10376
Author: Andrew A. Vasilyev
Date: Fri, 23 Aug 1996 00:00
39 lines
2305 bytes
Joe Greco (jgreco@brasil.moneng.mei.com) wrote:
> :  And did they repair FreeBSD broken mmap()?
> It's not broken, and I don't think it ever has been.  It does not work

  Never say never :) When mmap() appeared in Free it never (:-))
  updated mtime of the file you've mmaped. And msync() has 2 arguments,
  not 3, and now it supports only one flag, not three of SunOS/etc...

> the way SunOS does when expanding files, but that's because INN relies
> on a particular behavior that may or may not be a correct assumption to
> make.

  Well, and when you see a garbage between the last line of active and
  next 8K bound - is it your own way to go? Every newsadmin using FreeBSD
  (and reading FAQ or active :)) set ACT_STYLE to READ, not MMAP - and
  this is the way you go under Free :(((

> :options		EXTRAVNODES=1
> Where do you see THAT???  I don't see it on 2.1.5 or 2.1.0...

  Hmm, I use 2.2-CURRENT kernel now (due to ccd absence in 2.1.5),
  and probably there was no EXTRAVNODES that time too. :(((
  Now we have it.

> :  By the way: our Solaris box mmaped 55,000+ files with virtual size
> :  of 501M :)))
> I suppose I could too if I cranked up a few numbers in /etc/sysconfig, or
> added more RAM...

  You need NO extra RAM when you have mmap() working (in the right way :)) -
  all these terrible Megabytes are in fact the sum of those files you
  mmaped, nothing in RAM. And the final figures I've got are 61,131 files
  with 503M - IMHO enough for innfeed if we remember the start of this
  thread :))) And those box has empty /etc/system. :)))
_______
	ANDY

Re: Probs with innfeed 0.8.5b on Solaris
#10377
Author: T. William Wells
Date: Fri, 23 Aug 1996 00:00
37 lines
2218 bytes
In article <4vhft5$drl@turing.mathworks.com>,
Dave Pascoe <dave@mathworks.com> wrote:
: brister>James Brister <brister@gw.home.vix.com> wrote:
: brister>: It's possible there is still a memory leak in there, but even so,
: brister>: given the way innfeed keeps articles in memory while feeding,
:
: T. William Wells (bill@twwells.com) wrote:
:
: bill>Given this, there are no circumnstances under which I will _ever_
: bill>use innfeed. This is a _bad_ policy decision.
:
: Bill, care to elaborate why this is a bad policy decision?  I'm
: curious.

Worst case 1M of RAM used per outgoing non-streaming feed;
potentially worse for streaming feeds. And there's no need for it.
The Unix buffer cache will accomplish the same thing, one presumes
more efficiently. Moreoever, on many systems, once that memory is
allocated it is _not_ freed, even once the need is gone.

And, ghod help you if that use of RAM forces you into swapping.
Any possible benefits of keeping it in RAM are gone....

I don't care *how* cheap RAM is, it will *always* be a precious
commodity. When you engage in what appears to be a mind-boggling
waste of RAM be prepared to offer theoretical *and* practical,
real-world, proof that that use of RAM is worthwhile. In this
case, I very much doubt such proof can exist....

Mentioned in other articles, mmap() is a good approach, if it
works at all. The problem is that it doesn't always. This is why
INN still has it as a configuration option.... At least with mmap,
you aren't forcing the OS to make you a private copy of the
data....

Re: Probs with innfeed 0.8.5b on Solaris
#10396
Author: Alan Brown
Date: Sun, 25 Aug 1996 00:00
16 lines
1256 bytes
In article <4vjb3f$6no@paperboy.osf.org>, Rich Salz <rsalz@osf.org> wrote:

>Are there any newsreaders in common use that ONLY read via the spool
>and cannot read via NNTP?  I doubt it.

There's a couple Unix BBS packages which don't do NNTP. I had to nfs 
export the spool to a BBS machine because of it. :( :( :(

Mind you, not being able to access the spool would be a good way of 
getting the authors to get their shit together,

AB


Re: Probs with innfeed 0.8.5b on Solaris
#10397
Author: kremžská HOŘČICE
Date: Sun, 25 Aug 1996 00:00
19 lines
1423 bytes
On 23 Aug 1996, Rich Salz wrote:

> >The disadvantage, obviously, in changing the spool format is that it may
> >break compatibility with a lot of existing software
> 
> Are there any newsreaders in common use that ONLY read via the spool
> and cannot read via NNTP?

    While not quite a newsreader per se, I believe the Cyrus IMAP4 server
from CMU expects the existing format to allow access to news via IMAP, in
the same way that nnrpd does for NNTP access.  (I haven't gotten around
to configuring it for this yet, sorry.)


Barry Bouwsma  <barryb@tuke.sk>


Re: Probs with innfeed 0.8.5b on Solaris
#10400
Author: J. Porter Clark
Date: Sun, 25 Aug 1996 00:00
23 lines
1473 bytes
rsalz@osf.org (Rich Salz) writes:

>Are there any newsreaders in common use that ONLY read via the spool
>and cannot read via NNTP?  I doubt it.

>I think it's high time to change INN's on-disk article format to be
>the NNTP format.  Perhaps the "archive" program should unconvert, and
>some author automated archives might need to.  FAQ's-via-url would
>need some filtering too.

Wouldn't it be possible to convert newsreaders that read the spool
directly to do so in NNTP format?  The only differences are \r\n vs. \n
and . on a line by itself becomes .., right?

(Usenet in 2001: "And this drive is where I keep all of the carriage
returns..."  8-)

-- 
J. Porter Clark    jpc@drum.msfc.nasa.gov
NASA/MSFC Flight Data Systems Branch

Re: Multiple innfeeds (was Re: Probs with innfeed 0.8.5b on Solaris)
#10406
Author: Joe Greco
Date: Mon, 26 Aug 1996 00:00
22 lines
1552 bytes
In news.software.nntp article <4vkuph$cbf@news2.cais.com>, jdfalk@cybernothing.org wrote:
:In news.software.nntp, Mark Delany  <markd@mira.net.au> wrote...
:
:> I agree that this isn't a perfect solution, but it should work for
:> sites that feed less than, oh, 15 other sites or so. For large sites
:> it's a different story and may require running a number of innfeeds or
:> taking Bill's approach of using other tools.
:
:	We're a pretty big site, but I'd still like to get the news
:flowing faster with less load (wouldn't everybody?)
:	Can anybody share stories about using multiple innfeeds? 

Just Do It...  I specify innfeed with -c and -l redirected to separate
files.  I don't like to run more than about half a dozen feeds from a single
innfeed.

Of course innfeed.status becomes a real big mess.

... JG

Re: Probs with innfeed 0.8.5b on Solaris
#10414
Author: Joe Greco
Date: Mon, 26 Aug 1996 00:00
55 lines
2814 bytes
In news.software.nntp article <4vl6b3$8b0@data.ramona.vix.com>, brister@velo.pp.vix.com (James Brister) wrote:
:I agree with Rich that it's time to change the on-disk format of
:articles to match NNTP's requirements so that mmap() will be most
:useful. Probably in 1.6. There shouldn't be any non-NNTP readers
:left (note: I didn't say "aren't" I said "shouldn't"). There's
:going to be a point in time (probably not too far off) when the
:one-article-per-file format just isn't going to cut it any more,
:then the non-NNTP readers will be really up the creek.

I do agree with that but still wish somebody (besides Netscape) had a
threaded nnrpd capable of multiple clients...  it would wipe out the few
valid reasons I can think of for going non-NNTP...

:As for innfeed. I'm thinking about how to put mmap() in there. Of
:course I have to allow for people who can't (or won't) use mmap().

Worst case scenario, do what you do now (well sorta) - read it into
RAM.

pseudo_code() {
	stat(article)
#ifdef MMAP
	flags = FREE_BY_MUNMAP
	art = mmap(article, st_size)
#else
	flags = FREE_BY_FREE
	art = malloc(st_size)
	read(art, st_size)
#endif
}

This is NO worse and probably more efficient than the current scheme 
because you can do a single read() in and write() out, even without mmap().
You should be able to trivially encapsulate it in a "fetch_art" and
"unfetch_art" layer...  and if you make the layer smart, it might even
be able to handle some of what's below..

:I also have to be very careful about not being a vnode hog--some
:of you may be able to mmap() 45000 files at once, but others only
:150 (not even).

Some of us might even ask you to make it user-definable :-)

I'm thinking a number of things.  It "may" be more practical, if vnodes
are scarce, to only mmap() articles over a certain size (50K?), and malloc()
the remaining ones like currently is done...  basically the BIG ones are the
biggest problem when you think about it...  or it may be useful to specify
a per-process cap to mmap()'s..  

Just some random thoughts.

... JG

Re: Probs with innfeed 0.8.5b on Solaris
#10430
Author: T. William Wells
Date: Mon, 26 Aug 1996 00:00
29 lines
1854 bytes
In article <4vhun0$90g@gw.home.vix.com>,
James Brister <brister@gw.home.vix.com> wrote:
: To respond to Bill Wells, the decision to keep the article in memory
: was deliberate (and desirable to some people who manage huge sites)
: so that it would have to be read in only one time no matter how
: many feeds it went out.

I understand that. What I wanted to know, and what you didn't
address, is whether imposing your memory policy over the buffer
cache policy results in any improvement. Are there *numbers*???

: As for mmap(). You need a open file descriptor for that, and file
: descriptors are a pretty precious resource.

There is that. However, at least on my system, I've got more of
those to spare. RAM, on the other hand, is in relatively short
supply. (I basically run just below swapping...without innfeed.)

: Until INN has an
: alternative storage scheme where (for example) all articles are
: smashed into a few big container files, then mmap seems like it
: wouldn't be much help.

BTW, I recently set my spool up to stick articles in
subdirectories: "%07d.a/%03d", artnum / 1000, artnum % 1000; this
has at least doubled the speed of article processing....

Re: Multiple innfeeds (was Re: Probs with innfeed 0.8.5b on Solaris)
#10439
Author: Joe Greco
Date: Tue, 27 Aug 1996 00:00
22 lines
1556 bytes
In news.software.nntp article <4vuvqt$29h@gw.home.vix.com>, brister@gw.home.vix.com (James Brister) wrote:
:Joe Greco (jgreco@brasil.moneng.mei.com) wrote:
:: Just Do It...  I specify innfeed with -c and -l redirected to separate
:: files.  I don't like to run more than about half a dozen feeds from a single
:: innfeed.
:
:: Of course innfeed.status becomes a real big mess.
:
:Using the '-b' option would be good here....
:
:James

Ignoring innfeed.status works too..  I didn't like the -b concept because 
it diverged too much from (my?) conventions.  I would take a command line
switch to specify a different innfeed.status filename.  Actually you "could"
do lots to make multiple innfeed's prettier, but I at least am not unhappy
with it as is, and would rather see other more pressing items worked on.

... JG

Re: Multiple innfeeds (was Re: Probs with innfeed 0.8.5b on Solaris)
#10452
Author: James Brister
Date: Tue, 27 Aug 1996 00:00
17 lines
1206 bytes
Joe Greco (jgreco@brasil.moneng.mei.com) wrote:

: Just Do It...  I specify innfeed with -c and -l redirected to separate
: files.  I don't like to run more than about half a dozen feeds from a single
: innfeed.

: Of course innfeed.status becomes a real big mess.

Using the '-b' option would be good here....

James
--
James Brister                                            brister@vix.com
Internet Software Consortium                             inn@isc.org

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