Thread View: news.software.nntp
29 messages
29 total messages
Started by pedro
Tue, 17 Jun 1997 00:00
shared memory patch
Author: pedro
Date: Tue, 17 Jun 1997 00:00
Date: Tue, 17 Jun 1997 00:00
7 lines
585 bytes
585 bytes
I heard there is a shared memory patch out some where, which handles active file read-ins more effectively. -- Pedro Aguayo
Re: shared memory patch
Author: James Brister
Date: Tue, 17 Jun 1997 00:00
Date: Tue, 17 Jun 1997 00:00
14 lines
1066 bytes
1066 bytes
dillon@flea.best.net (Matt Dillon) writes: > I was under the impression that the patch was going to become standard > in some later release. I do not know if that has occured yet or not. Yes and yes. James -- James Brister brister@vix.com Internet Software Consortium http://www.isc.org inn@isc.org
Re: shared memory patch
Author: Matt Dillon
Date: Tue, 17 Jun 1997 00:00
Date: Tue, 17 Jun 1997 00:00
19 lines
1068 bytes
1068 bytes
:In article <33A6B41D.3382@iconnet.net>, pedro <pedro@iconnet.net> wrote:
:>I heard there is a shared memory patch out some where, which handles
:>active file read-ins more effectively.
:>--
:>Pedro Aguayo
The original shared readonly mmap() patch for the active file, for
INN 1.5, is in:
http://www.backplane.com/news/
I was under the impression that the patch was going to become standard
in some later release. I do not know if that has occured yet or not.
-Matt
Re: shared memory patch
Author: James Brister
Date: Wed, 18 Jun 1997 00:00
Date: Wed, 18 Jun 1997 00:00
19 lines
1317 bytes
1317 bytes
mibsoft@epix.net (Forrest J. Cavalier III) writes: > >dillon@flea.best.net (Matt Dillon) writes: > > > >> I was under the impression that the patch was going to become standard > >> in some later release. I do not know if that has occured yet or not. > You didn't tell us, so I assume your reply (that I quoted > above) means that it will be in the NEXT release. That's correct. James -- James Brister brister@vix.com Internet Software Consortium http://www.isc.org inn@isc.org
Re: shared memory patch
Author: Forrest J. Cavalier III
Date: Wed, 18 Jun 1997 00:00
Date: Wed, 18 Jun 1997 00:00
33 lines
1682 bytes
1682 bytes
In article <yy3u3ixx849.fsf@velo.pp.vix.com>, brister@vix.com wrote...
>
>dillon@flea.best.net (Matt Dillon) writes:
>
>> I was under the impression that the patch was going to become standard
>> in some later release. I do not know if that has occured yet or not.
>
>Yes and yes.
>
From my Usenet RKT at http://www.mibsoftware.com/userkt/inn/patches/0004.htm
ftp://ftp.isc.org/isc/inn/unoff-patches/nnrpd-mmap-shared-active.patch
13 Kb Tue Feb 04 16:01:00 1997
Type: Resource (nnrpd memory usage)
Symptom: Allows multiple nnrpd's to share read-only active file images.
Applies to: INN-1.5.1/nnrpd/ various
OS: all
Incorporated into 1.5.1: No
Authored: Matt Dillon, 4 Feb 1997
I inspected the patch and the 1.5.1 code and the patch is not in 1.5.1.
James, does this mean that there is a release later than 1.5.1 currently
available? You didn't tell us, so I assume your reply (that I quoted
above) means that it will be in the NEXT release.
Forrest Cavalier, Mib Software, INN customization and consulting
Re: actived
Author: John Payne
Date: Thu, 19 Jun 1997 00:00
Date: Thu, 19 Jun 1997 00:00
16 lines
1154 bytes
1154 bytes
Joe Greco wrote:
> You need to include "udp.o" in your link line (and maybe compile
> "udp.c", which you should be able to find somewhere in the tarball).
Some solutions are soooooo straight forward :-)
Cheers
--
John Payne | VM: JOHN at RTP
IBM Global Services NS | email: john@raleigh.ibm.com
OpenNet Services (EMEA) | Intranet http://w3.irc.ibm.com/jpayne
Re: HPUX10.20 mmap() broken (was Re: shared memory patch)
Author: Joe Greco
Date: Thu, 19 Jun 1997 00:00
Date: Thu, 19 Jun 1997 00:00
19 lines
1337 bytes
1337 bytes
In news.software.nntp article <5oah5p$ev2$1@flood.weeg.uiowa.edu>, douglas-siebert@uiowa.edu wrote: :rodmur@ecst.csuchico.edu (Dale Harris) writes: :>Unfortunately, it appears that mmap() on HPUX 10.20 is badly broken. I :>used the test mentioned at: : :> http://www.xs4all.nl/~johnpc/inn/ : :>and it breaks all over the place. Is there any alternative to HPUX's mmap()? You could try using my "actived" patch instead, which entirely avoids having nnrpd deal with the active file, much less having to mmap it or stick it in shared memory or other baloney. http://www.nntp.sol.net/patches/ ... JG
HPUX10.20 mmap() broken (was Re: shared memory patch)
Author: Dale Harris
Date: Thu, 19 Jun 1997 00:00
Date: Thu, 19 Jun 1997 00:00
29 lines
1583 bytes
1583 bytes
In article <5o6s5r$8ib$1@flea.best.net>, Matt Dillon <dillon@flea.best.net> wrote: >:In article <33A6B41D.3382@iconnet.net>, pedro <pedro@iconnet.net> wrote: >:>I heard there is a shared memory patch out some where, which handles >:>active file read-ins more effectively. >:>-- >:>Pedro Aguayo > > The original shared readonly mmap() patch for the active file, for > INN 1.5, is in: > Unfortunately, it appears that mmap() on HPUX 10.20 is badly broken. I used the test mentioned at: http://www.xs4all.nl/~johnpc/inn/ and it breaks all over the place. Is there any alternative to HPUX's mmap()? -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Dale Harris <rodmur@csuchico.edu> PGP KeyID: E26EC5FD Chico State home of the NCAA Div. II National Baseball Champs! |+|+|+|+|+|+|+|+|+|+|+|+|+|+|+|+|+|+|+|+|+|+|+|+|+|+|+|+|+|+|+|
Re: HPUX10.20 mmap() broken (was Re: shared memory patch)
Author: Doug Siebert
Date: Thu, 19 Jun 1997 00:00
Date: Thu, 19 Jun 1997 00:00
43 lines
2748 bytes
2748 bytes
rodmur@ecst.csuchico.edu (Dale Harris) writes: >Unfortunately, it appears that mmap() on HPUX 10.20 is badly broken. I >used the test mentioned at: > http://www.xs4all.nl/~johnpc/inn/ >and it breaks all over the place. Is there any alternative to HPUX's mmap()? This thing apparently checks to see if mmap() and write() are consistent (i.e., whether or not VM and the buffer cache are merged) They are not on HP-UX 9.x and 10.x, no way around this. You can always hope they get merged in 11.x. Or maybe they'll rewrite INN to not be silly and try to use both mmap() and read()/write() at the same time. It is not all that hard to use setvbuf() and put your stdio buffers in the mmap() space and therefore be able to use stdio functions to write directly into the mmap() memory, thereby getting around this, and speeding up all your I/O to boot. If you feel so strongly about this, maybe you should bug the INN maintainers to make this change and speed things up for everyone, both those who are on systems with merged VM/buffer caches and can take advantage of this mmap patch, as well as those without. I used this to considerably speed up some code I had that dealt with a 512M file. It was a hell of a lot faster and required very little other code modification. You just want to watch that you don't ever actually try to fflush(). You probably want to use fileno() and close the underlying file descriptor and know that when flushes are attempted for whatever reason an ignorable error will be the result. If there are external processes that need to read/write you'll maybe need to toss in msync() calls now and then. I don't know much about how INN is set up, so I don't know if the stuff that is mapped needs to be accessed by other processors that aren't using mmap() to do it. -- Douglas Siebert Director of Computing Facilities douglas-siebert@uiowa.edu Division of Mathematical Sciences, U of Iowa He who lives in a glass house should not invite in he who is without sin.
Re: actived
Author: Joe Greco
Date: Thu, 19 Jun 1997 00:00
Date: Thu, 19 Jun 1997 00:00
31 lines
1646 bytes
1646 bytes
In news.software.nntp article <33A968C6.2C67@raleigh.ibm.com>, John Payne <john@raleigh.ibm.com> wrote: :Joe Greco wrote: :... :> You could try using my "actived" patch instead, which entirely avoids :> having nnrpd deal with the active file, much less having to mmap it :> or stick it in shared memory or other baloney. :> :> http://www.nntp.sol.net/patches/ :> :> ... JG : :Joe :Erm... I managed to get actived compiled up on AIX :(Added #include <sys/select.h> and typedef'd fixpt_t) :but I've come unstuck on: : :ld: 0711-317 ERROR: Undefined symbol: .create_udp_socket :ld: 0711-317 ERROR: Undefined symbol: .connect_udp_socket :ld: 0711-317 ERROR: Undefined symbol: .write_udp :ld: 0711-317 ERROR: Undefined symbol: .read_udp : :I can't find a reference to these in any of my libraries or include :files on either AIX or Linux. Help! You need to include "udp.o" in your link line (and maybe compile "udp.c", which you should be able to find somewhere in the tarball). ... JG
actived
Author: John Payne
Date: Thu, 19 Jun 1997 00:00
Date: Thu, 19 Jun 1997 00:00
32 lines
1687 bytes
1687 bytes
Joe Greco wrote:
...
> You could try using my "actived" patch instead, which entirely avoids
> having nnrpd deal with the active file, much less having to mmap it
> or stick it in shared memory or other baloney.
>
> http://www.nntp.sol.net/patches/
>
> ... JG
Joe
Erm... I managed to get actived compiled up on AIX
(Added #include <sys/select.h> and typedef'd fixpt_t)
but I've come unstuck on:
ld: 0711-317 ERROR: Undefined symbol: .create_udp_socket
ld: 0711-317 ERROR: Undefined symbol: .connect_udp_socket
ld: 0711-317 ERROR: Undefined symbol: .write_udp
ld: 0711-317 ERROR: Undefined symbol: .read_udp
I can't find a reference to these in any of my libraries or include
files on either AIX or Linux. Help!
Cheers John
--
John Payne | VM: JOHN at RTP
IBM Global Services NS | email: john@raleigh.ibm.com
OpenNet Services (EMEA) | Intranet http://w3.irc.ibm.com/jpayne
Re: actived
Author: John Payne
Date: Fri, 20 Jun 1997 00:00
Date: Fri, 20 Jun 1997 00:00
17 lines
1285 bytes
1285 bytes
....
and with the changes I mentioned in the last but one article,
actived compiled with noooo problem at all, and is now running
on my 2 news readers. The resident footprint of nnrpd has shrunk
from 3500K to just 320K... which is a HUGE difference :-)
No problems with it so far... thanks Joe!
Cheers John
--
John Payne | VM: JOHN at RTP
IBM Global Services NS | email: john@raleigh.ibm.com
OpenNet Services (EMEA) | Intranet http://w3.irc.ibm.com/jpayne
Re: actived
Author: Marcus Needham
Date: Fri, 20 Jun 1997 00:00
Date: Fri, 20 Jun 1997 00:00
17 lines
1310 bytes
1310 bytes
In article <5oeh5s$rgk$1@earth.execpc.com>, jgreco@ns.sol.net (Joe Greco) wrote:
..
>Is it working now? Inquiring minds want to know. Anyone who's using it
>and thinks it's {the greatest thing since sliced bread, sorta okay,
>the crummiest bit of code ever written} could drop me a note and let
>me know what you think. :-)
I would INDEED say it is well up there with sliced bread ;-)
The performance overhead seems to be minimal and it slashes
nnrpd memory use to a fraction of what it was on my system.
Thank you.
/// Marcus Needham /// marcus@theriver.com
\\\ VP & Webmaster \\\ The River, Tucson AZ USA, http://www.theriver.com/
Re: actived
Author: Joe Greco
Date: Fri, 20 Jun 1997 00:00
Date: Fri, 20 Jun 1997 00:00
19 lines
1251 bytes
1251 bytes
In news.software.nntp article <33A98953.6EEA@raleigh.ibm.com>, John Payne <john@raleigh.ibm.com> wrote:
:Joe Greco wrote:
:
:> You need to include "udp.o" in your link line (and maybe compile
:> "udp.c", which you should be able to find somewhere in the tarball).
:
:Some solutions are soooooo straight forward :-)
:
:Cheers
Is it working now? Inquiring minds want to know. Anyone who's using it
and thinks it's {the greatest thing since sliced bread, sorta okay,
the crummiest bit of code ever written} could drop me a note and let
me know what you think. :-)
... JG
Re: actived
Author: aos
Date: Wed, 25 Jun 1997 00:00
Date: Wed, 25 Jun 1997 00:00
24 lines
1695 bytes
1695 bytes
paul@yummyspam.wco.com wrote: > Has anyone successfully compiled actived under sparc solaris 2.5.1? Mine > barely gets started before puking on > actived.c: In function `handle': > actived.c:30: `MSG_WAITALL' undeclared (first use this function) Joe Greco and I have kind of been working on a bit of portability together (although I've gotten lazy and not written to Joe in a week or so--sorry Joe), and once I get a nice portable patch setup, I'll send it to Joe for potential inclusion in a future release. I've got it up and running on Solaris 2.4 (Solaris 2.5.1 should make no difference for this) just fine, so if I ever get off my ass and put together a releaseable patch, you can too. :) -- Andrew Smith -- Sysadmin, Insync Internet Services | PGP Fingerprint: ----------------------------------------------------| 2A 50 AE 6D 51 53 18 77 "A lot of people are afraid to listen, because what | F7 6C E9 2E E9 E1 59 2C they hear may make them change." --Gloria Gery | (finger for full key)
Re: actived
Author: paul
Date: Wed, 25 Jun 1997 00:00
Date: Wed, 25 Jun 1997 00:00
16 lines
1100 bytes
1100 bytes
aos@insync.net wrote: > I've got it up and running on Solaris 2.4 (Solaris 2.5.1 should make no > difference for this) just fine, so if I ever get off my ass and put together > a releaseable patch, you can too. :) What's your favorite beer? ;^) -- Paul Theodoropoulos admin@wco.com VP, West Coast Online, Inc. Crre-erivrjrq fghqvrf pbasvez: Gur Avprfg Thl ba gur Vagrearg
Re: actived
Author: paul
Date: Wed, 25 Jun 1997 00:00
Date: Wed, 25 Jun 1997 00:00
33 lines
1725 bytes
1725 bytes
Joe Greco <jgreco@ns.sol.net> wrote:
> In news.software.nntp article <33A98953.6EEA@raleigh.ibm.com>, John Payne <john@raleigh.ibm.com> wrote:
> :Joe Greco wrote:
> :
> :> You need to include "udp.o" in your link line (and maybe compile
> :> "udp.c", which you should be able to find somewhere in the tarball).
> :
> :Some solutions are soooooo straight forward :-)
> :
> :Cheers
> Is it working now? Inquiring minds want to know. Anyone who's using it
> and thinks it's {the greatest thing since sliced bread, sorta okay,
> the crummiest bit of code ever written} could drop me a note and let
> me know what you think. :-)
Has anyone successfully compiled actived under sparc solaris 2.5.1? Mine
barely gets started before puking on
actived.c: In function `handle':
actived.c:30: `MSG_WAITALL' undeclared (first use this function)
But then, I'm expert at making compiles toss cookies. Using gcc 2.7.2,
inn1.5.1.
--
Paul Theodoropoulos admin@wco.com VP, West Coast Online, Inc.
Crre-erivrjrq fghqvrf pbasvez: Gur Avprfg Thl ba gur Vagrearg
Re: actived
Author: aos
Date: Wed, 25 Jun 1997 00:00
Date: Wed, 25 Jun 1997 00:00
16 lines
1337 bytes
1337 bytes
paul@yummyspam.wco.com wrote: > What's your favorite beer? Lest we forget Joe's assistance in this matter. Better make it two beers. I'll attempt to put together a reasonable patch today. I'll make the patch itself available unofficially, and send it to Joe for future inclusion. -- Andrew Smith -- Sysadmin, Insync Internet Services | PGP Fingerprint: ----------------------------------------------------| 2A 50 AE 6D 51 53 18 77 "A lot of people are afraid to listen, because what | F7 6C E9 2E E9 E1 59 2C they hear may make them change." --Gloria Gery | (finger for full key)
Re: actived
Author: aos
Date: Wed, 25 Jun 1997 00:00
Date: Wed, 25 Jun 1997 00:00
24 lines
1858 bytes
1858 bytes
R. Joyner <rjoyner@ais.net> wrote: > It does like to die every so often with an EAGAIN in a fcntl() call, but > I haven't spent much time trying to track that down. Maybe this > afternoon. Chances are this is my bug, not Joe's. I'll have a look and see if I can tell what's happening. At least on my machine here (Solaris 2.4), it's been running for about two weeks without a problem. > fcntl(5, F_SETLK, 0xEFFFF284) Err#11 EAGAIN You haven't said what file is descriptor 5. fcntl will get an EAGAIN if it tries to work on an already-locked file, so it would help if you could tell what file is open as number 5. Methinks this might have something to do with my replacement of the daemon() call with a fork(). -- Andrew Smith -- Sysadmin, Insync Internet Services | PGP Fingerprint: ----------------------------------------------------| 2A 50 AE 6D 51 53 18 77 "A lot of people are afraid to listen, because what | F7 6C E9 2E E9 E1 59 2C they hear may make them change." --Gloria Gery | (finger for full key)
Re: actived
Author: Dan Foster
Date: Wed, 25 Jun 1997 00:00
Date: Wed, 25 Jun 1997 00:00
45 lines
2528 bytes
2528 bytes
In article <5opppm$i2p$1@news.wco.com>, <paul@yummyspam.wco.com> wrote:
>Joe Greco <jgreco@ns.sol.net> wrote:
>> In news.software.nntp article <33A98953.6EEA@raleigh.ibm.com>, John Payne
>><john@raleigh.ibm.com> wrote:
>> :Joe Greco wrote:
>> :
>> Is it working now? Inquiring minds want to know. Anyone who's using it
>> and thinks it's {the greatest thing since sliced bread, sorta okay,
>> the crummiest bit of code ever written} could drop me a note and let
>> me know what you think. :-)
It's the greatest thing since the wheel was invented! ;-)
Works great here! I'm thinking that it might make a nice template for
an hack to use a SQL server for history lookups (which might be more
portable and faster in the long run) rather than using DBZ... and doing the
hack with as little code change to INN/diablo as possible.
Folks - have a question. On SysV boxes, how did you manage to compile
the package? I couldn't find the BSD daemon() call for AIX 4.2.1 (or 4.1.4),
so I just grabbed the daemon() function from FreeBSD 2.2.2's libc source
and added it. ;-) (Works well, but was wondering if there was another way
I was supposed to do it, is all.)
>Has anyone successfully compiled actived under sparc solaris 2.5.1? Mine
>barely gets started before puking on
>
>actived.c: In function `handle':
>actived.c:30: `MSG_WAITALL' undeclared (first use this function)
That's got to do with sockets.
On an AIX 4.1.4 box, it's defined in <sys/socket.h>
Do a grep for MSG_WAITALL in /usr/include/*.h and /usr/include/*/*.h if
you can't find any other documentation on it on your Solaris 2.5.1 box.
Worst case, you might need to also include -lsocket to libs.. (Solaris
is becoming a vague memory for me now.)
-Dan Foster
Internet: dsf@frontiernet.net
Re: actived
Author: R. Joyner
Date: Wed, 25 Jun 1997 00:00
Date: Wed, 25 Jun 1997 00:00
44 lines
2337 bytes
2337 bytes
aos@insync.net wrote: > > paul@yummyspam.wco.com wrote: > > What's your favorite beer? > > Lest we forget Joe's assistance in this matter. Better make it two beers. > > I'll attempt to put together a reasonable patch today. I'll make the patch > itself available unofficially, and send it to Joe for future inclusion. > The port to 2.5.1 wasn't overly pretty, but after a couple glasses of Single-Malt Scotch and the Solaris & BSDi man pages, I got it running. :) It does like to die every so often with an EAGAIN in a fcntl() call, but I haven't spent much time trying to track that down. Maybe this afternoon. If you're reading Joe, here's what it does: time() = 867206072 getpid() = 1812 [1] putmsg(3, 0xEFFFF328, 0xEFFFF31C, 0) = 0 fcntl(5, F_SETLK, 0xEFFFF284) Err#11 EAGAIN lseek(0, 0, SEEK_CUR) = 0 _exit(1) BTW: If you apply the group.c patch to nnrpd, expect hunk 1 of 6 to fail. But don't worry, it's a simple one to fix. /rsj > -- > Andrew Smith -- Sysadmin, Insync Internet Services | PGP Fingerprint: > ----------------------------------------------------| 2A 50 AE 6D 51 53 18 77 > "A lot of people are afraid to listen, because what | F7 6C E9 2E E9 E1 59 2C > they hear may make them change." --Gloria Gery | (finger for full key) -- Reece Joyner Senior Systems Engineer rjoyner@ais.net American Information Systems, Inc. http://www.ais.net
Re: actived
Author: Mark Hittinger
Date: Thu, 26 Jun 1997 00:00
Date: Thu, 26 Jun 1997 00:00
33 lines
2282 bytes
2282 bytes
"R. Joyner" <rjoyner@ais.net> writes: >> > fcntl(5, F_SETLK, 0xEFFFF284) Err#11 EAGAIN >> You haven't said what file is descriptor 5. fcntl will get an EAGAIN if >> it tries to work on an already-locked file, so it would help if you could >> tell what file is open as number 5. Methinks this might have something to >> do with my replacement of the daemon() call with a fork(). >It looks like FD 5 is the active file...I'm going to have to truss it >again to make sure. The man page for fcntl() is a bit vague on which This would make a lot of sense. I tested actived under very heavy load a couple of weeks ago and it eventually hung. I also logged a lot of errors from nnrpd's receiving packets with a sequence id that they were not expecting. This is under Solaris 2.5. It may be that the actived use of udp packets really isn't going to work under load on Solaris. I'm worried about dropped packets under load. Haven't done enough work on it to be sure yet. We are working on a different technique that involves nnrpd mmap'ing the active file and mmap'ing a pre-built hash file (i.e., actived just creates a hash file for the nnrpd's). I also am very appreciative of Joe's work (and anyone else stubborn enough to continue working on inn :-) ). Regards, Mark Hittinger Netcom/Dallas bugs@freebsd.netcom.com
Re: actived
Author: R. Joyner
Date: Thu, 26 Jun 1997 00:00
Date: Thu, 26 Jun 1997 00:00
60 lines
3395 bytes
3395 bytes
aos@insync.net wrote: > > R. Joyner <rjoyner@ais.net> wrote: > > It does like to die every so often with an EAGAIN in a fcntl() call, but > > I haven't spent much time trying to track that down. Maybe this > > afternoon. > > Chances are this is my bug, not Joe's. I'll have a look and see if I can > tell what's happening. At least on my machine here (Solaris 2.4), it's been > running for about two weeks without a problem. > > > fcntl(5, F_SETLK, 0xEFFFF284) Err#11 EAGAIN > > You haven't said what file is descriptor 5. fcntl will get an EAGAIN if > it tries to work on an already-locked file, so it would help if you could > tell what file is open as number 5. Methinks this might have something to > do with my replacement of the daemon() call with a fork(). > It looks like FD 5 is the active file...I'm going to have to truss it again to make sure. The man page for fcntl() is a bit vague on which condition causes the EAGAIN in the first place..looks like I might have multiple options to investigate. Gee..when I ported it, I did the same replacement of daemon() with fork(). I should diff your port against mine and see just how different they are (sounds like they're almost identical..gee..great minds, yadda, yadda.. :) It's strange that my other 2.5.1 box (which runs a test INN server) doesn't seem to suffer from this nearly as much - if at all. That's part of what's making me mad. Identical machines with identical binaries where one works and one cores. *sigh* This is afterall Sun...I should be used to it by now. Finally - for Joe: I now understand way more of this code than I ever set out to when I first wanted to compile this on Solaris...and I must say, the underlying premise is very cool, and the method of implementation is so simple it's scary. Maybe that's why I admire stuff like this. It works, it's simple, and it makes you say "Well..DUH!..why didn't *I* think of this?!" Nice stuff Joe, very nice! When can we expect the next "Nifty Mod" (tm) from Greco's House of Enhancements? :) /rsj > -- > Andrew Smith -- Sysadmin, Insync Internet Services | PGP Fingerprint: > ----------------------------------------------------| 2A 50 AE 6D 51 53 18 77 > "A lot of people are afraid to listen, because what | F7 6C E9 2E E9 E1 59 2C > they hear may make them change." --Gloria Gery | (finger for full key) -- Reece Joyner Senior Systems Engineer rjoyner@ais.net American Information Systems, Inc. http://www.ais.net
Re: actived
Author: Joe Greco
Date: Sat, 28 Jun 1997 00:00
Date: Sat, 28 Jun 1997 00:00
54 lines
2906 bytes
2906 bytes
In news.software.nntp article <5os3pj$ogg$1@node17.cwnet.frontiernet.net>, dsf@node6.frontiernet.net (Dan Foster) wrote:
:>> Is it working now? Inquiring minds want to know. Anyone who's using it
:>> and thinks it's {the greatest thing since sliced bread, sorta okay,
:>> the crummiest bit of code ever written} could drop me a note and let
:>> me know what you think. :-)
:
:It's the greatest thing since the wheel was invented! ;-)
That's pretty impressive.
:Works great here! I'm thinking that it might make a nice template for
:an hack to use a SQL server for history lookups (which might be more
:portable and faster in the long run) rather than using DBZ... and doing the
:hack with as little code change to INN/diablo as possible.
I played with that, actually... didn't have time to get very far, but
the concept is (potentially) sound.
:Folks - have a question. On SysV boxes, how did you manage to compile
:the package? I couldn't find the BSD daemon() call for AIX 4.2.1 (or 4.1.4),
:so I just grabbed the daemon() function from FreeBSD 2.2.2's libc source
:and added it. ;-) (Works well, but was wondering if there was another way
:I was supposed to do it, is all.)
daemon() is a 44ism, obviously, sorry, I didn't originally intend for
this code to be shipped to the world. It should be trivial to throw
together the appropriate changes.. or if you don't mind it not
automatically making itself a daemon, you can remove the call and
simply run "actived &".
:>Has anyone successfully compiled actived under sparc solaris 2.5.1? Mine
:>barely gets started before puking on
:>
:>actived.c: In function `handle':
:>actived.c:30: `MSG_WAITALL' undeclared (first use this function)
:
:That's got to do with sockets.
:
:On an AIX 4.1.4 box, it's defined in <sys/socket.h>
:
:Do a grep for MSG_WAITALL in /usr/include/*.h and /usr/include/*/*.h if
:you can't find any other documentation on it on your Solaris 2.5.1 box.
:
:Worst case, you might need to also include -lsocket to libs.. (Solaris
:is becoming a vague memory for me now.)
I think it was decided that it was safe to do away with this. I just
have a bad habit of trying to code in a paranoid way.
... JG
Re: actived
Author: Joe Greco
Date: Sat, 28 Jun 1997 00:00
Date: Sat, 28 Jun 1997 00:00
45 lines
2780 bytes
2780 bytes
In news.software.nntp article <5ou6lb$1bm@dfw-ixnews1.ix.netcom.com>, bugs@freebsd.netcom.com (Mark Hittinger) wrote: :"R. Joyner" <rjoyner@ais.net> writes: :>> > fcntl(5, F_SETLK, 0xEFFFF284) Err#11 EAGAIN :>> You haven't said what file is descriptor 5. fcntl will get an EAGAIN if :>> it tries to work on an already-locked file, so it would help if you could :>> tell what file is open as number 5. Methinks this might have something to :>> do with my replacement of the daemon() call with a fork(). :>It looks like FD 5 is the active file...I'm going to have to truss it :>again to make sure. The man page for fcntl() is a bit vague on which : :This would make a lot of sense. I tested actived under very heavy load :a couple of weeks ago and it eventually hung. I also logged a lot of :errors from nnrpd's receiving packets with a sequence id that they were :not expecting. I get one or two of those a day. There's some test code in the directory, one of the programs (I think) allows you to bash on actived... I can get it to do well over a thousand requests per second here. The average workload for 150 clients seems to be in the mid to upper double digits... which doesn't really count as very high load. :This is under Solaris 2.5. It may be that the actived use of udp packets :really isn't going to work under load on Solaris. I'm worried about dropped :packets under load. Haven't done enough work on it to be sure yet. : :We are working on a different technique that involves nnrpd mmap'ing the :active file and mmap'ing a pre-built hash file (i.e., actived just creates :a hash file for the nnrpd's). That works too, but I don't know, I just didn't like the technique in general. This also lets me see how much memory I'm _really_ using, one of my many little gripes about mmap-sharing of data. :I also am very appreciative of Joe's work (and anyone else stubborn enough :to continue working on inn :-) ). You seen my control/cancel stuff yet? (That's an olllldddddd patch - but it seems applicable these days). ... JG
Re: actived
Author: Joe Greco
Date: Sat, 28 Jun 1997 00:00
Date: Sat, 28 Jun 1997 00:00
38 lines
2191 bytes
2191 bytes
In news.software.nntp article <33B29529.6C34@ais.net>, rjoyner@ais.net wrote: :Finally - for Joe: Sorry, it's been a bad week, I'm tired and grumpy and haven't had time to catch up on all the stuff going on. I haven't even had time to work on my own little pet projects. :I now understand way more of this code than I ever set out to when I :first wanted to compile this on Solaris...and I must say, the underlying :premise is very cool, and the method of implementation is so simple it's :scary. Maybe that's why I admire stuff like this. It works, it's :simple, and it makes you say "Well..DUH!..why didn't *I* think of :this?!" Yeah, well, I don't usually like adding complexity just for the sake of adding complexity. When something becomes too hard to understand even after a half hour of looking at the code, something is probably wrong. I sometimes have a way of seeing through a problem to the bigger picture... and if I do, I usually try to write some code. :-) :Nice stuff Joe, very nice! Glad you like it, sorry it didn't work out of the box though. :-( :When can we expect the next "Nifty Mod" (tm) from Greco's House of :Enhancements? :) Several years ago, but just recently modernized and posted. :-) See http://www.nntp.sol.net/patches/ for a trinket to help your system if you're suffering cancel bloat. See other recent threads. The main downside is that it breaks NNRP's ability to read control.cancel. Like anyone is even able to do that these days anyways. ... JG
Re: actived
Author: Mark Hittinger
Date: Sat, 28 Jun 1997 00:00
Date: Sat, 28 Jun 1997 00:00
23 lines
1519 bytes
1519 bytes
jgreco@ns.sol.net (Joe Greco) writes: >Several years ago, but just recently modernized and posted. :-) See >http://www.nntp.sol.net/patches/ for a trinket to help your system >if you're suffering cancel bloat. See other recent threads. The main >downside is that it breaks NNRP's ability to read control.cancel. >Like anyone is even able to do that these days anyways. It appears that there is at least one new version of spamming software that monitors cancels and reposts the spam. We've seen this ramp up over the past couple of weeks. Making NNRP unable to see cancel* might be a good thing :-) We really need to put our heads together on this reposting crap. I'm studying joe@zippo's patches right now and they look like a very good start. Regards, Mark Hittinger Netcom/Dallas bugs@freebsd.netcom.com
Re: actived
Author: Matt Dillon
Date: Tue, 01 Jul 1997 00:00
Date: Tue, 01 Jul 1997 00:00
43 lines
2578 bytes
2578 bytes
:In article <5p478u$1s1@dfw-ixnews1.ix.netcom.com>,
:Mark Hittinger <bugs@freebsd.netcom.com> wrote:
:>jgreco@ns.sol.net (Joe Greco) writes:
:>>Several years ago, but just recently modernized and posted. :-) See
:>>http://www.nntp.sol.net/patches/ for a trinket to help your system
:>>if you're suffering cancel bloat. See other recent threads. The main
:>>downside is that it breaks NNRP's ability to read control.cancel.
:>>Like anyone is even able to do that these days anyways.
:>
:>It appears that there is at least one new version of spamming software
:>that monitors cancels and reposts the spam. We've seen this ramp up
:>over the past couple of weeks.
:>
:>Making NNRP unable to see cancel* might be a good thing :-) We really
:>need to put our heads together on this reposting crap. I'm studying
:>joe@zippo's patches right now and they look like a very good start.
:>
:>Regards,
:>
:>Mark Hittinger
:>Netcom/Dallas
:>bugs@freebsd.netcom.com
I think the only real solution is to require a valid end-user unforgeable
NNTP-Posting-Host: header that identifies the source (e.g. IP address of
dynamic PPP dialin) and then have a rate-filter based on that....
then go after the rogue sites rather then try to go after the rogue
end-users. This is the tact that I am taking in the next Diablo release.
It finds between 100,000 and 175,000 spams a day.
The only problem is that, of course, certain legitimate sites which use
NNTP to post articles at a high rate get caught as well. I don't consider
this serious, though, because if the mechanism were to catch on the
legit sites would fix their software. The illigit news *sites* can easily
be removed by pressuring their neighbors or aliasing them (or their
neighbors) out. It's the illigit news *end-users* that are causing
the majority of the problems right now.
-Matt
Re: actived
Author: Brian Murrell
Date: Wed, 02 Jul 1997 00:00
Date: Wed, 02 Jul 1997 00:00
18 lines
1401 bytes
1401 bytes
Mark Hittinger wrote: > > I also logged a lot of > errors from nnrpd's receiving packets with a sequence id that they > were not expecting. Yeah. I tried actived on our server here yesterday. Got a lot of that in my log file. *sigh* b. -- Brian J. Murrell Brian_Murrell@bctel.net BCTel Advanced Communications brian@ilinx.com Vancouver, B.C. brian@wimsey.com 604 454 5279
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