Thread View: news.software.nntp
7 messages
7 total messages
Started by Forrest J. Cavalier III
Wed, 25 Jun 1997 00:00
News server survey
Author: Forrest J. Cavalier III
Date: Wed, 25 Jun 1997 00:00
Date: Wed, 25 Jun 1997 00:00
139 lines
4953 bytes
4953 bytes
Wouldn't you like to know what is being used for news
hardware/OS/software these days?
I want to gather information and publish a survey of
the basic characteristics of current news systems. I think
this would be of great benefit to the individual news admin
to know what is successful, what is popular, what is not.
The results will also benefit those maintaining INN
and utilities, the FAQ, and the Usenet RKT.
I am volunteering to coordinate the work, if there is
interest. Results would be published via WWW and in
this newsgroup.
In order to maintain confidentiality, all identifying
characteristics would be stripped before being published.
Your name/e-mail address would not be published, sold,
used for marketing, or anything else. There would be
no mention that you participated in the survey.
I would like to make the survey a shell script, so that
it would not be time consuming to participate. You would
take the survey by:
sh survey.sh | tee out
{inspect, edit to remove any sections you find
objectionable, or sensitive}
mail -t survey@mibsoftware.com <out
rm out
I have a prototype shell script below, but I want comments for
improvements, sensitive information issues, and portability.
Tested on solaris. I think it will work on linux also.
Some commands fail on one but work on the other. (top vs free,
ps flags)
Here is a summary of data I want to report, and how it is
collected.
Item of interest Automatic collection using
---------------- --------------------------
hostname (for survey $INNCONFVAL fromhost
tallying only)
Operating system/CPU uname -a
Memory top -n ; free
Disk storage config mount, df, innshellvars
News volume zcat $MOSTLOGS/OLD/news.1 | fgrep -c
Number of newsfeeds cat $NEWSFEEDS
Expiration policy cat $EXPIRECTL
Number of groups wc $ACTIVE
Reader load (ps -axw; ps -efl) | fgrep $NEWSUSER
Memory usage (ps -axw; ps -efl) | fgrep $NEWSUSER
logging basics ls -l $MOSTLOGS; ls -l $MOSTLOGS/OLD
(size of files,etc)
It would also be nice to collect the following. I don't know
how to do it automatically. Perhaps the script could take these
as interactive input? Are you all trustworthy? :-)
Network connection
(T1, T3, etc) ??????
CPU speed/System model ??????
(E.g. PPRO 200, SS20)
config.data ??????
patches installed ??????
I don't know how to accomodate other news systems besides
INN, such as Diablo, DNEWS, etc. But I think it is important
to gather the basic system information on those systems also,
even if the details of newsfeeds, logs, etc cannot be determined.
Please let me know if there is interest in this, and if the
survey script can be improved.
If there is interest, I would start the survey next week, collect
data for a week or two, then publish soon after. I can see many
benefits from having this data collected and published.
Thanks.
Forrest Cavalier, Mib Software, INN customization and consulting
#!/bin/sh
INNCONFVAL=echo
NEWSFEEDS=failed
EXPIRECTL=failed
ACTIVE=failed
. innshellvars
echo ++++++++++++uname -a
uname -a
echo ++++++++++++mount
mount
echo ++++++++++++df
df
echo ++++++++++++uptime
uptime
echo ++++++++++++top -n
top -n
echo ++++++++++++free
free
echo ++++++++++++set
set
echo ++++++++++++$INNCONFVAL domain
$INNCONFVAL domain
echo ++++++++++++$INNCONFVAL fromhost
$INNCONFVAL fromhost
echo ++++++++++++$INNCONFVAL pathhost
$INNCONFVAL pathhost
echo ++++++++++++$INNCONFVAL server
$INNCONFVAL server
echo ++++++++++++cat $NEWSFEEDS
cat $NEWSFEEDS
echo ++++++++++++ls -l $MOST_LOGS
ls -l $MOST_LOGS
echo ++++++++++++ls -l $MOST_LOGS/OLD
ls -l $MOST_LOGS/OLD
echo ++++++++++++cat $EXPIRECTL
cat $EXPIRECTL
echo ++++++++++++wc $ACTIVE
wc $ACTIVE
echo ++++++++++++ps -efl | fgrep $NEWSUSER
ps -efl | fgrep $NEWSUSER
echo ++++++++++++ps -axw | fgrep $NEWSUSER
ps -axwl | fgrep $NEWSUSER
head $MOST_LOGS/news
echo ++++++++++++uncompressing $MOSTLOGS/OLD/news.1
date
zcat $MOST_LOGS/OLD/news.1 >survey.tmp
date
echo ++++++++++++fgrep -c \" + \" survey.tmp
fgrep -c " + " survey.tmp
echo ++++++++++++fgrep -c \" - \" survey.tmp
fgrep -c " - " survey.tmp
rm survey.tmp
Re: News server survey
Author: Matt Dillon
Date: Wed, 25 Jun 1997 00:00
Date: Wed, 25 Jun 1997 00:00
71 lines
2967 bytes
2967 bytes
:In article <5orbum$8tj$1@news1.epix.net>,
:Forrest J. Cavalier III <mibsoft@epix.net> wrote:
:>Wouldn't you like to know what is being used for news
:>hardware/OS/software these days?
:..
> Item of interest Automatic collection using
> ---------------- --------------------------
> hostname (for survey $INNCONFVAL fromhost
> tallying only)
> Operating system/CPU uname -a
> Memory top -n ; free
> Disk storage config mount, df, innshellvars
innshellvars presumes INN. df is useable, but on SUNs
I think you want /usr/ucb/df or something like that. Plus
not all versions of df use the same default block size and
not all report the block size.
> News volume zcat $MOSTLOGS/OLD/news.1 | fgrep -c
This is INN specific
> Number of newsfeeds cat $NEWSFEEDS
This is INN specific and wouldn't really count the feeds
> Expiration policy cat $EXPIRECTL
> Number of groups wc $ACTIVE
These are INN specific
> Reader load (ps -axw; ps -efl) | fgrep $NEWSUSER
This might work. An 'uptime' would be good too, and a vmstat
> Memory usage (ps -axw; ps -efl) | fgrep $NEWSUSER
This will not report RSS or SIZ on BSD systems, you have to use
ps -axlww
> logging basics ls -l $MOSTLOGS; ls -l $MOSTLOGS/OLD
> (size of files,etc)
Probably not worth collecting info on.
>It would also be nice to collect the following. I don't know
>how to do it automatically. Perhaps the script could take these
>as interactive input? Are you all trustworthy? :-)
> Network connection
> (T1, T3, etc) ??????
> CPU speed/System model ??????
> (E.g. PPRO 200, SS20)
> config.data ??????
> patches installed ??????
>
>I don't know how to accomodate other news systems besides
>INN, such as Diablo, DNEWS, etc. But I think it is important
>to gather the basic system information on those systems also,
I think your best bet is simply make a survey form and have
people fill it in rather then attempt to construct a script
that will work on every OS.
You have a ready list to send the survey to - you can email it to
the site admins from the top 1000 list. news@sitename
-Matt
Re: News server survey
Author: Net Scum
Date: Thu, 26 Jun 1997 00:00
Date: Thu, 26 Jun 1997 00:00
47 lines
2706 bytes
2706 bytes
On 25 Jun 1997, Matt Dillon wrote:
> > Reader load (ps -axw; ps -efl) | fgrep $NEWSUSER
>
> This might work. An 'uptime' would be good too, and a vmstat
Don't forget the ``w ; uname -a ; cat /etc/passwd | /usr/ucb/Mail...
I can't believe how many systems out there are still configured to blindly
act quietly on messages like this. And still process the forged rmgroups
from tale that wiped out a handful of groups on more than a few servers
a few days ago. Well, actually, I can believe it, but...
> > logging basics ls -l $MOSTLOGS; ls -l $MOSTLOGS/OLD
> > (size of files,etc)
>
> Probably not worth collecting info on.
Actually, this can be useful information for someone who is trying to
decide how much disk space to allocate for news for a given configuration.
For example, on one of my servers, the news logfile has ballooned from
around 160M per day a few weeks ago, to more than 350M a day, to the point
where the headroom I had a month ago is totally exhausted. On the other
hand, on another server, the same logfiles is still <100M in size, but
once again, I'm almost out of breathing room there simply due to the sheer
increase in news traffic in the last month, and that I'm now needing to
write backlog files for sites that previously didn't need them but just
can't keep up any longer, taking an additional 50M or so of space that was
previously free.
Like you noted, a good news system isn't one that can be ignored
unless you're lucky enough to be able to have way over-spec'ed hardware.
My servers are running everything INN- and innfeed-related off a single 4G
SCSI disk, so I don't have the luxury of being able to afford the doubling
of log file sizes.
> You have a ready list to send the survey to - you can email it to
> the site admins from the top 1000 list. news@sitename
Hmmm... news@CESspool... no wait, I changed that
Barry Bouwsma <news@news.radio.cz>
Radio Praha newsadmuckistrator
Re: News server survey
Author: Forrest J. Cavalier III
Date: Thu, 26 Jun 1997 00:00
Date: Thu, 26 Jun 1997 00:00
63 lines
3416 bytes
3416 bytes
In article <5l3eq5r6ce.fsf@tequila.systemsz.cs.yale.edu>,
monnier+news/software/nntp/news/@tequila.cs.yale.edu wrote...
>> > Reader load (ps -axw; ps -efl) | fgrep $NEWSUSER
>> This might work. An 'uptime' would be good too, and a vmstat
>
>No. uptime doesn't tell anything interesting in this context: it's fine
>for your own server because you compare "my uptime yesterday" with "my uptime
>today", but comparing uptime values of different systems running different
>servers is just uninteresting.
My shell script does run "uptime." I think the load reported might
be usable as a comparison, although I agree that it is of dubious
quality. I want to know how long the system was up, as a measure of
INN stability. (The ps start time reported for innd will also be used.)
>It's probably more interesting to look at vmstat, cpu-usage and such.
>Also interesting to measure would be "time to execute XXX" where XXX is a
>little script that connects to the server a couple times a wanders around a
>little, downloading a few (or a lot of) articles.
I do have a crude measure of performance built into survey.sh:
How long it takes to zcat OLD/news.1
BTW, any script which "connects to the server... and wanders around" is
not going to be a "little script." There are lots of metric tools that I
would like people to run, but I figure participation will be much higher
if it fits in a shell script that is tacked onto an e-mail message.
- - - - - - - - - - - - - - - - -
Matt pointed out that "cat newsfeeds" does not really give an indication
of how many incoming feeds you have. "cat hosts.nntp" isn't so good either.
I want to keep the size of the response file down, since most admins
will want to (at least SHOULD want to) look at what is sent out before
it is sent. How about this: 1 hour's worth of checkpoint messages from
news.notice.
zcat OLD/news.notice.1 | fgrep checkpoint | fgrep " 10:"
(If news.daily runs in the 10:00 hour, this only gets a partial or
split report. No easy solution there, unless you cat news.notice also.
Is that too much CPU/disk impact? I figure it isn't worth it: I'll
lose only a couple of sample points.)
- - - - - - - - - - - - - - - - -
Matt suggested e-mail to news@{freenix1000} I hesitate on that....
UCE is still UCE, even if it's for a "good cause". But I know that
the readership of news.software.nntp is not large compared to
the number of news machines. How to reach the others?
Perhaps a particularly formatted control message would do the trick
for many of those systems. :-) (Only kidding, ok?)
cat /etc/passwd is not my style. My shell script fgreps ps output for
$NEWSUSER so that user names are not reported.
Forrest Cavalier, Mib Software
Re: News server survey
Author: Stefan Monnier
Date: Thu, 26 Jun 1997 00:00
Date: Thu, 26 Jun 1997 00:00
31 lines
1805 bytes
1805 bytes
dillon@flea.best.net (Matt Dillon) writes:
> > Disk storage config mount, df, innshellvars
> innshellvars presumes INN. df is useable, but on SUNs
Still. My news-spool doesn't have a whole partition for itself, so df
isn't much use.
> > Number of groups wc $ACTIVE
> These are INN specific
Most news servers I know have an active file. But if they use a sucking feed,
then the size of the active file doesn't tell much about the really active
groups.
> > Reader load (ps -axw; ps -efl) | fgrep $NEWSUSER
> This might work. An 'uptime' would be good too, and a vmstat
No. uptime doesn't tell anything interesting in this context: it's fine
for your own server because you compare "my uptime yesterday" with "my uptime
today", but comparing uptime values of different systems running different
servers is just uninteresting.
It's probably more interesting to look at vmstat, cpu-usage and such.
Also interesting to measure would be "time to execute XXX" where XXX is a
little script that connects to the server a couple times a wanders around a
little, downloading a few (or a lot of) articles.
Stefan
Re: News server survey
Author: Forrest J. Cavalier III
Date: Thu, 03 Jul 1997 00:00
Date: Thu, 03 Jul 1997 00:00
43 lines
2030 bytes
2030 bytes
In article <slrn5rlv9k.83n.I-hate-cyber-promo@news.rediris.es>, I-hate-cyber-promo@man.ac.uk wrote... > >In <5orsp0$7ul$1@flea.best.net>, > Matt Dillon <dillon@flea.best.net> wrote: >[...] >> You have a ready list to send the survey to - you can email it to >> the site admins from the top 1000 list. news@sitename > >But... but... <raises hand> would that be spamming? ;-) No, it would be UCE. I'm not going to do that. (Although I hope their participation rate is high.) I haven't received too many e-mail comments on the survey project. There have been some comments here. I'll probably throw together a WWW form in addition, so all our friends which aren't INN can participate. What I'd like to do is have about 5 beta testers for survey.sh. I have Solaris and Linux. Can anyone volunteer to beta test survey.sh on FreeBSD HP-UX (that'll be interesting) SunOS (not Solaris - I have that) other (not Linux - I have that) All you'll have to do is run a shell script and mail the output to me. Please email to mibsoft@epix.net. I'll e-mail the current script. With luck, everything will be ready to begin the survey early next week. I'll announce here and in news.admin.announce. Maybe I can get links on the freenix page, Dave Barr's page, and at the ISC. Forrest Cavalier, Mib Software, INN customization and consulting
Re: News server survey
Author: A. Deckers
Date: Thu, 03 Jul 1997 00:00
Date: Thu, 03 Jul 1997 00:00
13 lines
935 bytes
935 bytes
In <5orsp0$7ul$1@flea.best.net>, Matt Dillon <dillon@flea.best.net> wrote: [...] > You have a ready list to send the survey to - you can email it to > the site admins from the top 1000 list. news@sitename But... but... <raises hand> would that be spamming? ;-) Alain
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