🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
55 messages
55 total messages Page 2 of 2 Started by Jon Mansey Sat, 02 Oct 1999 00:00
Page 2 of 2 • 55 total messages
Re: INN maxed? Time to add a Diablo router?
#40609
Author: bill davidsen
Date: Wed, 06 Oct 1999 00:00
36 lines
2593 bytes
In article <37fba0c8$0$10181@news.execpc.com>,
Joe Greco <jgreco@ns.sol.net> wrote:

| :Joe is just a BSD bigot.
| 
| Bite me.  I know what sucks ("everything").  I don't know of anything that
| doesn't.  My choice of OS has lots more to do with the fact that I'd prefer
| to support one OS capable of meeting all my widely varying needs.  I support
| way too much stuff and having to support eighty versions of the
| Linux-of-the-Day, half a dozen versions of Solaris, NetBSD, OpenBSD, half a
| dozen variants of SCO, etc., etc., just to leverage the "best possible" OS
| for any job just isn't my thing.

  Having eliminated Linux, BSD, SCO and Solaris, what *do* you like, NY?
I'm not sure what issues you would hit in Linux, unless you worry about
four year old a.out installs or insist on trying to modify the boot time
rc files yourself. I run a lot of stuff between 2.0 and 2.2 kernels,
develop on Slackware, test on Redhat and SuSE, and you really shouldn't
see a problem, particularly if you distribute source.

  I've seen some performance effects between FreeBSD and OpenBSD, but
again, I don't see anything which is really an issue for applications
written with even a little thought to portability. There are some issues
with SMP performance, but not of functionality.

  Fortunately, unless you do some really odd things, your code should
run in all these places. People may suggest some changes to improve
portability, but that's probably not an issue.

-- 
bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
  When taking small children to a carnival, always have them go potty
*before* you let them go on the rides, and let them eat all the junk
food and candy *after*.

Re: INN maxed? Time to add a Diablo router?
#40612
Author: Chris Sedore
Date: Wed, 06 Oct 1999 00:00
29 lines
2193 bytes
Russ Allbery <rra@stanford.edu> wrote in message
news:yl1zb9pmx1.fsf@windlord.stanford.edu...
> Brad Knowles <brad@shub-internet.org> writes:
>
> > Speaking only for my totally ignorant self, I would assume that
> > threading with blocking I/O should also be sufficiently close to optimal
> > performance that I wouldn't think it would be necessary or desirable to
> > really go beyond this point.
>
> When I was trying to figure out how I would do this, one of the worries I
> had about threading with blocking I/O is that it feels like it would
> prevent you from doing an orderly shutdown of the entire news system in a
> bounded amount of time.  Or am I missing something?

You're not missing something.  This can be a problem, depending on what
you're doing and how you design the rest of the system.  If you keep state
in a thread independant way, you can simply prevent the threads from
accessing anything that you care about (like mmapped databases which are
being unmapped, etc), do your ordered shutdown in other threads, and then
exit().  Won't win you any awards for elegant programming, but there doesn't
have to be loss of state and it is quite a bit easier than trying to wait
for them all (or encouraging them) to complete or killing them off.

-Chris



Re: INN maxed? Time to add a Diablo router?
#40621
Author: Joe Greco
Date: Wed, 06 Oct 1999 00:00
41 lines
2767 bytes
In news.software.nntp article <BjCK3.4226$L85.331333@ptah.visi.com>, drechsau+usenet@yuck.net (Mike Horwath) wrote:
:Brad Knowles <brad@shub-internet.org> wrote:
:: In article <37f9bea6$0$10177@news.execpc.com>, jgreco@ns.sol.net (Joe
:: Greco) wrote:
:
::> "Strange that I cannot."
:
::     I was under the impression that Solaris did both threading and shared
:: memory mmap() relatively well.  Is this not correct?
:
:Oh, it does.

Solaris does threading OK.  OK as in probably much better than your
average OS, but it still has some deficiencies.  The threading in Solaris
is certainly much more mature than in most OS's, including FreeBSD,
offering things like a fairly decent CPU affinity system and some other
neat features.  Solaris threads are also LWP's, which may or may not be
more ideal performancewise...  (more ideal than using a process framework
for a threads implementation, less ideal perhaps than using userland
threads, but this is mostly a function of how many threads and how much
heavy context switching goes on).  But it has always appeared to suffer
as the number of threads increases, and Solaris has always had SMP
scalability issues.

Solaris also does interesting things with mmap(), but fortunately my time
with these issues is somewhat in the past, and some might be solved with
creative application of madvise().

:Joe is just a BSD bigot.

Bite me.  I know what sucks ("everything").  I don't know of anything that
doesn't.  My choice of OS has lots more to do with the fact that I'd prefer
to support one OS capable of meeting all my widely varying needs.  I support
way too much stuff and having to support eighty versions of the
Linux-of-the-Day, half a dozen versions of Solaris, NetBSD, OpenBSD, half a
dozen variants of SCO, etc., etc., just to leverage the "best possible" OS
for any job just isn't my thing.

... JG

Re: INN maxed? Time to add a Diablo router?
#41194
Author: Andrew Gierth
Date: Sat, 30 Oct 1999 00:00
32 lines
2503 bytes
>>>>> "Russ" == Russ Allbery <rra@stanford.edu> writes:

 > Andrew Gierth <andrew@erlenstar.demon.co.uk> writes:
 >> I'm probably going to try this out myself (using a timeout thread
 >> that goes around sending a signal, via pthread_kill, to all the
 >> input threads at some suitable interval). By keeping that signal
 >> blocked in the thread except when actually doing reads & writes,
 >> and not trying to do anything at all in the signal handler, just
 >> using it to force an EINTR return, I think I can keep things clean
 >> enough.

 Russ> Have you had a chance to try this out?

Yes. Though I didn't do it quite like that: my timeout thread doesn't
blindly signal the other threads, but keeps track of pending timeouts
in a heap.

 Russ> I'm curious about the results.

So far, seems reasonable.

The increase in performance (over poll()+read()) is slight, but I'm
going along with this idea anyway because it gives me a specific
feature that I like: the ability to shorten the timeout on the fly
from outside the reading thread. I'm using this to allow shutdown to
be performed within a reasonable time while allowing the timeouts to
be left long during normal operation.

-- 
Andrew.

Page 2 of 2 • 55 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