Thread View: news.software.nntp
15 messages
15 total messages
Started by Scott Weikart
Tue, 29 Jun 1999 00:00
Re: News server architecture (was: Submitting to Freenix)
Author: Scott Weikart
Date: Tue, 29 Jun 1999 00:00
Date: Tue, 29 Jun 1999 00:00
20 lines
1346 bytes
1346 bytes
>In article <1rzp1jyzlk.fsf@haey.ifi.uio.no>,
>Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:
>: Exactly why is mmap() the wrong interface to use?
>
>Portability.
Has anyone considered using the Memory Pool library in Berkeley DB? Maybe you
could let those folks solve the portability problems!
-scott
=============================================================================
Memory Pool
The memory pool subsystem is the general-purpose shared
memory buffer pool used by DB. This module is useful
outside of the DB package for processes that require
page-oriented, cached, shared file access. See
db_mpool(3) (DbMpool(3) and DbMpoolFile(3)) for more
information.
Re: News server architecture (was: Submitting to Freenix)
Author: Mark Hittinger
Date: Wed, 30 Jun 1999 00:00
Date: Wed, 30 Jun 1999 00:00
16 lines
1359 bytes
1359 bytes
We need to thank everybody _still_ working on INN, even if we don't agree with a particular direction. Source code! Getting news to _GO_ has often involved breaking the rules to gain desired performance increase. 2.X has needed major overview performance improvement for some time, at least Clayton spent the sweat to get his code out of the drawing board dungeon and onto the net. For those of you who have trouble with OV3 on your platform, did the overview prior to OV3 work all that great on your platform? Later Mark Hittinger Mindspring/Netcom/Dallas bugs@freebsd.netcom.com
Re: News server architecture (was: Submitting to Freenix)
Author: T. William Wells
Date: Wed, 30 Jun 1999 00:00
Date: Wed, 30 Jun 1999 00:00
42 lines
2841 bytes
2841 bytes
In article <930758992-1873099828-1@dp-news.maxwell.syr.edu>, Chris Sedore <cmsedore@maxwell.syr.edu> wrote: : I'm not at all involved in INN development (other than as an interested : observer), but I'm not sure that it makes sense to argue that the limited : development time that is carved out for INN should be invested in making it : work on broken or out of date OS's. Your concept of "broken" or "out of date" is not necessarily mine. Or many other peoples'. So, are you arguing that my concept is invalid? If you are, by what standard? If you aren't, why should I pay attention to your argument? : If people want to pay (with money or : their own time) to have broken OS's supported, fine, but making the argument : that they should be supported because they exist or because people don't : want to change to a newer version of an OS or a better developed OS is to : argue that the generous developers working on INN are (or should be) obliged : to spend time on something that may not be interesting or relevant for them. <sarcasm> INN should, like any free software, run ONLY on the developer's machine(s) and everyone else should invest the time, energy, and money in porting it to their own platform. Everyone who says that INN should run on any software that the developer hasn't made it run on is nothing but a freeloader who should be told to get lost, often and loudly. </sarcasm> In any case, portable programming makes for *BETTER* programming. Abstracting the interface, designing for the (reasonable) least common denominator, all result in more easily debugged and maintainable code and generally are faster to develop -- and are more easily adapted to new and improved system features as they become available. : To put it in (example) concrete terms, would you rather have a faster : overview in 2.3 on systems with a working mmap or the same overview running : on many platforms? That's a false dichotomy, so no need to argue with it.
Re: News server architecture (was: Submitting to Freenix)
Author: Chris Sedore
Date: Wed, 30 Jun 1999 00:00
Date: Wed, 30 Jun 1999 00:00
64 lines
3614 bytes
3614 bytes
T. William Wells wrote in message <7lddu3$12d4$1@twwells.com>... >In article <APC&1'0'7b16ece5'ac8@igc.apc.org>, >Scott Weikart <scott@igc.apc.org> wrote: >: >In article <1rzp1jyzlk.fsf@haey.ifi.uio.no>, >: >Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote: >: >: Exactly why is mmap() the wrong interface to use? >: > >: >Portability. >: >: Has anyone considered using the Memory Pool library in Berkeley DB? Maybe you >: could let those folks solve the portability problems! > >Unless it *permits* the use of mmap while not *requiring* it, it >doesn't address the problem. > >Mmap is a nice idea, in that it allows a process access to disk >without having to spend extra CPU cycles on transferring data to >and from kernel space and possibly also saving transfers to and >from stdio buffers. > >The problem with mmap is that many systems do not support it and >that many that do support it have broken implementations. > >So, portable software which can profit from mmap should use it -- >and have a fallback for those situations where mmap is not >desirable or usable. I'd like to add another factor to this conversation. While I agree that in a utopian world, INN and other software would run on every possible platform, this isn't a utopian world. The fact is that INN (and lots of other free software) is developed mostly by people as an interest or a hobby, or for other personal or professional reasons; not because they are paid to do it. I'm not at all involved in INN development (other than as an interested observer), but I'm not sure that it makes sense to argue that the limited development time that is carved out for INN should be invested in making it work on broken or out of date OS's. If people want to pay (with money or their own time) to have broken OS's supported, fine, but making the argument that they should be supported because they exist or because people don't want to change to a newer version of an OS or a better developed OS is to argue that the generous developers working on INN are (or should be) obliged to spend time on something that may not be interesting or relevant for them. There is cost in deployment, either the developers in making it portable to many platforms, or the users in doing the work or paying the money in upgrading or switching OS's/platforms. In this world, developer time is more scarce and more valuable, IMHO, and should be carefully utilized. To put it in (example) concrete terms, would you rather have a faster overview in 2.3 on systems with a working mmap or the same overview running on many platforms? Assuming limited resources, these kinds of choices will have to be made. I don't speak for INN developers at all, so this isn't an official position of any group, individual, entity, etc. Just pointing out some of the context in which free software, like INN, is developed. -Chris
Re: News server architecture (was: Submitting to Freenix)
Author: Chris Sedore
Date: Wed, 30 Jun 1999 00:00
Date: Wed, 30 Jun 1999 00:00
114 lines
6469 bytes
6469 bytes
T. William Wells wrote in message <7leep5$2gfv$1@twwells.com>... >In article <930758992-1873099828-1@dp-news.maxwell.syr.edu>, >Chris Sedore <cmsedore@maxwell.syr.edu> wrote: >: I'm not at all involved in INN development (other than as an interested >: observer), but I'm not sure that it makes sense to argue that the limited >: development time that is carved out for INN should be invested in making it >: work on broken or out of date OS's. > >Your concept of "broken" or "out of date" is not necessarily mine. >Or many other peoples'. So, are you arguing that my concept is >invalid? If you are, by what standard? If you aren't, why should I >pay attention to your argument? I don't really care whether you pay attention to my argument or not. Nor do I care what other peoples concepts are. I'm not sure that I have a concept of what is broken or out of date. The only reason I entered this conversation (and I'm already sorry I did) is to point out that resource limitations need to be recognized. We can go on and on about how things should be, what the best design is, etc. Once it gets to be time to write the code, there are limited resources. Continuing to pedantically argue that these resources should be applied to reach that best case in every area means that progress will be so slow as to be irrelevant to the progress of the software on the Internet. Diablo is case and point here. I doubt Matt would have bothered to write diablo if INN had reached optimal performance with total portability. The fact of the matter is that the resources were not there to do it. IMHO, the resources aren't there to fulfill everyone's wants in this area. >: If people want to pay (with money or >: their own time) to have broken OS's supported, fine, but making the argument >: that they should be supported because they exist or because people don't >: want to change to a newer version of an OS or a better developed OS is to >: argue that the generous developers working on INN are (or should be) obliged >: to spend time on something that may not be interesting or relevant for them. > ><sarcasm> >INN should, like any free software, run ONLY on the developer's >machine(s) and everyone else should invest the time, energy, and >money in porting it to their own platform. Everyone who says that >INN should run on any software that the developer hasn't made it >run on is nothing but a freeloader who should be told to get lost, >often and loudly. ></sarcasm> <sarcasm> The developers of INN, and other free software, should spend their time ensuring that the software will run on every OS and platform because this is how it should be. Anyone who says that they should invest their time in adding features or improving performance should be told to get lost, often and loudly. </sarcasm> >In any case, portable programming makes for *BETTER* programming. >Abstracting the interface, designing for the (reasonable) least >common denominator, all result in more easily debugged and >maintainable code and generally are faster to develop -- and are >more easily adapted to new and improved system features as they >become available. My standard for what a reasonable least common denominator and yours are different. Why should I pay attention to yours? Portable programming is harder programming. You've got to deal with quirks of implementations, bloating of the codebase because of abstractions that exist because of system differences rather than thoughtful analysis of the problem you're trying to solve. That's not to say that it shouldn't be done, but it is to say that how you define your "least common denominator" is a significant factor in the amount of work involved and the number of abstractions that exist merely to make portability more convenient. Further, the semantics of features are different on different OS's. Designing to take advantage of threads for network and disk io on NT, Solaris, and FreeBSD is not trivial, and getting maximal performance from each of these through abstraction is not easy either. I like abstraction. I've tried (with some success) to write code that would run on both NT and Unix (or even FreeBSD and Solaris). I find that I spend a lot of time worrying about things that aren't "impure" or bad programming in the first place, just different. I could abstract them, but ultimately the only real reason to do so is to make it run in more than one place--this makes the code larger, more complicated, harder to debug, and takes away from time that I could spend optimizing performance on a single platform or making other parts of the application logic more pure. Most of the time, my interest is not in doing so. If your interest is, step up and do it--I have no quibble with its laudability or nobility. Just don't tell me it would be better if I did it another way without having more respect for the time and interest required to pursue that other way. >: To put it in (example) concrete terms, would you rather have a faster >: overview in 2.3 on systems with a working mmap or the same overview running >: on many platforms? > >That's a false dichotomy, so no need to argue with it. It's only a false dichotomy if you're unwilling to recognize the reality that limited resources are at play here. The simple fact is that in the case of overview, making it faster _and_ functional with or without mmap requires more resources than making it faster with mmap. The fact that resources are limited means that having it work both ways will make some other things take longer to get done or never get done. -Chris
Re: News server architecture (was: Submitting to Freenix)
Author: T. William Wells
Date: Wed, 30 Jun 1999 00:00
Date: Wed, 30 Jun 1999 00:00
27 lines
1777 bytes
1777 bytes
In article <APC&1'0'7b16ece5'ac8@igc.apc.org>, Scott Weikart <scott@igc.apc.org> wrote: : >In article <1rzp1jyzlk.fsf@haey.ifi.uio.no>, : >Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote: : >: Exactly why is mmap() the wrong interface to use? : > : >Portability. : : Has anyone considered using the Memory Pool library in Berkeley DB? Maybe you : could let those folks solve the portability problems! Unless it *permits* the use of mmap while not *requiring* it, it doesn't address the problem. Mmap is a nice idea, in that it allows a process access to disk without having to spend extra CPU cycles on transferring data to and from kernel space and possibly also saving transfers to and from stdio buffers. The problem with mmap is that many systems do not support it and that many that do support it have broken implementations. So, portable software which can profit from mmap should use it -- and have a fallback for those situations where mmap is not desirable or usable.
Re: News server architecture (was: Submitting to Freenix)
Author: Joe Greco
Date: Thu, 01 Jul 1999 00:00
Date: Thu, 01 Jul 1999 00:00
73 lines
4619 bytes
4619 bytes
In news.software.nntp article <7leep5$2gfv$1@twwells.com>, bill@twwells.com (T. William Wells) wrote: :In article <930758992-1873099828-1@dp-news.maxwell.syr.edu>, :Chris Sedore <cmsedore@maxwell.syr.edu> wrote: :: I'm not at all involved in INN development (other than as an interested :: observer), but I'm not sure that it makes sense to argue that the limited :: development time that is carved out for INN should be invested in making it :: work on broken or out of date OS's. : :Your concept of "broken" or "out of date" is not necessarily mine. :Or many other peoples'. So, are you arguing that my concept is :invalid? If you are, by what standard? If you aren't, why should I :pay attention to your argument? : :: If people want to pay (with money or :: their own time) to have broken OS's supported, fine, but making the argument :: that they should be supported because they exist or because people don't :: want to change to a newer version of an OS or a better developed OS is to :: argue that the generous developers working on INN are (or should be) obliged :: to spend time on something that may not be interesting or relevant for them. : :<sarcasm> :INN should, like any free software, run ONLY on the developer's :machine(s) and everyone else should invest the time, energy, and :money in porting it to their own platform. Everyone who says that :INN should run on any software that the developer hasn't made it :run on is nothing but a freeloader who should be told to get lost, :often and loudly. :</sarcasm> : :In any case, portable programming makes for *BETTER* programming. :Abstracting the interface, designing for the (reasonable) least :common denominator, all result in more easily debugged and :maintainable code and generally are faster to develop -- and are :more easily adapted to new and improved system features as they :become available. Fantastic. Submit the patches and I'm sure people will be pleased. As someone who has made various minor contributions to the community from time to time, I think I resent your implication that it is the author's _responsibility_ to make sure that the code conforms to your preconceived notions of what platforms it should run on. When I wrote, for example, innd-timer, and it failed to work (or work efficiently) on various platforms, I did not feel obligated to try to resolve the problems. Linux, I guess, accesses the hardware clock or something equally high-cost and goofy to do a system time call. Was I supposed to fix Linux? Redesign my code to try to do timekeeping in some other way? Or was the patch useful and beneficial anyways? I've heard people praise the concept time and time again. The people who are doing development are often doing it to fix some problem they have. While I am not advocating embracing poorly written code, on the other hand I do feel that well-written code that may not be completely portable is better than nothing at all. You can complain until you are blue in the face that mmap() is not a portable function, and I can certainly agree from having seen various implementations that it isn't. However, until somebody with a broken mmap() comes forward to either work around the bugs or provide an alternative, I just do not see it as being reasonable for you to demand that the code not use mmap(). It is a function available on every contemporary UNIX that I am aware of, and is portable among that set of systems. Otherwise, we get into the slippery slope of deciding where to draw that line... do we support systems that lack a select() call, for example? I got one around here, somewhere. I demand that INN be made select()-free. :-) "Boy that grey area sure gets big fast," ... JG
Re: News server architecture (was: Submitting to Freenix)
Author: T. William Wells
Date: Thu, 01 Jul 1999 00:00
Date: Thu, 01 Jul 1999 00:00
15 lines
1394 bytes
1394 bytes
In article <7lejdu$30r@dfw-ixnews7.ix.netcom.com>, Mark Hittinger <bugs@freebsd.netcom.com> wrote: : We need to thank everybody _still_ working on INN, even if we don't agree with : a particular direction. Agreed.... : For those of you who have trouble with OV3 on your platform, did the overview : prior to OV3 work all that great on your platform? I never had any real problem with the 1.x overview, once I did some minor mods (to cache open file descriptors) to overchan and ran it independently of innd instead of as a channel feed.
Re: News server architecture (was: Submitting to Freenix)
Author: T. William Wells
Date: Thu, 01 Jul 1999 00:00
Date: Thu, 01 Jul 1999 00:00
22 lines
1849 bytes
1849 bytes
In article <377b8447$0$374@news.execpc.com>, Joe Greco <jgreco@ns.sol.net> wrote: : :In any case, portable programming makes for *BETTER* programming. : :Abstracting the interface, designing for the (reasonable) least : :common denominator, all result in more easily debugged and : :maintainable code and generally are faster to develop -- and are : :more easily adapted to new and improved system features as they : :become available. : : Fantastic. Submit the patches and I'm sure people will be pleased. What you're talking about is "porting", something completely different from portable programming. Portable programming is done during the development, not after the development. (Or, possibly, retrofitted. But that's generally a development effort in itself.) Sure, if I find I need to port it, I'll likely contribute the patches. But otherwise, my "contribution" is to argue for code that needs as little porting as possible and which is easily ported when porting is what is needed.
Re: News server architecture (was: Submitting to Freenix)
Author: Joe Greco
Date: Thu, 01 Jul 1999 00:00
Date: Thu, 01 Jul 1999 00:00
46 lines
2974 bytes
2974 bytes
In news.software.nntp article <7lh69l$m4t$1@twwells.com>, bill@twwells.com (T. William Wells) wrote:
:In article <377b8447$0$374@news.execpc.com>,
:Joe Greco <jgreco@ns.sol.net> wrote:
:: :In any case, portable programming makes for *BETTER* programming.
:: :Abstracting the interface, designing for the (reasonable) least
:: :common denominator, all result in more easily debugged and
:: :maintainable code and generally are faster to develop -- and are
:: :more easily adapted to new and improved system features as they
:: :become available.
::
:: Fantastic. Submit the patches and I'm sure people will be pleased.
:
:What you're talking about is "porting", something completely
:different from portable programming. Portable programming is done
:during the development, not after the development. (Or, possibly,
:retrofitted. But that's generally a development effort in itself.)
I understand the meaning of "porting" and of "portable programming"
and I've been doing this long enough to realize that they are not
"completely different", although they do refer to different facets
of some of the same concepts.
:Sure, if I find I need to port it, I'll likely contribute the
:patches. But otherwise, my "contribution" is to argue for code
:that needs as little porting as possible and which is easily
:ported when porting is what is needed.
And a fine argument it is. However, having casually been lurking
through most of this, I must say... your "argument" sounds a lot
more like a "demand", which may be part of what has people a bit
upset. Writing a generalized API for some things is a lot more
challenging and difficult than writing just the specific module
that you need.
Still, I have more respect for a poorly architected bit of code that
someone is willing to write into existence than I do for a perfectly
architected bit of code that nobody has the time or inclination to
write. The first is usable in a subset ("contemporary platforms")
of the desired circumstances ("all platforms") while the second is
usable in a much smaller subset ("no platforms").
Life sucks and then you die.
... JG
Re: News server architecture (was: Submitting to Freenix)
Author: bill davidsen
Date: Wed, 07 Jul 1999 00:00
Date: Wed, 07 Jul 1999 00:00
21 lines
1594 bytes
1594 bytes
In article <7lddu3$12d4$1@twwells.com>, T. William Wells <bill@twwells.com> wrote: | The problem with mmap is that many systems do not support it and | that many that do support it have broken implementations. I'm not sure this is really true, current releases of most major systems do seem to work, at least for the simplistic case INN is using. | So, portable software which can profit from mmap should use it -- | and have a fallback for those situations where mmap is not | desirable or usable. I think the fallback is 1.7.1. -- bill davidsen <davidsen@tmr.com> CTO, TMR Associates, Inc The Internet is not the fountain of youth, but some days it feels like the fountain of immaturity.
Re: News server architecture (was: Submitting to Freenix)
Author: T. William Wells
Date: Wed, 07 Jul 1999 00:00
Date: Wed, 07 Jul 1999 00:00
7 lines
998 bytes
998 bytes
In article <7lu6mu$3kvc$1@newssvr03-int.news.prodigy.com>, bill davidsen <davidsen@tmr.com> wrote: : I think the fallback is 1.7.1. Not for a full newsfeed!
Re: News server architecture (was: Submitting to Freenix)
Author: Brad Knowles
Date: Fri, 09 Jul 1999 00:00
Date: Fri, 09 Jul 1999 00:00
39 lines
2508 bytes
2508 bytes
In article <7lu6mu$3kvc$1@newssvr03-int.news.prodigy.com>,
davidsen@tmr.com (bill davidsen) wrote:
> In article <7lddu3$12d4$1@twwells.com>,
> T. William Wells <bill@twwells.com> wrote:
>
> | The problem with mmap is that many systems do not support it and
> | that many that do support it have broken implementations.
>
> I'm not sure this is really true, current releases of most major systems
> do seem to work, at least for the simplistic case INN is using.
Depends on what you mean by "most major systems do seem to work". If
you mean commercial OSes, then I believe that recent releases of Solaris
work, and I'd be willing to bet that Digital Unix/Tru64 works. However, I
think we can be fairly certain that HP-UX doesn't, and I don't have a clue
about IBM.
If we're talking about freely available OSes, then we know that both
Linux and FreeBSD (and presumably the other *BSD derivatives) have known
problems with mmap.
Matt Dillon is working on the FreeBSD problems, but I don't know how
far behind that work is, and where it fits in the overall scheme of things
that he's working on for FreeBSD 4.0-CURRENT.
The Linux problems I don't know about. I know that they're there
(I've posted the lines of code that prove it, at least in kernel 2.2.9 and
earlier), but I don't know if anyone is working to fix them, and if so who
and what their schedule is.
So, I'd definitely say that "it depends".
--
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
<http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0xE38CCEF1>
Re: News server architecture (was: Submitting to Freenix)
Author: bill davidsen
Date: Fri, 09 Jul 1999 00:00
Date: Fri, 09 Jul 1999 00:00
52 lines
3325 bytes
3325 bytes
In article <brad-0907991702000001@brad.techos.skynet.be>, Brad Knowles <brad@shub-internet.org> wrote: | In article <7lu6mu$3kvc$1@newssvr03-int.news.prodigy.com>, | davidsen@tmr.com (bill davidsen) wrote: | > I'm not sure this is really true, current releases of most major systems | > do seem to work, at least for the simplistic case INN is using. | | Depends on what you mean by "most major systems do seem to work". If | you mean commercial OSes, then I believe that recent releases of Solaris | work, and I'd be willing to bet that Digital Unix/Tru64 works. However, I | think we can be fairly certain that HP-UX doesn't, and I don't have a clue | about IBM. inn-2.3-recent works on AIX, in fact better than 2.2, which required mmap be on in inn.conf for rebuilding history and overview, but off for reading articles. | | If we're talking about freely available OSes, then we know that both | Linux and FreeBSD (and presumably the other *BSD derivatives) have known | problems with mmap. Unless 2.3 has gone off in a new direction, I think everything works right. I'll know shortly, I'm building a new Linux news machine today. | Matt Dillon is working on the FreeBSD problems, but I don't know how | far behind that work is, and where it fits in the overall scheme of things | that he's working on for FreeBSD 4.0-CURRENT. I believe Diablo is more aggressive in its use, but older versions of Diablo run on Linux. I will be trying the newest stable version soon, including reader support. | The Linux problems I don't know about. I know that they're there | (I've posted the lines of code that prove it, at least in kernel 2.2.9 and | earlier), but I don't know if anyone is working to fix them, and if so who | and what their schedule is. I have rather a bunch of stuff using mmap which seems to work, but I would believe that someone can find a case which doesn't. As long as INN and/or Diablo work I'm more or less happy. I missed your test lines, but I've added finding them to my copious list of things to check. There have been some memory fixes in Linux recently, but I don't recall if they were 2.2 or 2.3, paging or mmap, whatever. -- bill davidsen <davidsen@tmr.com> CTO, TMR Associates, Inc The Internet is not the fountain of youth, but some days it feels like the fountain of immaturity.
Re: News server architecture (was: Submitting to Freenix)
Author: Brad Knowles
Date: Mon, 12 Jul 1999 00:00
Date: Mon, 12 Jul 1999 00:00
27 lines
2089 bytes
2089 bytes
In article <7m5b99$12gc$1@newssvr03-int.news.prodigy.com>,
davidsen@tmr.com (bill davidsen) wrote:
> | Matt Dillon is working on the FreeBSD problems, but I don't know how
> | far behind that work is, and where it fits in the overall scheme of things
> | that he's working on for FreeBSD 4.0-CURRENT.
>
> I believe Diablo is more aggressive in its use, but older versions of
> Diablo run on Linux. I will be trying the newest stable version soon,
> including reader support.
It all depends what features you're depending on. Anonymous shared
mmap() doesn't work as of kernel 2.2.9, and if someone insists I can go
dig up the lines of mmap.c that I've previously posted that prove it.
If Diablo and INN 2.3 don't depend on anonymous shared mmap(), then
they may or may not work just fine on Linux, depending on the presence or
absence of other features or their implementation/mis-implementation.
Essentially the same goes for FreeBSD.
--
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
<http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0xE38CCEF1>
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