🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
9 messages
9 total messages Started by Ali Anghaie Tue, 04 Nov 1997 00:00
control.cancel --> /dev/null
#22922
Author: Ali Anghaie
Date: Tue, 04 Nov 1997 00:00
19 lines
977 bytes

Since I don't have to feed my control messages anywhere else... and it
processes them as they come in, can I just link my control/cancel
directory to /dev/null and save the resources?


  - Ali A. (Amir-Ali R. Anghaie)

  - ali@ece.ufl.edu	- ali@hcs.ufl.edu
  - ali@tec.ufl.edu	- ali@inspi.ufl.edu
  - ali@eel.ufl.edu	- ali@afn.org

  - ali@just.about.everywhere.else.too

  { Any opinions herein are not facts :) }


Re: control.cancel --> /dev/null
#22943
Author: Ali Anghaie
Date: Tue, 04 Nov 1997 00:00
25 lines
1379 bytes
Stephan Forseilles (steph@skynet.be) wrote:
: Ali Anghaie wrote:
: > Since I don't have to feed my control messages anywhere else... and it
: > processes them as they come in, can I just link my control/cancel
: > directory to /dev/null and save the resources?
: 
: If you do that I guess INN's gonne get throttling because he cannot
: create the articles files in articles/control/cancel directory.

How 'bout I mv the directory to /dev/null every-so-often... INN should just
remake it...?
-- 

  - Ali A. (Amir-Ali R. Anghaie)

  - ali@ece.ufl.edu	- ali@hcs.ufl.edu
  - ali@tec.ufl.edu	- ali@inspi.ufl.edu
  - ali@eel.ufl.edu	- ali@afn.org

  - ali@just.about.everywhere.else.too

  { Any opinions herein are not facts :) }

Re: control.cancel --> /dev/null
#22969
Author: Another Victim of the Usenet Maf...
Date: Wed, 05 Nov 1997 00:00
40 lines
2493 bytes
On Tue, 4 Nov 1997, Ali Anghaie wrote:

> Since I don't have to feed my control messages anywhere else... and it
> processes them as they come in, can I just link my control/cancel
> directory to /dev/null and save the resources?

    This very thought was pondered by INN pioneer Jason Ferkeltrager
several years back.  The advantages appeared to be many, and late one
night, the Circular File News System (CFNS for short) was born. 
Unfortunately, as is so often the case with all new technologies,
unforseen bugs resulted in such artifacts as corruption of the data being
written to CFNS, although the savings in resources were considerable.
Such an efficient data compression (and fast too!) was hitherto unknown.

    In a tragic twist of fate, while trying to work out the bugs that were
resulting in loss of data, Jason Ferkeltrager perished before his work was
made public, when he inadvertently electrocuted himself in an unfortunate
accident involving a can of Jolt Cola and a powered-on computer.  As a
result, the Circular File News System was relegated to the dreggy barrel
bottom of the dustbin of history, doomed to be forgotten.

    As is too often the case, history repeats itself with an ever-
shortening periodicity, and the Circular File News System has found its
way into the confusingly-similar-named Cyclical News File System (CNFS) as
developed by Scott Fritchie, mentioned briefly in one of the READMEs:

* Uncommented alleged support for a /dev/null RAWPART, suggested by
  Matt Bush <xomox@netlag.com>

    Rumour has it that it works, although the usual chorus of detractors
still allege there to be a loss of data when using the Cyclical News
Circular File Filesystem System.  Guess you can't please everybody.


Barry Bouwsma
volunteer historian


Re: control.cancel --> /dev/null
#22992
Author: Forrest J. Cavalier III
Date: Thu, 06 Nov 1997 00:00
50 lines
2391 bytes
In article <g6sotaa7g2.fsf@daedalus.crosslink.net>, shields@crosslink.net 
wrote...
>
>In article <63pe46$pbq$1@bigred.inka.de>,
>olaf@bigred.inka.de (Olaf Titz) wrote:
>> No, that won't work. But you can do this:
>> 
>>  cd $SPOOL/control; mv cancel cancel.old; rm -rf cancel.old
>> 
>> about once per hour out of crontab.
>
>Sheesh.  The patch I run is pretty ugly, but it doesn't throw effort away.
>

[snip]

One thing for others to note: the patch doesn't allow propagation
of control messages.  (I'm sure Michael is aware of that.)
For some sites that is fine, but the crontab mv cancel method
does allow propagation of *most* control messages to non-backlogged
sites.

There was another "purge control/cancel" which allowed nearly
all control messages to be propagated.

Joe Greco's control.cancel patch is another "solution", which
keeps directories small, and lets all control messages be
propagated, but it has the side effect that nnrpd cannot
access control messages.  Not a big deal.  There is a minor
memory allocation bug in the control.cancel patch which could
cause memory corruption under some sequences right at startup.
I told Joe about it. The fix is simple.

All of these "solutions" are incomplete.  (i.e. have tradeoffs
in breaking something else.)  But one thing is for certain:
you have to do SOMETHING to keep up with a full feed which
includes cancels.

Speaking of which, has anyone thought about modifying the Joe
Greco timer patches to find minimum and maximum ARTwrite times?
The average is probably a lot higher because of the REALLY long
write times in a few huge directories.  Anyone know how much longer
those ARTwrites are?

Forrest J. Cavalier III, Mib Software



Re: control.cancel --> /dev/null
#22995
Author: Michael Shields
Date: Thu, 06 Nov 1997 00:00
19 lines
1607 bytes
In article <3461E381.33F7@monumental.com>,
Todd Romero <todd@monumental.com> wrote:
> Do people really have *that* big of a problem with control.cancel?

Yes.  Measure it.  Hundreds of thousands of files in one directory are
generally not a good idea.

Forrest: I know, my patch doesn't allow cancel propagation -- I've
given up on INN for feeds and only use it on leaf reader machines.  Of
course any sort of quick-expire on control.cancel, including the
popular crontab rm -rf, is going to inhibit cancel propagation to some
extent and hurt your backlogged peers.  If I needed to propagate
cancels using INN I would be sure to use a patch like Joe Greco's that
would let me keep a full set of articles queued.
-- 
Shields, CrossLink.

Re: control.cancel --> /dev/null
#22997
Author: Andrew Gierth
Date: Thu, 06 Nov 1997 00:00
25 lines
1932 bytes
>>>>> "Todd" == Todd Romero <todd@monumental.com> writes:

 Todd> Do people really have *that* big of a problem with
 Todd> control.cancel? I just set the expire to 0 days.  So I never
 Todd> have more that 24hrs worth of control.cancels. Is it space? I
 Todd> cant belive that. In 6 hours....I see only 27megs worth. The
 Todd> only thing I can see being an actual result of moveing or
 Todd> removing the control.cancels manually is creating extra load on
 Todd> the server to proccess all those files.

You should be seeing between 160000 and 260000 cancels per day, which
is at least 40megs in 6 hours. If you're not seeing this many, you
aren't getting them all (and may have tons of uncancelled spam as a
result).

The problem is not the total volume, but the number of directory
entries in control/cancel; the bigger the directory gets, the longer
it takes to create new files in, and one-third of the feed consists
of cancels... work it out for yourself.

-- 
Andrew.

Re: control.cancel --> /dev/null
#22998
Author: Todd Romero
Date: Thu, 06 Nov 1997 00:00
39 lines
1885 bytes
Do people really have *that* big of a problem with control.cancel? I
just set the expire to 0 days.  So I never have more that 24hrs worth of
control.cancels. Is it space? I cant belive that. In 6 hours....I see
only 27megs worth. The only thing I can see being an actual result of
moveing or removing the control.cancels manually is creating extra load
on the server to proccess all those files. 

just my .02
todd


Forrest J. Cavalier III wrote:
> 
> In article <g6sotaa7g2.fsf@daedalus.crosslink.net>, shields@crosslink.net
> wrote...
> >
> >In article <63pe46$pbq$1@bigred.inka.de>,
> >olaf@bigred.inka.de (Olaf Titz) wrote:
> >> No, that won't work. But you can do this:
> >>
> >>  cd $SPOOL/control; mv cancel cancel.old; rm -rf cancel.old
> >>
> >> about once per hour out of crontab.
> >
> >Sheesh.  The patch I run is pretty ugly, but it doesn't throw effort away.
> >

<snip>

> 
> All of these "solutions" are incomplete.  (i.e. have tradeoffs
> in breaking something else.)  But one thing is for certain:
> you have to do SOMETHING to keep up with a full feed which
> includes cancels.

> Forrest J. Cavalier III, Mib Software

Re: control.cancel --> /dev/null
#22999
Author: Michael Shields
Date: Thu, 06 Nov 1997 00:00
58 lines
2312 bytes
In article <63pe46$pbq$1@bigred.inka.de>,
olaf@bigred.inka.de (Olaf Titz) wrote:
> No, that won't work. But you can do this:
> 
>  cd $SPOOL/control; mv cancel cancel.old; rm -rf cancel.old
> 
> about once per hour out of crontab.

Sheesh.  The patch I run is pretty ugly, but it doesn't throw effort away.

diff -u -r1.16 -r1.17
--- art.c	1997/09/09 19:43:42	1.16
+++ art.c	1997/09/09 20:51:15	1.17
@@ -553,6 +553,7 @@
     IOVEC		*end;
     char		bytesbuff[SMBUF];
     int			i;
+    int			reallywrite; /* cheap hack --Shields 1997-09-09 */
 
     if ((p = HeaderFind(Article->Data, "Path", 4)) == NULL
      || p == Article->Data) {
@@ -562,8 +563,11 @@
 	return -1;
     }
 
+    reallywrite = strncmp(name, "control/cancel/", 15);
+
     /* Open the file. */
-    if ((fd = open(name, O_WRONLY | O_CREAT | O_TRUNC, ARTFILE_MODE)) < 0) {
+    if (reallywrite
+	&& (fd = open(name, O_WRONLY | O_CREAT | O_TRUNC, ARTFILE_MODE)) < 0) {
 	if (errno != ENOENT)
 	    IOError(WHEN, errno);
 	return -1;
@@ -630,7 +634,7 @@
     ARTheaders[_bytes].Found = 1;
 
     /* Now do the write. */
-    if (xwritev(fd, iov, vp - iov) < 0) {
+    if (reallywrite && xwritev(fd, iov, vp - iov) < 0) {
 	i = errno;
 	syslog(L_ERROR, "%s cant write %s %m", LogName, name);
 	IOError(WHEN, i);
@@ -642,7 +646,7 @@
 	}
 	return -1;
     }
-    if (close(fd) < 0) {
+    if (reallywrite && close(fd) < 0) {
 	i = errno;
 	syslog(L_ERROR, "%s cant close %s %m", LogName, name);
 	IOError(WHEN, i);

-- 
Shields, CrossLink.

Re: control.cancel --> /dev/null
#23011
Author: James R Grinter
Date: Thu, 06 Nov 1997 00:00
30 lines
2268 bytes
Andrew Gierth <andrew@erlenstar.demon.co.uk> writes:
> You should be seeing between 160000 and 260000 cancels per day, which

> The problem is not the total volume, but the number of directory
> entries in control/cancel; the bigger the directory gets, the longer
> it takes to create new files in, and one-third of the feed consists

Andrew's quite right (and loads of other people appreciate this problem too).

If, as most people are, you're using some variant on UFS (be it 4.4BSD
derived, Sun's FAT FFS) then file creation within 'large' directories
will consume lots of system time.  (UFS's algorithm for locating files
within a directory also fits poorly with the News spool file layout).

I don't believe that ext2fs addresses this issue either - I'm given to
understand it's designers felt it was best addressed by the application.

SGI's XFS does a lot better job, as does NetApp's WAFL (so if you're
using those, don't worry about this), but that's not much help if
you're already committed to your current platform. 

There have already been patches posted for splitting up newsgroup
directories - perhaps these, or a suitable reworking, should now be
incorporated as an option into INN, ready for when you are ready to
start a newsspool from scratch on new equipment.

James.

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