Lines Matching refs:retained
140 /* data retained by worker across load/unload of the module
173 * restarts (to size retained data according to dynamic num_buckets,
178 static worker_retained_data *retained;
340 *result = retained->max_daemons_limit;
379 *result = retained->my_generation;
407 retained->my_generation, slot, MPM_CHILD_STARTED);
497 retained->is_graceful = graceful;
509 retained->is_graceful = graceful;
932 ap_scoreboard_image->servers[process_slot][thread_slot].generation = retained->my_generation;
1244 for (i = 0; i < retained->num_buckets; i++) {
1406 if (slot + 1 > retained->max_daemons_limit) {
1407 retained->max_daemons_limit = slot + 1;
1484 if (make_child(ap_server_conf, i, i % retained->num_buckets) < 0) {
1520 if (i >= retained->max_daemons_limit && totally_free_length == retained->idle_spawn_rate[child_bucket])
1548 ps->generation == retained->my_generation &&
1558 if (any_dead_threads && totally_free_length < retained->idle_spawn_rate[child_bucket]
1590 if (retained->sick_child_detected) {
1596 retained->sick_child_detected = 0;
1613 retained->max_daemons_limit = last_non_dead + 1;
1619 retained->idle_spawn_rate[child_bucket] = 1;
1629 if (!retained->maxclients_reported) {
1635 retained->maxclients_reported = 1;
1638 if (!retained->near_maxclients_reported) {
1643 retained->near_maxclients_reported = 1;
1652 retained->idle_spawn_rate[child_bucket] = 1;
1655 if (free_length > retained->idle_spawn_rate[child_bucket]) {
1656 free_length = retained->idle_spawn_rate[child_bucket];
1658 if (retained->idle_spawn_rate[child_bucket] >= 8) {
1674 if (retained->hold_off_on_exponential_spawning) {
1675 --retained->hold_off_on_exponential_spawning;
1677 else if (retained->idle_spawn_rate[child_bucket]
1679 retained->idle_spawn_rate[child_bucket] *= 2;
1684 retained->idle_spawn_rate[child_bucket] = 1;
1711 == retained->my_generation) {
1721 retained->sick_child_detected = 1;
1728 retained->sick_child_detected = 1;
1743 retained->idle_spawn_rate[ps->bucket] = 1;
1758 && old_gen == retained->my_generation) {
1761 retained->idle_spawn_rate[i] = 1;
1771 else if (retained->is_graceful) {
1809 int num_buckets = retained->num_buckets;
1815 if (!retained->is_graceful) {
1823 ap_scoreboard_image->global->running_generation = retained->my_generation;
1854 if (!retained->is_graceful) {
1861 retained->hold_off_on_exponential_spawning = 10;
1882 if (shutdown_pending && !retained->is_graceful) {
1975 ++retained->my_generation;
1976 ap_scoreboard_image->global->running_generation = retained->my_generation;
1978 if (retained->is_graceful) {
2027 if (retained->module_loads == 1) {
2042 else if (retained->is_graceful) {
2044 num_buckets = retained->num_buckets;
2076 if (retained->max_buckets < num_buckets) {
2078 new_max = retained->max_buckets * 2;
2083 memcpy(new_ptr, retained->idle_spawn_rate,
2084 retained->num_buckets * sizeof(int));
2085 retained->idle_spawn_rate = new_ptr;
2086 retained->max_buckets = new_max;
2088 if (retained->num_buckets < num_buckets) {
2094 for (i = 0; i < retained->num_buckets; i++) {
2095 if (rate_max < retained->idle_spawn_rate[i]) {
2096 rate_max = retained->idle_spawn_rate[i];
2100 retained->idle_spawn_rate[i] = rate_max;
2103 retained->num_buckets = num_buckets;
2132 retained = ap_retained_data_get(userdata_key);
2133 if (!retained) {
2134 retained = ap_retained_data_create(userdata_key, sizeof(*retained));
2135 retained->max_daemons_limit = -1;
2137 ++retained->module_loads;
2138 if (retained->module_loads == 2) {
2175 if (retained->module_loads == 1) {
2211 if (!retained->first_server_limit) {
2212 retained->first_server_limit = server_limit;
2214 else if (server_limit != retained->first_server_limit) {
2219 server_limit, retained->first_server_limit);
2220 server_limit = retained->first_server_limit;
2255 if (!retained->first_thread_limit) {
2256 retained->first_thread_limit = thread_limit;
2258 else if (thread_limit != retained->first_thread_limit) {
2263 thread_limit, retained->first_thread_limit);
2264 thread_limit = retained->first_thread_limit;