Lines Matching defs:num_buckets
173 * restarts (to size retained data according to dynamic num_buckets,
176 int num_buckets, max_buckets;
1244 for (i = 0; i < retained->num_buckets; i++) {
1484 if (make_child(ap_server_conf, i, i % retained->num_buckets) < 0) {
1491 static void perform_idle_server_maintenance(int child_bucket, int num_buckets)
1559 && free_length < MAX_SPAWN_RATE / num_buckets
1615 if (idle_thread_count > max_spare_threads / num_buckets) {
1621 else if (idle_thread_count < min_spare_threads / num_buckets) {
1678 < MAX_SPAWN_RATE / num_buckets) {
1688 static void server_main_loop(int remaining_children_to_start, int num_buckets)
1760 for (i = 0; i < num_buckets; i++) {
1801 for (i = 0; i < num_buckets; i++) {
1802 perform_idle_server_maintenance(i, num_buckets);
1809 int num_buckets = retained->num_buckets;
1829 /* Don't thrash since num_buckets depends on the
1832 if (ap_daemons_limit < num_buckets)
1833 ap_daemons_limit = num_buckets;
1834 if (ap_daemons_to_start < num_buckets)
1835 ap_daemons_to_start = num_buckets;
1836 if (min_spare_threads < threads_per_child * num_buckets)
1837 min_spare_threads = threads_per_child * num_buckets;
1838 if (max_spare_threads < min_spare_threads + threads_per_child * num_buckets)
1839 max_spare_threads = min_spare_threads + threads_per_child * num_buckets;
1879 server_main_loop(remaining_children_to_start, num_buckets);
1886 for (i = 0; i < num_buckets; i++) {
1911 for (i = 0; i < num_buckets; i++) {
1954 for (i = 0; i < num_buckets; i++) {
1982 for (i = 0; i < num_buckets; i++) {
1997 for (i = 0; i < num_buckets; i++) {
2018 int num_buckets = 0;
2040 num_buckets = 1;
2044 num_buckets = retained->num_buckets;
2047 &listen_buckets, &num_buckets))) {
2054 all_buckets = apr_pcalloc(pconf, num_buckets * sizeof(*all_buckets));
2055 for (i = 0; i < num_buckets; i++) {
2076 if (retained->max_buckets < num_buckets) {
2079 if (new_max < num_buckets) {
2080 new_max = num_buckets;
2084 retained->num_buckets * sizeof(int));
2088 if (retained->num_buckets < num_buckets) {
2094 for (i = 0; i < retained->num_buckets; i++) {
2099 for (/* up to date i */; i < num_buckets; i++) {
2103 retained->num_buckets = num_buckets;