Thread View: news.software.nntp
5 messages
5 total messages
Started by Homer Wilson Smith
Fri, 21 Jun 2002 17:34
LOAD
Author: Homer Wilson Smith
Date: Fri, 21 Jun 2002 17:34
Date: Fri, 21 Jun 2002 17:34
59 lines
3183 bytes
3183 bytes
I would like to understand load when it comes to news servers.
Consider the following over simplification.
Both news and web produce scenarios where 'relentless' hits are
coming in on the server.
Say a process takes 1/10 of a CPU second to run (no I/O), and 10
jobs per second are coming into this machine.
Clearly the load will be 1.0.
Now say 11 hits/sec start coming in. Clearly every 10 seconds
there will be one more unrun job in the queue than before. Thus over
time the load will increase to infinity.
The question then is where is it between 10 and 11 jobs per
second coming in that would produce a *CONSTANT* load 2 or 3.
One answer is if jobs hits have a time out. By the time the load
is at 2, each job will be taking twice as long to run, if jobs timeout
f they have to wait more than 2/10's of a second to run, then the load
will not climb above 2.0 but hangout around 2.0.
Another answer is if periodically jobs just didn't come in,
interrupting the 'relentless' 11 jobs/sec.
With real world applications like news and web hits, we not only
have the time out mechanism (which means the job, web hit or news
article is 'lost' momentaritly) we also have a non constant rate of
hits coming in, which allows for more at one point, and then less at
another.
Thus from looking at the load alone, it is not immediately
possible to tell whether the newsserver is keeping up with the
articles that are coming in.
Clearly if the load is less than 1.0 at all times, the news
server MUST be keeping up (barring network latency issues). But once
the load goes above 1.0, the issue becomes unknown.
Is the above analysis correct?
Is there a way to know if the server is failing to take articles
without bugging feeds admins?
Is there some way to count ihave's received, but never completed?
How does a remote server 'timeout' an offer if the receiving
server is 'overloaded'. What is the protocol sequence?
Homer
--
------------------------------------------------------------------------
Homer Wilson Smith I would rather die poor Lightlink Internet
(607) 277-0959 KC2ITF than suffer the patronage Ithaca, NY
homer@lightlink.com of bigots and pinheads. www.lightlink.com
Re: LOAD
Author: Greg Andrews
Date: Fri, 21 Jun 2002 19:58
Date: Fri, 21 Jun 2002 19:58
66 lines
3527 bytes
3527 bytes
homer@adore.lightlink.com (Homer Wilson Smith) writes:
>
[discussion of hypothetical cpu loads]
>
> Thus from looking at the load alone, it is not immediately
>possible to tell whether the newsserver is keeping up with the
>articles that are coming in.
>
Yes. This is VERY IMPORTANT.
You discussed cpu load and concluded that cpu load does not
correspond to a news server's ability to serve news to readers
and transmit feeds while also receiving incoming feeds.
That's right. The **cpu** load does not give you this kind of
indication.
The other kinds of loads on a news server correspond better with
the server's ability to keep up with incoming feeds. For example,
the load on the spool disks can slow news down without making the
cpu load climb. Running low on virtual memory and making the
sytem page/swap a lot can also slow news down without making the
cpu load rise much.
>
> Is there a way to know if the server is failing to take articles
>without bugging feeds admins?
>
The simple answer is that you watch the log of the incoming articles,
and note how may articles you're getting per hour, and the average age
of each article that hour. I used to get these stats from INN 1.x's
history database (the text file, not the db files).
You have to discard the oldest 10% because misconfigured hosts can
make an article look younger than it reall is. (you also have to
ignore articles with a negative age [time travel!] for the same reason)
When you see the average age of the incoming articles is climbing, then
you're probably not keeping up with your feed. You'll usually also see
the number of articles per hour or per day drop also. Traffic rates
rise and fall during the day and during the week, so you have to compare
from day to day. Also, posting floods and cancel floods can produce
spikes or dips in these stats. So can the nightly expire on a traditional
new spool filesystem.
The other stats that can indicate (less directly) that you're falling behind
are your machine's disk i/o load stats, virtual memory (paging/swapping)
stats, and whether all of your outgoing feeds are falling behind.
Like the incoming article count/age stat, these other stats normally rise
and fall during the day and week. So it's best to compare them with
previous days and/or weeks.
The best indicator is the age of the incoming articles, though.
-Greg
--
::::::::::::: Greg Andrews ::::: gerg@panix.com :::::::::::::
I have a map of the United States that's actual size.
-- Steven Wright
Re: LOAD
Author: Greg Andrews
Date: Fri, 21 Jun 2002 20:05
Date: Fri, 21 Jun 2002 20:05
17 lines
1521 bytes
1521 bytes
gerg@panix.com (Greg Andrews) writes:
>
>You have to discard the oldest 10% because misconfigured hosts can
>make an article look younger than it reall is.
>
Oops. I meant to say here that a misconfigured host could make the
article look older than it really is. Not younger. Also, a few articles
will always reach you by a long path, and they won't indicate the true
state of your feeds.
-Greg
--
::::::::::::: Greg Andrews ::::: gerg@panix.com :::::::::::::
I have a map of the United States that's actual size.
-- Steven Wright
Re: LOAD
Author: Homer Wilson Smith
Date: Sun, 23 Jun 2002 02:19
Date: Sun, 23 Jun 2002 02:19
36 lines
2399 bytes
2399 bytes
Greg Andrews (gerg@panix.com) wrote:
>The other kinds of loads on a news server correspond better with
>the server's ability to keep up with incoming feeds. For example,
>the load on the spool disks can slow news down without making the
>cpu load climb. Running low on virtual memory and making the
>sytem page/swap a lot can also slow news down without making the
>cpu load rise much.
OK, machine is demonstrably not swapping as shown by 'free.'
However I haven't manage to get iostat to show scsi disks, if
someone has such a thing for linux (presently 2.0.38) I would
be most grateful.
>> Is there a way to know if the server is failing to take articles
>>without bugging feeds admins?
>The other stats that can indicate (less directly) that you're falling behind
>are your machine's disk i/o load stats, virtual memory (paging/swapping)
>stats, and whether all of your outgoing feeds are falling behind.
How would I know whether the outgoing feeds are 'falling behind'.
Their innfeed files are all zero, so there is no backlog.
Presently I am trying to feed sites that are feeding me who
are much faster and bigger than I am. So I wouldn't expect backlogs
for them. When I get the new hardware in and start soliciting smaller
feeds to pass on the news to, I would expect to start seeing backlogs
for them.
>The best indicator is the age of the incoming articles, though.
Thank you.
Homer
Re: LOAD
Author: Greg Andrews
Date: Sun, 23 Jun 2002 03:33
Date: Sun, 23 Jun 2002 03:33
17 lines
1519 bytes
1519 bytes
homer@adore.lightlink.com (Homer Wilson Smith) writes:
>
> How would I know whether the outgoing feeds are 'falling behind'.
>Their innfeed files are all zero, so there is no backlog.
>
I'm a bit rusty on the various operating files for current versions
of INN and other news server/feeder software, but I'm pretty sure
you answered your own question.
-Greg
--
::::::::::::: Greg Andrews ::::: gerg@panix.com :::::::::::::
I have a map of the United States that's actual size.
-- Steven Wright
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