On Mon, Feb 19, 2001, Chemolli Francesco (USI) wrote:
> This might and in fact should be coordinated. I've planned to rewrite
> the logging code for some time (in my case to allow for customized
> logformats).
Sure.
We can use pthreads here, the trouble then is that we'd need or at least
feel tempted to start pthreading more and more of squid, which I personally
think we can avoid for the time being.
<RANT>
Yes, I think the full context switches being made between processes is
heavy. And when we start breaking things like the logging out into
external processes we will be threading the process scheduler.
Properly-implemented threading (eg solaris, IRIX) will allow the code
to run *much* faster, as the thread scheduling isn't done at full
process level. But then you run into the fun world of mutexes,
condition variables and other sync primitives which can offset our
gains :)
So, I like the idea of making the system run without pthreads for the
time being. Add a logging 'helper' if people want it. If people don't,
the logging module does the writes itself rather than passing it to
an external program. We can support both here without complexity.
This is, after all, what I'm aiming towards.
Adrian
-- Adrian Chadd "Romance novel?" <adrian@creative.net.au> "Girl Porn." - http://www.sinfest.net/d/20010202.htmlReceived on Mon Feb 19 2001 - 07:32:17 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:13:33 MST