On Fri, Jun 5, 2015 at 5:11 PM, Eric Covener <cove...@gmail.com> wrote:
> I'm trying to review & understand how this affects process management for
> things like MinSpareThreads/MaxSpareThreads e.g.
>
> -    else if (idle_thread_count < min_spare_threads) {
> +    else if (idle_thread_count < min_spare_threads / num_buckets) {
>          /* terminate the free list */
>          if (free_length == 0) { /* scoreboard is f
>
> -    if (idle_thread_count > max_spare_threads) {
> +    if (idle_thread_count > max_spare_threads / num_buckets) {
>          /* Kill off one child */
>
> If I wanted between 100 and 200 spare threads available to do some slow
> stuff like proxy or CGI,  would we really scale it back by the # of buckets
> or am I misunderstanding?

perform_idle_server_maintenance() is now called for each bucket in the
main loop, so this won't change the number of threads maintained per
loop.

Reply via email to