🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
5 messages
5 total messages Started by Karl Kleinpaste Fri, 09 Jan 1998 00:00
Automatic keyword generation for INN 1.7.2
#25056
Author: Karl Kleinpaste
Date: Fri, 09 Jan 1998 00:00
24 lines
1623 bytes
I sent this to James Brister yesterday.  I first did this for 1.5,
sent him a patch, which was integrated into 1.6, but in the confused
parentage of 1.7, the code was lost, while Install.ms still mentioned
it.  James will (presumably) tweak this to go into the next major
release.

It is now slightly less of a CPU pig than it was under the previously-
published patch from 1.5, and it no longer causes cores in the face of
silly problems.  It also now separates with `,' rather than ` '.  This
patch has run for extended periods (more than a month at a time)
without incident; when I finally upgraded to 1.7.2 this week, after
linking innd against GNU regex-0.12, innd was started once and has
been fine since.

Beware bad regex routines (see patch commentary).

Patches in:
<URL:http://www.cs.cmu.edu/~karl/linux/Keywords.patch>
<URL:http://www.cs.cmu.edu/~karl/linux/Gnus.patch>

--karl

Re: Automatic keyword generation for INN 1.7.2
#25083
Author: Forrest J. Cavalier III
Date: Fri, 09 Jan 1998 00:00
46 lines
2444 bytes
emailed and posted

In article <vxkoh1ly4k5.fsf@pocari-sweat.jprc.com>, karl@jprc.com wrote...
>
>I sent this to James Brister yesterday.  I first did this for 1.5,
>sent him a patch, which was integrated into 1.6, but in the confused
>parentage of 1.7, the code was lost, while Install.ms still mentioned
>it.  James will (presumably) tweak this to go into the next major
>release.
>
>It is now slightly less of a CPU pig than it was under the previously-
>published patch from 1.5, and it no longer causes cores in the face of
>silly problems.  It also now separates with `,' rather than ` '.  This
>patch has run for extended periods (more than a month at a time)
>without incident; when I finally upgraded to 1.7.2 this week, after
>linking innd against GNU regex-0.12, innd was started once and has
>been fine since.

[snip]

It is not apparent from looking at the code how much CPU it would
take up, on average.  A lot has been done to improve the efficiency
of the innd loop by removing unnecessary actions, and this adds
something back in....I'd like to know your experience with it....
Can you please comment?  

   Do you run it on all the articles coming in?  In all newsgroups?

   What percentage of articles actually have keywords when they arrive
   vs the ones that need them added?

   What software is using the keyword header now?  Under what situations
   would you recommend an INN site use the keyword generation.

   Do you have any estimate of the CPU load it takes.  mS per article?
   Even though this is not a portable measurement, it would be interesting
   to compare to your typical article per second rates/history/artwrite
   times (if you have them.)

   How does it compare to .pl filter CPU usages?

Forrest


Re: Automatic keyword generation for INN 1.7.2
#25093
Author: Karl Kleinpaste
Date: Sat, 10 Jan 1998 00:00
84 lines
4827 bytes
mibsoft@epix.net (Forrest J. Cavalier III) writes:
> It is not apparent from looking at the code how much CPU it would
> take up, on average.

An acceptable description would be "quite a bit."  It is, after all,
grinding article bodies, including copying the body for the sake of
destructive analysis.  (I would have liked to have used the original
copy, but I cannot do that because overviews are created before
feeding is done, hence I cannot touch the original body.)

> Do you run it on all the articles coming in?  In all newsgroups?

Yes.  My server is a RedHat 5.0 Linux box, PPro, uniprocessor,
128Mbytes, a small RAID0 filesystem (18Gbytes?) in which everything
Usenetish lives, with two feeds, of the general form "Basic8 +
alt/pa/pgh - binaries/wares".  One of my feeds limits incoming
articles to 64Kbytes, the other does not (but will soon, I hope; that
feed is also bleeding binaries which I am trying to have stopped -- we 
are not an ISP, are not in need of keeping the porn-fed crowd happy).

> What percentage of articles actually have keywords when they arrive
> vs the ones that need them added?

Generally speaking, nothing but FAQs has Keywords: present; it is
nearly an otherwise-unused header.  Scan articles in news.*, for
example, and you will see what I mean.  I just did this with a bunch
of my .overview files, and came up with essentially nothing but FAQs:

	cut -f10 .overview | grep -v "Keywords: ,�"

Nonetheless, scorability on keywords is *very* useful; having had the
capability now for a year, I would not again want to use a news server
which doesn't provide keywords in overviews.

A little background: The desire for this capability arose a year ago
in discussion with a co-worker, who protested that attempting to
follow threads in his favorite groups (rec.photo*; he's semi-pro) was
hopeless because of the twin problems of discussion splintering and an
inability to find topics of discussion which would interest him which
don't appear in Subject:.  His example was camera manufacturers'
names' failure to appear in Subject: when it nonetheless figures
prominently in article bodies.  My response was to give him
this...which his chosen newsreader does not yet know how to use. :-)

What we do here at JPRC is information retrieval, image processing,
and machine learning.  This fell under the first of those categories.

> What software is using the keyword header now?  

As far as I know, only my patched Gnus.  Patched Gnus both generates
the header for the user with confirmation, as well as scores on them,
regardless of whether provided by the user in an actual Keywords:
header, or auto-generated by my INN patch.  But any reader which
understands Xref: for scoring can be convinced to understand Keywords:
awfully easily.

> Under what situations would you recommend an INN site use the
> keyword generation.

On reader machines.  This is a reader-centric feature, not needed on
feeders.  With a suitably (caustically) low value for ABSURD, one can
be sure it won't cost anything at all on "large" articles.

> Do you have any estimate of the CPU load it takes.  mS per article?

I did...a year ago, but I seem to have lost that data.  /mumble/  I
had done some blunt grinding of thousands of article insertions, with
and without Keywords:full in overview.fmt.  I don't think I could
recover that particular data without resorting to backup tape.

With my newly-installed 1.7.2 installation, I have the timer patch
included (insync-1.1d version), but I do not yet know how to put the
add'l log entries to use -- so far, all I am getting is a few hundred
"unknown log entries" in the news.daily report.  If I knew where an
updated news.daily was which would grind those entries for me, I could
run a day without Keywords:full, and find the average difference
against a day with.  Pointers, anyone?

> How does it compare to .pl filter CPU usages?

I have never used it, sorry; no data.

Re: Automatic keyword generation for INN 1.7.2
#25233
Author: Dan Foster
Date: Thu, 15 Jan 1998 00:00
38 lines
2099 bytes
-----BEGIN PGP SIGNED MESSAGE-----

In article <vxkvhvlzfic.fsf@pocari-sweat.jprc.com>,
Karl Kleinpaste  <karl@jprc.com> wrote:
>Many thanx to Trevor Fiatal <trevor@corp.home.net> and Matt Magri
><matt@netmeg.net> for their patches to innlog.pl to grind stats off
>the timer patch log entries.  I'm using Matt's, mostly because I like
>the output format better.

Actually, why not use Fabien Tassin's *extremely* handy innreport? I ripped
out innlog.pl and put it in its place a *very* long time ago.

Can't say enough about innreport... can output in HTML, ASCII, supports
graphs/charts, and *much* more. Fabien's done an *excellent* job of watching
for just about every conceivable case (timer stats, error messages, etc).

ftp://ftp.eerie.fr/pub/usenet/innreport/innreport.pl

(Fabien's said in the past to look at the newer, unsupported innreport stuff 
if you want.  Don't recall what's new in them offhand)

Other folks thinks it's good, too... it is a default part of the
standard INN distribution for 1.8 once it is officially released.

- -Dan

-----BEGIN PGP SIGNATURE-----
Version: 2.6.2

iQCVAwUBNL5vJBIzLSiSunCZAQH4xwP+NCtlpHNzw6t2igm3E19pBi/1Azz+gv1X
W4Fnj5Ry68C6COC+P+XrDUqh7Y7qPtbu5gSjQpmIVur3UZ6BieMyP4DfGDDwg7FD
ac2voZBkRaDJu+e54o0y2luEKcfM0LRrFvN7oKRb8pcrw/j75xmzwkAcVLtum2oj
n2ypYCA5U/Y=
=7EHJ
-----END PGP SIGNATURE-----

Re: Automatic keyword generation for INN 1.7.2
#25241
Author: Karl Kleinpaste
Date: Thu, 15 Jan 1998 00:00
68 lines
4060 bytes
mibsoft@epix.net (Forrest J. Cavalier III) writes:
> Do you have any estimate of the CPU load it takes.  mS per article?

Many thanx to Trevor Fiatal <trevor@corp.home.net> and Matt Magri
<matt@netmeg.net> for their patches to innlog.pl to grind stats off
the timer patch log entries.  I'm using Matt's, mostly because I like
the output format better.

I put Matt's updated innlog.pl into my installation 2 days ago.  This
morning, I disabled Keyword:full in overview.fmt for 5 hours and
manually sicced innlog.pl on that time period from
/var/log/news/news.notice.  Below are the timer stats from this
morning's news.daily report (keyword hacking enabled) and the 5-hour
manual grind (keyword hacking disabled).  No, the time periods aren't
the same, but I don't like running without keyword hacking, and a
5-hour sample seemed plenty to get a feel for how things go without
keywords enabled -- average times and percentages should be fine.
________________

With keyword hackery (this morning's news.daily):

INND Timer Statistics
  Key Metrics...
    Percent busy: 74.9% of 24:00:06.085
    Time spent per article...  Time spent per history...
      write:      135 ms (39%)    write:    49 ms (16%)
      crosslink:  102 ms (8%)    lookup:    1 ms (0%)
  The gory details...
                    Avg time   # Times   Total time    Percentage of
  --Code region--   per call   Invoked   spent there   24:00:06.085
      [Idle time]    42.938     504720   6:01:11.536      25.1%
   Article cancel    34.046        280   0:00:09.533       0.0%
  Article control    63.047      30998   0:32:34.325       2.3%
     Article link   102.862      73449   2:05:55.109       8.7%
    Article write   135.359     255273   9:35:53.542      40.0%
     History grep     3.178       8572   0:00:27.240       0.0%
   History lookup     1.893     320818   0:10:07.247       0.7%
     History sync     0.265      51142   0:00:13.543       0.0%
    History write    49.442     279847   3:50:36.240      16.0%
        Site send     0.297     481448   0:02:23.134       0.2%
________________

Without keyword hackery (manual grind from today):

INND Timer Statistics
  Key Metrics...
    Percent busy: 60.3% of 05:00:14.759
    Time spent per article...     Time spent per history...
      write:      106 ms (34%)      write:    43 ms (14%)
      crosslink:   76 ms (7%)       lookup:    0 ms (0%)
  The gory details...
                    Avg time   # Times   Total time    Percentage of
  --Code region--   per call   Invoked   spent there   05:00:14.759
      [Idle time]    58.069     123114   1:59:09.064      39.7%
   Article cancel    23.413         46   0:00:01.077       0.0%
  Article control    45.780       3595   0:02:44.578       0.9%
     Article link    76.786      16704   0:21:22.637       7.1%
    Article write   106.445      57815   1:42:34.100      34.2%
     History grep     2.219       1251   0:00:02.776       0.0%
   History lookup     0.813      61856   0:00:50.271       0.3%
     History sync     0.175      11580   0:00:02.026       0.0%
    History write    43.115      60448   0:43:26.234      14.5%
        Site send     0.413     112343   0:00:46.359       0.3%

--karl

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