/php-src/sapi/fpm/fpm/ |
H A D | fpm_scoreboard.c | 70 wp->scoreboard->shared = wp->shared->scoreboard; in fpm_scoreboard_init_main() 91 scoreboard = fpm_scoreboard_get_for_update(scoreboard); in fpm_scoreboard_update_begin() 104 scoreboard = fpm_scoreboard_get_for_update(scoreboard); in fpm_scoreboard_update_commit() 123 if (scoreboard->lq > scoreboard->lq_max) { in fpm_scoreboard_update_commit() 124 scoreboard->lq_max = scoreboard->lq; in fpm_scoreboard_update_commit() 169 if (scoreboard->active > scoreboard->active_max) { in fpm_scoreboard_update_commit() 170 scoreboard->active_max = scoreboard->active; in fpm_scoreboard_update_commit() 230 struct fpm_scoreboard_s *scoreboard = wp->scoreboard; in fpm_scoreboard_proc_get_from_child() local 242 s = scoreboard ? scoreboard : fpm_scoreboard; in fpm_scoreboard_acquire() 348 struct fpm_scoreboard_s *scoreboard = wp->scoreboard; in fpm_scoreboard_free() local [all …]
|
H A D | fpm_scoreboard.h | 77 void fpm_scoreboard_update_begin(struct fpm_scoreboard_s *scoreboard); 78 …children_reached, int slow_rq, size_t memory_max, int action, struct fpm_scoreboard_s *scoreboard); 79 …children_reached, int slow_rq, size_t memory_max, int action, struct fpm_scoreboard_s *scoreboard); 82 struct fpm_scoreboard_proc_s *fpm_scoreboard_proc_get(struct fpm_scoreboard_s *scoreboard, int chil… 85 struct fpm_scoreboard_s *fpm_scoreboard_acquire(struct fpm_scoreboard_s *scoreboard, int nohang); 86 void fpm_scoreboard_release(struct fpm_scoreboard_s *scoreboard); 87 struct fpm_scoreboard_proc_s *fpm_scoreboard_proc_acquire(struct fpm_scoreboard_s *scoreboard, int … 97 struct fpm_scoreboard_s *fpm_scoreboard_copy(struct fpm_scoreboard_s *scoreboard, int copy_procs); 98 void fpm_scoreboard_free_copy(struct fpm_scoreboard_s *scoreboard);
|
H A D | fpm_status.c | 50 struct fpm_scoreboard_s scoreboard, *scoreboard_p; in fpm_status_export_to_zval() local 64 scoreboard = *scoreboard_p; in fpm_status_export_to_zval() 69 for(i=0; i<scoreboard.nprocs; i++) { in fpm_status_export_to_zval() 84 add_assoc_string(status, "pool", scoreboard.pool); in fpm_status_export_to_zval() 86 add_assoc_long(status, "start-time", scoreboard.start_epoch); in fpm_status_export_to_zval() 88 add_assoc_long(status, "accepted-conn", scoreboard.requests); in fpm_status_export_to_zval() 89 add_assoc_long(status, "listen-queue", scoreboard.lq); in fpm_status_export_to_zval() 92 add_assoc_long(status, "idle-processes", scoreboard.idle); in fpm_status_export_to_zval() 94 add_assoc_long(status, "total-processes", scoreboard.idle + scoreboard.active); in fpm_status_export_to_zval() 97 add_assoc_long(status, "slow-requests", scoreboard.slow_rq); in fpm_status_export_to_zval() [all …]
|
H A D | fpm_systemd.c | 23 if (wp->scoreboard) { in fpm_systemd() 24 active += wp->scoreboard->active; in fpm_systemd() 25 idle += wp->scoreboard->idle; in fpm_systemd() 26 requests += wp->scoreboard->requests; in fpm_systemd() 27 slow_req += wp->scoreboard->slow_rq; in fpm_systemd()
|
H A D | fpm_log.c | 115 struct fpm_scoreboard_s *scoreboard; in fpm_log_write() local 137 scoreboard = fpm_scoreboard_get(); in fpm_log_write() 138 if (!scoreboard) { in fpm_log_write() 144 …_WARNING, "[pool %s] Unable to acquire shm slot while preparing the access log", scoreboard->pool); in fpm_log_write() 303 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%s", scoreboard->pool[0] ? scoreboard->pool : "-"); in fpm_log_write()
|
H A D | fpm_worker_pool.h | 38 struct fpm_scoreboard_s *scoreboard; member
|
H A D | fpm_process_ctl.c | 359 fpm_scoreboard_update_begin(wp->scoreboard); in fpm_pctl_perform_idle_server_maintenance() 376 …d_update_commit(idle, active, cur_lq, -1, -1, -1, 0, 0, FPM_SCOREBOARD_ACTION_SET, wp->scoreboard); in fpm_pctl_perform_idle_server_maintenance() 409 fpm_scoreboard_update(0, 0, 0, 0, 0, 1, 0, 0, FPM_SCOREBOARD_ACTION_INC, wp->scoreboard); in fpm_pctl_perform_idle_server_maintenance() 428 fpm_scoreboard_update(0, 0, 0, 0, 0, 1, 0, 0, FPM_SCOREBOARD_ACTION_INC, wp->scoreboard); in fpm_pctl_perform_idle_server_maintenance() 532 fpm_scoreboard_update(0, 0, 0, 0, 0, 1, 0, 0, FPM_SCOREBOARD_ACTION_INC, wp->scoreboard); in fpm_pctl_on_socket_accept()
|
H A D | fpm_php_trace.c | 192 fpm_scoreboard_update(0, 0, 0, 0, 0, 0, 1, 0, FPM_SCOREBOARD_ACTION_INC, child->wp->scoreboard); in fpm_php_trace()
|
H A D | fpm_request.c | 229 proc_p = fpm_scoreboard_proc_acquire(child->wp->scoreboard, child->scoreboard_i, 1); in fpm_request_check_timed_out()
|
H A D | fpm_sockets.c | 517 …coreboard_update(-1, -1, -1, (int)lq_len, -1, -1, 0, 0, FPM_SCOREBOARD_ACTION_SET, wp->scoreboard); in fpm_sockets_init_main()
|