Thread View: news.software.nntp
57 messages
57 total messages
Page 2 of 2
Started by Brad Knowles
Fri, 01 Oct 1999 00:00
Page 2 of 2 • 57 total messages
Re: Diablo debugging problems...
Author: Paul Martin
Date: Sat, 09 Oct 1999 00:00
Date: Sat, 09 Oct 1999 00:00
33 lines
2504 bytes
2504 bytes
In article <brad-0710991318130001@brad.techos.skynet.be>, Brad Knowles wrote: >In article <yln1twf21z.fsf@windlord.stanford.edu>, Russ Allbery ><rra@stanford.edu> wrote: > >> You definitely want Stevens. Both Advanced Programming in the Unix >> Environment and both volumes of Unix Network Programming, and TCP/IP >> Illustrated too if you have some spare cash. Fantastic books. > > It's a shame I can't register for them at amazon.com for my upcoming >wedding, but I think my fianc�e would be upset. ;-) I got my copies from Amazon. (Not the TCP/IP books, though. I'll get those when I have a bit more spare cash, I bought the TAOCP set [Knuth] at the same time.) Very useful they are too. Thoughts on Diablo... it uses mmap() extensively internally. Perhaps an optimization would be for the filter interface to receive the filename, offset and length of the article that's to be examined, then passes that info into the filter, which does an mmap(...,PROT_READ,MAP_SHARED,..) with the article (this would require writing a perl module to handle mmap) then mapped to a Perl scalar. That would then provide an environment not unlike INN for a filter. The kernel would (should) mmap the same memory area that diablo holds the article in, and there's very little copying involved. This is straight off the top of my head, and I'm certainly happy to be shot down in flames. -- Paul Martin <pm@zetnet.net> at home, swap dash to dot to email.
Filters and threading (was: Re: Diablo debugging problems...)
Author: Andrew
Date: Sat, 09 Oct 1999 00:00
Date: Sat, 09 Oct 1999 00:00
24 lines
1867 bytes
1867 bytes
In article <87905d6jva.fsf@erlenstar.demon.co.uk>, Andrew Gierth wrote: >>>>>> "Russ" == Russ Allbery <rra@stanford.edu> writes: > > >> Have you ever tried to embed Perl into a threaded program? > > >> So far I know only one person who has, and it's caused him _major_ > >> problems. > > Russ> It shouldn't be a problem provided that you don't try to run > Russ> multiple Perl interpretors at a time. One thread needs to be > Russ> running the interpretor and the rest of the threads need to > Russ> keep their hands off. > > Russ> Is that not your experience? > >No. Nor ours. -- Andrew, Supernews http://www.supernews.com - UK and US individual and corporate NNTP services
Re: Diablo debugging problems...
Author: Andrew Gierth
Date: Sat, 09 Oct 1999 00:00
Date: Sat, 09 Oct 1999 00:00
30 lines
2295 bytes
2295 bytes
>>>>> "Russ" == Russ Allbery <rra@stanford.edu> writes: Russ> My opinion is that the Highwind external filter interface is Russ> the *worst* case for a filter interface; Have you ever tried to embed Perl into a threaded program? So far I know only one person who has, and it's caused him _major_ problems. I have a filter interface (not currently used in any transit code, but used in other contexts) that is based on shared memory and pipes. It allows for a certain degree of pipelining between the server and the filter, and it also allows for a common filter interface for both local-post type filters that might need to modify the headers, and transit filters which merely signal accept/reject(reason). Interfacing to it takes about 8 lines of Perl, which could be moved into a module along with header-parsing etc. if need be; that might allow for more optimisation than I currently use (e.g. eliminating a memory-to-memory copy of the article). At this stage, if I were writing a new server, this is the only style of interface I would consider feasible. If anyone is interested I will write it up and post it. -- Andrew.
Re: Diablo debugging problems...
Author: Andrew Gierth
Date: Sat, 09 Oct 1999 00:00
Date: Sat, 09 Oct 1999 00:00
20 lines
1719 bytes
1719 bytes
>>>>> "Russ" == Russ Allbery <rra@stanford.edu> writes: >> Have you ever tried to embed Perl into a threaded program? >> So far I know only one person who has, and it's caused him _major_ >> problems. Russ> It shouldn't be a problem provided that you don't try to run Russ> multiple Perl interpretors at a time. One thread needs to be Russ> running the interpretor and the rest of the threads need to Russ> keep their hands off. Russ> Is that not your experience? No. -- Andrew.
Re: Diablo debugging problems...
Author: Andrew Gierth
Date: Sun, 10 Oct 1999 00:00
Date: Sun, 10 Oct 1999 00:00
19 lines
2151 bytes
2151 bytes
>>>>> "Russ" == Russ Allbery <rra@stanford.edu> writes: Russ> One idea that occurred to me last night as a solution to the Russ> current problem with getting the headers you want in the filter Russ> would be for the filter to be able to set a variable, say Russ> @inn::headers (yeah, the inn:: prefix should go away if we ever Russ> get a standard filter API, but that's a backwards compatibility Russ> problem that I haven't figured out a good way to solve yet). Russ> Then the linkage code can just pull in that header and only Russ> dump into the hash the specific headers that the filter Russ> requested. Default being the current INN list. That still doesn't do much to address the issue of duplicate headers, nor the various folding/unfolding issues. -- Andrew.
Re: Diablo debugging problems...
Author: Brad Knowles
Date: Mon, 11 Oct 1999 00:00
Date: Mon, 11 Oct 1999 00:00
18 lines
1736 bytes
1736 bytes
In article <87hfk16n7j.fsf@erlenstar.demon.co.uk>, Andrew Gierth
<andrew@erlenstar.demon.co.uk> wrote:
> At this stage, if I were writing a new server, this is the only
> style of interface I would consider feasible.
>
> If anyone is interested I will write it up and post it.
Speaking only for myself, I'd be very interested in seeing this.
--
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
Are you a USENET news server administrator outside of North America or
Western Europe? Would you like a newsfeed from a site in the Freenix
Top 100? If so, please contact me via private e-mail for details.
Page 2 of 2 • 57 total messages
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