Thread View: news.software.nntp
8 messages
8 total messages
Started by Brian Tao
Wed, 28 Feb 1996 00:00
Extremely large in.nnrpd processes
Author: Brian Tao
Date: Wed, 28 Feb 1996 00:00
Date: Wed, 28 Feb 1996 00:00
36 lines
2094 bytes
2094 bytes
I'm running inn-1.4unoff3+sharedactive on a FreeBSD 2.1.0R
machine. Normally, ps reports each in.nnrpd occupies 200 to 300K of
VSZ and about 1M of RSS (the in-core shared memory segment, I
presume). However, I occasionally see much larger in.nnrpd's. They
always seem to originate from the same hosts (many of our customers
access the news server from a static IP connection).
For example, the typical in.nnrpd looks like this:
%CPU %MEM VSZ RSS TT STAT STARTED COMMAND
0.0 0.6 304 804 ?? SN 11:01AM -dyna-119.net7a.io.org ARTICLE
0.0 0.9 304 1108 ?? SN 11:05AM -max3-247.sound.net HELP
0.0 0.9 292 1168 ?? IN 11:07AM -dyna-88.net7b.io.org ARTICLE
The large ones are like this:
%CPU %MEM VSZ RSS TT STAT STARTED COMMAND
0.0 10.6 12828 13680 ?? SN 10:11AM -beach.net2.io.org ARTICLE
0.0 10.2 12808 13164 ?? SN 10:42AM -excalibur.net5c.io.org article
0.0 10.2 12808 13168 ?? IN 11:01AM -byron.net4.io.org ARTICLE
The fellow at byron.net4.io.org says he is using the NEWNEWS
command to retrieve his news down to his Linux box. I haven't
contacted the other users yet to see if this is a common point between
all of them. But if I connect to the nntp port and issue the newnews
command myself, I don't see this behaviour.
Could someone confirm if this kind of memory usage is in fact
caused by the NEWNEWS command?
--
Brian Tao (BT300, taob@io.org)
Systems Administrator, Internex Online Inc.
"Though this be madness, yet there is method in't"
Re: Extremely large in.nnrpd processes
Author: Simon Burr
Date: Wed, 28 Feb 1996 00:00
Date: Wed, 28 Feb 1996 00:00
28 lines
2106 bytes
2106 bytes
In <4h20n8$fn8@zip.io.org> taob@zip.io.org (Brian Tao) writes:
> The fellow at byron.net4.io.org says he is using the NEWNEWS
>command to retrieve his news down to his Linux box. I haven't
>contacted the other users yet to see if this is a common point between
>all of them. But if I connect to the nntp port and issue the newnews
>command myself, I don't see this behaviour.
> Could someone confirm if this kind of memory usage is in fact
>caused by the NEWNEWS command?
We've noticed the same behaviour on our news server. After some poking around
nnrpd and some discussions with someone from a software company that wrote the
news software a customer was using (hia Jon, I will get around to using that
code you sent me :) we've found that it isn't the NEWNEWS command that causes
the problem, it is infact reasonably efficent.
The problem is a side effect of the NEWNEWS command. When you use NEWNEWS, it
returns message IDs to the client. When you use the ARTICLE command with
messsage IDs, it has to access the history database to find out where the
article lives on the server. It is this accessing of the history database that
causes the higher than normal memory usage.
--
Simon Burr (simes@tcp.co.uk) | http://www.tcp.co.uk/staff/simes/
Systems Manager and Programmer | Total Connectivity Providers Ltd
I *don't* speak for my company, my boss does that
Here in body, but not in mind
Re: Extremely large in.nnrpd processes
Author: Joe Greco
Date: Thu, 29 Feb 1996 00:00
Date: Thu, 29 Feb 1996 00:00
52 lines
2734 bytes
2734 bytes
In news.software.nntp article <4h20n8$fn8@zip.io.org>, taob@zip.io.org (Brian Tao) wrote: : I'm running inn-1.4unoff3+sharedactive on a FreeBSD 2.1.0R :machine. Normally, ps reports each in.nnrpd occupies 200 to 300K of :VSZ and about 1M of RSS (the in-core shared memory segment, I :presume). However, I occasionally see much larger in.nnrpd's. They :always seem to originate from the same hosts (many of our customers :access the news server from a static IP connection). : : For example, the typical in.nnrpd looks like this: : : %CPU %MEM VSZ RSS TT STAT STARTED COMMAND : 0.0 0.6 304 804 ?? SN 11:01AM -dyna-119.net7a.io.org ARTICLE : 0.0 0.9 304 1108 ?? SN 11:05AM -max3-247.sound.net HELP : 0.0 0.9 292 1168 ?? IN 11:07AM -dyna-88.net7b.io.org ARTICLE : : : The large ones are like this: : : %CPU %MEM VSZ RSS TT STAT STARTED COMMAND : 0.0 10.6 12828 13680 ?? SN 10:11AM -beach.net2.io.org ARTICLE : 0.0 10.2 12808 13164 ?? SN 10:42AM -excalibur.net5c.io.org article : 0.0 10.2 12808 13168 ?? IN 11:01AM -byron.net4.io.org ARTICLE : : The fellow at byron.net4.io.org says he is using the NEWNEWS :command to retrieve his news down to his Linux box. I haven't :contacted the other users yet to see if this is a common point between :all of them. But if I connect to the nntp port and issue the newnews :command myself, I don't see this behaviour. : : Could someone confirm if this kind of memory usage is in fact :caused by the NEWNEWS command? No, it is not. NEWNEWS returns a list of article ID's. The client then turns around and requests zillions of them via ARTICLE <message-id> and nnrpd loads history.pag in core to do the lookups. That's your extra megabytes. Suggestion: offer the guy a real feed. These things drag your machine down into oblivion when done this way. ... Joe ------------------------------------------------------------------------------- Joe Greco - Systems Administrator jgreco@ns.sol.net Solaria Public Access UNIX - Milwaukee, WI 414/546-7968
Re: Extremely large in.nnrpd processes
Author: Dave Barr
Date: Thu, 29 Feb 1996 00:00
Date: Thu, 29 Feb 1996 00:00
11 lines
1052 bytes
1052 bytes
In article <4h5c2i$t5b@zip.io.org>, Brian Tao <taob@zip.io.org> wrote: > I just tried it myself, browsing random articles from Netscape and >making sure it is doing it by message ID. The corresponding in.nnrpd >process on the server hasn't grown beyond its original size yet >(browsed about 50 articles in 4 newsgroups so far). See NNRP_DBZINCORE_DELAY in config.data. Adjust to taste. --Dave
Re: Extremely large in.nnrpd processes
Author: Brian Tao
Date: Thu, 29 Feb 1996 00:00
Date: Thu, 29 Feb 1996 00:00
22 lines
1637 bytes
1637 bytes
In article <4h27cp$8qs@poseidon.tcp.co.uk>, Simon Burr <simes@tcp.co.uk> wrote:
>
>The problem is a side effect of the NEWNEWS command. When you use NEWNEWS, it
>returns message IDs to the client. When you use the ARTICLE command with
>messsage IDs, it has to access the history database to find out where the
>article lives on the server. It is this accessing of the history database that
>causes the higher than normal memory usage.
Yes, I just figured this out last night by using NEWNEWS to get a
list of articles, disconnecting from the NNTP port and reconnecting.
After the first bunch of ARTICLE commands, the memory usage of the
second in.nnrpd shot up to around 13 megabytes.
I don't see any use for the NEWNEWS command other than to retrieve
a large list of articles via msg-id, so there's no sense in reactivating
it here (even though it isn't the direct cause).
--
Brian Tao (BT300, taob@io.org)
Systems Administrator, Internex Online Inc.
"Though this be madness, yet there is method in't"
Re: Extremely large in.nnrpd processes
Author: Brian Tao
Date: Thu, 29 Feb 1996 00:00
Date: Thu, 29 Feb 1996 00:00
22 lines
1610 bytes
1610 bytes
In article <4h56k1$6fm@brasil.moneng.mei.com>, Joe Greco <jgreco@brasil.moneng.mei.com> wrote:
>
>Suggestion: offer the guy a real feed. These things drag your machine down
>into oblivion when done this way.
But how to stop others from retrieving articles in this manner?
Would it be advisable to patch the nnrpd code to disallow a message ID
as an argument for the ARTICLE command? I know Usenet URL's use
message ID's, so those who use Netscape or Lynx or whatever to browse
news might still cause this behaviour?
I just tried it myself, browsing random articles from Netscape and
making sure it is doing it by message ID. The corresponding in.nnrpd
process on the server hasn't grown beyond its original size yet
(browsed about 50 articles in 4 newsgroups so far). Does this only
happen in conjunction with the use of the NEWNEWS command?
--
Brian Tao (BT300, taob@io.org)
Systems Administrator, Internex Online Inc.
"Though this be madness, yet there is method in't"
Re: Extremely large in.nnrpd processes
Author: Simon Burr
Date: Fri, 01 Mar 1996 00:00
Date: Fri, 01 Mar 1996 00:00
27 lines
2030 bytes
2030 bytes
In <4h5bif$sgn@zip.io.org> taob@zip.io.org (Brian Tao) writes:
> I don't see any use for the NEWNEWS command other than to retrieve
>a large list of articles via msg-id, so there's no sense in reactivating
>it here (even though it isn't the direct cause).
Well, there is always the option of getting nnrpd to ask innd to do the
conversion for it. However, without changing much code this appears to make
nnrpd make a socket to innd for each message-Id.
The real problem we have here is that a lot of the software in the UK ISP
which was developed in the UK is aimed at Demon. Demon have optimised the
NEWNEWS command on their news system to make multiple news servers easier to
implement. From what I heard, retriving news via message ID was the only
reliable way to get articles as the article numbers on different news servers
were out of sync with each other.
Due to this we haven't been able to disable the NEWNEWS command. Instead I
have modified nnrpd to renice itself when it receives a NEWNEWS command. It is
not a pretty solution but it helps.
--
Simon Burr (simes@tcp.co.uk) | http://www.tcp.co.uk/staff/simes/
Systems Manager and Programmer | Total Connectivity Providers Ltd
I *don't* speak for my company, my boss does that
Here in body, but not in mind
Re: Extremely large in.nnrpd processes
Author: James R Grinter
Date: Tue, 12 Mar 1996 00:00
Date: Tue, 12 Mar 1996 00:00
20 lines
1596 bytes
1596 bytes
In article <4h5g6k$gd1@poseidon.tcp.co.uk> Simon Burr <simes@tcp.co.uk> writes: > The real problem we have here is that a lot of the software in the UK ISP > which was developed in the UK is aimed at Demon. Demon have optimised the > NEWNEWS command on their news system to make multiple news servers easier to The use of NEWNEWS came mostly from ka9q's nntp client, and then others implemented their offline retrieval that way. > implement. From what I heard, retriving news via message ID was the only > reliable way to get articles as the article numbers on different news servers > were out of sync with each other. but the reimplementation of NEWNEWS came before attempting to implement synchronised newsbases. That has to support message-ids and article numbers, as newer clients (Agent, Netscape) tend to use the latter method in recording what they've seen. -- jrg.
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