Thread View: news.software.nntp
11 messages
11 total messages
Started by Rahul Dhesi
Tue, 19 Aug 1997 00:00
nocem-on-spool efficiency?
Author: Rahul Dhesi
Date: Tue, 19 Aug 1997 00:00
Date: Tue, 19 Aug 1997 00:00
12 lines
985 bytes
985 bytes
Has anybody done any benchmarks of the efficiency of running ncmspool (nocem-on-spool)? My preliminary observation was that it resulted in poorer machine performance on Sun machiness. I would like to know what others have found. I suspect part of the problem is the interprocess communication overhead between the ncmspcancel program and inn. -- Rahul Dhesi <dhesi@spams.r.us.com>
Re: nocem-on-spool efficiency?
Author: tom minchin
Date: Tue, 19 Aug 1997 00:00
Date: Tue, 19 Aug 1997 00:00
19 lines
1296 bytes
1296 bytes
c.c.eiftj@66.usenet.us.com (Rahul Dhesi) writes: >Has anybody done any benchmarks of the efficiency of running ncmspool >(nocem-on-spool)? My preliminary observation was that it resulted in >poorer machine performance on Sun machiness. I would like to know what >others have found. Occasionally I found that nocem had locked innd while it was doing things, annoying when news.daily came around and couldn't renumber etc. Apart from periods of fairly high load average, it seems to run fine on an 8gig RAID0 partition with no_atime patch. I still need to find an express feed of news.lists.filters, bit pointless getting the spam and the nocem batches in the same feed :) tom@interact.net.au
Re: nocem-on-spool efficiency?
Author: Stephen R. van den Berg
Date: Wed, 20 Aug 1997 00:00
Date: Wed, 20 Aug 1997 00:00
25 lines
1787 bytes
1787 bytes
Rahul Dhesi <c.c.eiftj@66.usenet.us.com> wrote:
>with some minor mods of my own that should have no effect no history file
>handling. The topmost line in the CHANGES file that came with
>ncmspool reads '0.92.3e'. After I started using ncmspool I noticed
>a slight system slowdown.
>Then I tried to improve things by patching ncmspcancel.c to always add
><cancel.msgid> to the history any time it added <msgid>. (The idea
>being to not have to accept a subsequent cancel for the same article,)
>That made things even slower.
Try c-nocem from Olaf. It needed a slight bit of tweaking here to
get going correctly. Once you ditch the logging to /var/log/news/log,
it's blazingly fast and doesn't add much of a load.
And, yes, I patched innlib to wait when doing a reserve, because otherwise
a daily expire run might get skipped.
--
Sincerely, srb@cuci.nl
Stephen R. van den Berg (AKA BuGless).
Our four weapons are: fear, surprise, a ruthless efficiency, an almost
fanatical devotion to the Pope... and nice red uniforms.
Re: nocem-on-spool efficiency?
Author: Rahul Dhesi
Date: Wed, 20 Aug 1997 00:00
Date: Wed, 20 Aug 1997 00:00
31 lines
1905 bytes
1905 bytes
In <5vjb6f.t1r.hgoldste@bbs.mpcs.com> hgoldste@mpcs.com (Howard Goldstein) writes: > : I suspect part of the problem is the interprocess communication overhead > : between the ncmspcancel program and inn. >Which release? 3fBeta1 introduced history lookup and unlinking >outside of INN, minimizing IPC to the greatest extent possible given >dbz's lack of multiprocess write support (SC_ADDHISTing being the only >required IPC). But...there is a *tremendous* inefficiency introduced >in using it with an unpatched INN by virtue of the need to work around >the API's willingness to addhist when paused/throttled. I am using innd as downloaded from http://www.insync.net/~aos/inn.html with some minor mods of my own that should have no effect no history file handling. The topmost line in the CHANGES file that came with ncmspool reads '0.92.3e'. After I started using ncmspool I noticed a slight system slowdown. Then I tried to improve things by patching ncmspcancel.c to always add <cancel.msgid> to the history any time it added <msgid>. (The idea being to not have to accept a subsequent cancel for the same article,) That made things even slower. -- Rahul Dhesi <dhesi@spams.r.us.com>
Re: nocem-on-spool efficiency?
Author: Don Lewis
Date: Thu, 21 Aug 1997 00:00
Date: Thu, 21 Aug 1997 00:00
19 lines
1419 bytes
1419 bytes
In article <5tebu9$3oo$1@samba.rahul.net>, Rahul Dhesi <c.c.eiftj@66.usenet.us.com> wrote: > >Then I tried to improve things by patching ncmspcancel.c to always add ><cancel.msgid> to the history any time it added <msgid>. (The idea >being to not have to accept a subsequent cancel for the same article,) >That made things even slower. This adds an extra history lookup if the cancel has already been received. Also, unless you're a leaf, you'll impair the propagation of cancels to those sites that rely on cancels and don't process NoCeM messages. -- Don "Truck" Lewis TDK Semiconductor Internet: Don.Lewis@tsc.tdk.com 138 New Mohawk Road Phone: +1 916 478-8284 FAX: +1 916 478-8251 Nevada City, CA 95959
Re: nocem-on-spool efficiency?
Author: Don Lewis
Date: Sat, 23 Aug 1997 00:00
Date: Sat, 23 Aug 1997 00:00
19 lines
1368 bytes
1368 bytes
In article <5tjssg$qbt$1@bigred.inka.de>, Olaf Titz <olaf@bigred.inka.de> wrote: >Don Lewis <gdonl@tsc.tdk.com> wrote: >> But then you don't allow the news administrator to do >> ctlinnd throttle "I want to add some history entries while innd isn't running" >> ctlinnd addhist ...> ... >> ctlinnd addhist ... > >This isn't allowed for newgroup as well. ;-) It's allowed, it just shreds your active file ;-) Hmn, has anyone ever tracked down the bug that causes this? -- Don "Truck" Lewis TDK Semiconductor Internet: Don.Lewis@tsc.tdk.com 138 New Mohawk Road Phone: +1 916 478-8284 FAX: +1 916 478-8251 Nevada City, CA 95959
Re: nocem-on-spool efficiency?
Author: Stephen R. van den Berg
Date: Sat, 23 Aug 1997 00:00
Date: Sat, 23 Aug 1997 00:00
86 lines
3706 bytes
3706 bytes
Olaf Titz <olaf@bigred.inka.de> wrote:
>Stephen R. van den Berg <srb@zeus.fw.cuci.nl> wrote:
>> Try c-nocem from Olaf. It needed a slight bit of tweaking here to
>> get going correctly.
>What was wrong?
Mostly some parameterisations that you overlooked.
Here's the raw diff (before you ask, this is a machine dedicated to news,
it does not have any regular user accounts on it):
diff -U 2 -r -d --horizon-lines=3 -u c-nocem/Makefile ../c-nocem/Makefile
--- c-nocem/Makefile Tue Aug 5 18:05:00 1997
+++ ../c-nocem/Makefile Fri Aug 8 21:28:32 1997
@@ -1,13 +1,13 @@
HISTFILE=/var/lib/news/history
-NEWSARTS=/var/spool/news
+NEWSARTS=/news
BINDIR=/var/lib/news/localbin
-INCLUDES=-I/var/tmp/inn/include
-LIBS=-L/var/tmp/inn -linn
+INCLUDES=-I/var/src/inn-1.6BuGless/include
+LIBS=-L/var/src/inn-1.6BuGless -linn
CC=gcc -pipe
-COPTS=-Wall -pedantic -O3
+COPTS=-Wall -pedantic -O2 -malign-jumps=2
INSTALL=install
diff -U 2 -r -d --horizon-lines=3 -u c-nocem/c-nocem ../c-nocem/c-nocem
--- c-nocem/c-nocem Wed Aug 6 01:08:00 1997
+++ ../c-nocem/c-nocem Thu Aug 21 11:06:14 1997
@@ -24,17 +24,17 @@
$newsctl="/var/lib/news";
-$newsarts="/var/spool/news";
+$newsarts="/news";
$pubring="$newsctl/ncmring.pgp";
-$perm="$newsctl/ncmperm";
-$groups="$newsctl/ncmgroups";
-$tmp="$newsctl/tmp"; # create this directory, do not use world writable /tmp
+$perm="/etc/news/ncmperm";
+$groups="/etc/news/ncmgroups";
+$tmp="/tmp"; # create this directory, do not use world writable /tmp
$batchfile="$tmp/noc.batch";
-$ENV{'PATH'}="/bin:/usr/local/bin:/usr/bin:$newsctl/bin:$newsctl/localbin";
+$ENV{'PATH'}="/bin:/usr/local/bin:/usr/bin:/usr/sbin:/usr/lib/news/bin:$newsctl/localbin";
$ENV{'PGPPATH'}="$newsctl/.pgp";
# ----------------------------------------------------------------------------
-$pgpargs="+batchmode +language=en +verbose=1 +pubring=$pubring";
+$pgpargs="+batchmode +language=en +verbose=1";
$ID=~/Id:\s+(\S+\s+\S+\s+\S+)/ && ($ID=$1);
chdir $newsarts || die "chdir $newsarts: $!";
@@ -162,5 +162,6 @@
$SIG{"TERM"}="finish";
$SIG{"INT"}="finish";
- open(C, "$groupcheck|fastcancel -lci -f '$lf' >>$newsctl/log")
+ #open(C, "$groupcheck|fastcancel -l -f '$lf' >>/var/log/news/log")
+ open(C, "$groupcheck|fastcancel -l -f '$lf' >/dev/null")
|| die "invoke fastcancel: $!";
}
diff -U 2 -r -d --horizon-lines=3 -u c-nocem/fastcancel.c ../c-nocem/fastcancel.c
--- c-nocem/fastcancel.c Wed Aug 6 01:01:00 1997
+++ ../c-nocem/fastcancel.c Wed Aug 20 02:35:28 1997
@@ -225,5 +225,5 @@
if (l) {
openlog("fastcancel", LOG_NDELAY, LOG_NEWS);
- syslog(LOG_INFO, "deleted %d arts %d files, added %d arts",
+ syslog(LOG_NOTICE, "deleted %d arts %d files, added %d arts",
sdela, sdelf, sadda);
}
--
Sincerely, srb@cuci.nl
Stephen R. van den Berg (AKA BuGless).
"ICMP: The protocol that goes PING!"
Re: nocem-on-spool efficiency?
Author: Don Lewis
Date: Sat, 23 Aug 1997 00:00
Date: Sat, 23 Aug 1997 00:00
46 lines
2937 bytes
2937 bytes
In article <5tjti6$qo4$1@bigred.inka.de>, Olaf Titz <olaf@bigred.inka.de> wrote: >Don Lewis <gdonl@tsc.tdk.com> wrote: >> more extensive changes. First I would add a cancel style interface >> to innd that ncmspool could use. It would only need to do one history >> lookup to decide whether to remove the article or add the history file >> entry. > >Since NoCeM cancels come bulkwise, this would need an interface that >scales well to a large number of cancels (as opposed to the datagram >socket which is designed for "one at a time"). How about after validating the NoCeM message and filtering out all the Message-IDs for groups not in the active file, wrap the remaining Message-IDs in a special control message that is not accepted from outside and is never propagated, post the message, and let innd process its contents. This scheme has the advantage of getting the locking correct. BTW, one good reason for batching this up is that if your server is busy enough and you've got enough incoming feeds, you'll fall behind on NoCeM processing since they'll be arriving faster than you can process them since you can only do one addhist per turn of the innd select loop. >> Also when an article is removed either by a cancel message or a NoCeM, >> either the history entry would be flagged so that a second unlink() >> isn't attempted, or the file fields in the history entry should be >> cleared. In the former case, expire would add the file names to the > >You can't easily change an existing history entry on the fly. At most >you can blank out the file fields, but I'm not sure if this could >break other things that read the history. Adding the space for a flag field would probably make it necessary to make changes in a number of places (even if appended to the existing entry?). Once added, it should be pretty painless to update the flag. Various bits of code would have to be examined for problems if the file names were blanked. I think the performance gains would be worth it, though. -- Don "Truck" Lewis TDK Semiconductor Internet: Don.Lewis@tsc.tdk.com 138 New Mohawk Road Phone: +1 916 478-8284 FAX: +1 916 478-8251 Nevada City, CA 95959
Re: nocem-on-spool efficiency?
Author: Stephen R. van den Berg
Date: Sat, 23 Aug 1997 00:00
Date: Sat, 23 Aug 1997 00:00
27 lines
1861 bytes
1861 bytes
Rahul Dhesi <c.c.eiftj@66.usenet.us.com> wrote:
>I am tempted to write a version of nocem-on-spool that links with the
>dbz library, simply does a "ctlinnd pause nocem.<mypid>", does the dbz
>lookups and history adds in a batch, and then unpauses inn.
You've just described c-nocem. It exists. It works (as advertised).
This is what shows up in my news.notices log:
Aug 23 17:23:01 heracles innd: SERVER paused processing NoCeM [1247]
Aug 23 17:23:03 heracles fastcancel: deleted 84 arts 17 files, added 214 arts
Aug 23 17:23:03 heracles innd: SERVER running
Aug 23 17:32:30 heracles innd: SERVER paused processing NoCeM [1506]
Aug 23 17:32:32 heracles fastcancel: deleted 41 arts 1 files, added 298 arts
Aug 23 17:32:32 heracles innd: SERVER running
Aug 23 17:36:41 heracles innd: SERVER paused processing NoCeM [1702]
Aug 23 17:36:46 heracles fastcancel: deleted 255 arts 13 files, added 506 arts
Aug 23 17:36:47 heracles innd: SERVER running
--
Sincerely, srb@cuci.nl
Stephen R. van den Berg (AKA BuGless).
"ICMP: The protocol that goes PING!"
Re: nocem-on-spool efficiency?
Author: Rahul Dhesi
Date: Sat, 23 Aug 1997 00:00
Date: Sat, 23 Aug 1997 00:00
16 lines
1145 bytes
1145 bytes
In <5tn24i$jcr$1@bigred.inka.de> olaf@bigred.inka.de (Olaf Titz) writes: >Advantages: >- It has been done already. <URL:http://www.inka.de/~bigred/sw/c-nocem.txt> Cool! I will try it. I think I was misled by the fact that this package is listed at http://www.cm.org/ as being for C-News. So I did not take a second look. -- Rahul Dhesi <dhesi@spams.r.us.com>
Re: nocem-on-spool efficiency?
Author: Richard Michael Todd
Date: Sun, 24 Aug 1997 00:00
Date: Sun, 24 Aug 1997 00:00
41 lines
2579 bytes
2579 bytes
olaf@bigred.inka.de (Olaf Titz) writes: > I agree that it would be nice to have this kind of reliable interface > inside of innd, but this would require some wuite substantial changes. Changes, yeah, but not 'substantial' changes, I'd say. See below. > (Like the datagram socket interface which is not suited for large > batches of commands...) Yeah. I've been playing with some modifications to the ncmspcancel software along those lines (with corresponding modifications in innd). The basic idea is to add a new ctlinnd command 'cancellist', which accepts as argument a filename containing a list of msgids to be cancelled. Then what ncmspcancel does for each msgid is this: 1) Look it up in history. 2) If the msgid is in history and there are article names listed, go ahead and remove those articles. If the msgid is in history and there are no article names listed (a cancel for the message arrived before the message did), just skip this msgid and go on. If the msgid is not in history, add it to a list of msgids to be canceled. 3) Every time the list of msgids gets to be a certain length (I picked 100), write the list out to a file and do ctlinnd cancellist on that file. (Actually it does the appropriate inndcomm.c library call instead of forking ctlinnd, for obvious efficiency reasons). The reason for splitting the msgids to be canceled in batches of 100 before feeding them to innd is to have the canceling not monopolize innd; trying to cancel a whole big NoCeM message worth of messages at once caused unacceptably large delays in innd response times. If anyone's interested in my patches, let me know and I'll put them up for ftp or make them otherwise available.
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