On 10/07/2014 05:16 PM, yla...@apache.org wrote:
> Author: ylavic
> Date: Tue Oct  7 15:16:02 2014
> New Revision: 1629909
> 
> URL: http://svn.apache.org/r1629909
> Log:
> core: Use process scoreboard to store each child's listener bucket,
> and silently adjust the configured number of processes/threads to
> be above the computed number of listener buckets (depending on the
> CPU cores).
> 
> 
> Modified:
>     httpd/httpd/trunk/include/ap_mmn.h
>     httpd/httpd/trunk/include/scoreboard.h
>     httpd/httpd/trunk/server/mpm/event/event.c
>     httpd/httpd/trunk/server/mpm/eventopt/eventopt.c
>     httpd/httpd/trunk/server/mpm/prefork/prefork.c
>     httpd/httpd/trunk/server/mpm/worker/worker.c
> 
dified: httpd/httpd/trunk/server/mpm/event/event.c
> URL: 
> http://svn.apache.org/viewvc/httpd/httpd/trunk/server/mpm/event/event.c?rev=1629909&r1=1629908&r2=1629909&view=diff
> ==============================================================================
> --- httpd/httpd/trunk/server/mpm/event/event.c (original)
> +++ httpd/httpd/trunk/server/mpm/event/event.c Tue Oct  7 15:16:02 2014
            if (all_dead_threads) {
> @@ -2801,12 +2800,12 @@ static void perform_idle_server_maintena
>  
>      retained->max_daemons_limit = last_non_dead + 1;
>  
> -    if (idle_thread_count > max_spare_threads/num_buckets) {
> +    if (idle_thread_count > max_spare_threads / num_buckets) {
>          /* Kill off one child */
>          ap_mpm_podx_signal(pod[child_bucket], AP_MPM_PODX_GRACEFUL);
>          retained->idle_spawn_rate[child_bucket] = 1;
>      }
> -    else if (idle_thread_count < min_spare_threads/num_buckets) {
> +    else if (idle_thread_count < min_spare_threads) {

Why this?

>          /* terminate the free list */
>          if (free_length == 0) { /* scoreboard is full, can't fork */
>  

Regards

RĂ¼diger

Reply via email to