]> granicus.if.org Git - apache/commit
MPMs unix: bind the bucket number of each child to its slot number
authorYann Ylavic <ylavic@apache.org>
Tue, 12 Mar 2019 10:45:02 +0000 (10:45 +0000)
committerYann Ylavic <ylavic@apache.org>
Tue, 12 Mar 2019 10:45:02 +0000 (10:45 +0000)
commit0900b36b70df8ca3939df65a98f12c0c5f537d3b
tree04562ab737d3f24369d1dcec21a09ff3949704aa
parent93f20aaeba6aa071be8764bbbace1432e732738b
MPMs unix: bind the bucket number of each child to its slot number

We need not remember each child's bucket number in SHM for restarts, for the
lifetime of the httpd main process the bucket number can be bound to the slot
number such that: bucket = slot % num_buckets.

This both simplifies the logic and helps children maintenance per bucket in
threaded MPMs, where previously perform_idle_server_maintenance() could create
or kill children processes for the buckets it was not in charge of.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1855306 13f79535-47bb-0310-9956-ffa450edef68
CHANGES
include/scoreboard.h
server/mpm/event/event.c
server/mpm/motorz/motorz.c
server/mpm/prefork/prefork.c
server/mpm/worker/worker.c