Lines Matching refs:num_buckets

381      * restarts (to size retained data according to dynamic num_buckets,
384 int num_buckets, max_buckets;
2518 for (i = 0; i < retained->num_buckets; i++) {
2757 if (make_child(ap_server_conf, i, i % retained->num_buckets) < 0) {
2764 static void perform_idle_server_maintenance(int child_bucket, int num_buckets)
2834 && free_length < MAX_SPAWN_RATE / num_buckets
2890 if (idle_thread_count > max_spare_threads / num_buckets) {
2896 else if (idle_thread_count < min_spare_threads / num_buckets) {
2939 < MAX_SPAWN_RATE / num_buckets) {
2949 static void server_main_loop(int remaining_children_to_start, int num_buckets)
3023 for (i = 0; i < num_buckets; i++) {
3064 for (i = 0; i < num_buckets; i++) {
3065 perform_idle_server_maintenance(i, num_buckets);
3072 int num_buckets = retained->num_buckets;
3092 /* Don't thrash since num_buckets depends on the
3095 if (ap_daemons_limit < num_buckets)
3096 ap_daemons_limit = num_buckets;
3097 if (ap_daemons_to_start < num_buckets)
3098 ap_daemons_to_start = num_buckets;
3099 if (min_spare_threads < threads_per_child * num_buckets)
3100 min_spare_threads = threads_per_child * num_buckets;
3101 if (max_spare_threads < min_spare_threads + threads_per_child * num_buckets)
3102 max_spare_threads = min_spare_threads + threads_per_child * num_buckets;
3137 server_main_loop(remaining_children_to_start, num_buckets);
3144 for (i = 0; i < num_buckets; i++) {
3168 for (i = 0; i < num_buckets; i++) {
3211 for (i = 0; i < num_buckets; i++) {
3240 for (i = 0; i < num_buckets; i++) {
3255 for (i = 0; i < num_buckets; i++) {
3277 int num_buckets = 0;
3298 num_buckets = 1;
3302 num_buckets = retained->num_buckets;
3305 &listen_buckets, &num_buckets))) {
3312 all_buckets = apr_pcalloc(pconf, num_buckets * sizeof(*all_buckets));
3313 for (i = 0; i < num_buckets; i++) {
3324 if (retained->max_buckets < num_buckets) {
3327 if (new_max < num_buckets) {
3328 new_max = num_buckets;
3332 retained->num_buckets * sizeof(int));
3336 if (retained->num_buckets < num_buckets) {
3342 for (i = 0; i < retained->num_buckets; i++) {
3347 for (/* up to date i */; i < num_buckets; i++) {
3351 retained->num_buckets = num_buckets;