In message <19980209085911.20115@is.co.za>, Oskar Pearson writes:
> Hi
>
>
> > any luck?? (squid 1.2-b14 compiled mostly out of the box for
> > me... Running it as a test now.. )
> Very different problem now... a whole bunch of threads start
> and then proceeed to use 100% CPU each... they are spending all of it
> in the function w_space:
Yup. You need to do something that will cause aio_init() to run BEFORE
the fork() runs. In main.c , before the call to ipcache_init(), I
added...
#if USE_ASYNC_IO
aioClose(dup(0));
#endif
which does nothing, but will force the init to run in aiops. This
stops the problems with the dnsserver stuff. (for the squid-dev ppl:
you end up with 15 threads running on the first dnsserver process. bad
karma). Strictly speaking, it's probably a bug in the linux threads
implementation (it doesn't handle fork as well as it could do), but
the above is an acceptable work around that's harmless on other
systems.
Michael.
Received on Tue Jul 29 2003 - 13:15:46 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:11:42 MST