Re: dns servers

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Thu, 29 Oct 1998 03:00:17 +0100

Eric Stern wrote:
>
> I wrote a patch for 2.0.patch2 last night that dynamically
> loads dnsserver processes based on demand. That is, if there
> is a call to dnsGetFirstAvailable() and there are none
> available, it spawns a new one, up to the maximum of 32
> processes (compile time option).

Be warned that using fork() on a huge Squid process is not a
great idea as the swap requirements temporary doubles. If you
do this be sure to use vfork, and only on a platform where vfork
works as it should...

The same problem applies to base Squid when doing a reconfigure.

Other than this it sounds like a reasonable idea, but as you
pointed out yourself having a couple of unused processes does
not hurt, which allows the administrator to always have 32
dnsserver processes without being hurt in any way other than
a slightly longer startup time.

---
Henrik Nordstrom
Spare time Squid hacker
Received on Tue Jul 29 2003 - 13:15:54 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:11:57 MST