Parent Directory
|
Revision Log
| Links to HEAD: | (view) (annotate) |
| Sticky Revision: |
update license header text
Revert r395231 from the 2.2.x branch. This gets us back to the old place with regard to the copyright statements.
Update the last year of copyright for the 2.2.x branch
Backport the Doxygen changes to the 2.2.x branch. No functional changes, however backporting these doxygen fixes makes it significantly easier to diff trunk and the 2.2.x branch, to sort out what's what. And we might as well release with nicer doxygen markup. Submitted by: Neale Ranns <neale ranns.org> Reviewed by: Ian Holsman
Recreate 2.2.x branch from trunk.
Update copyright year to 2005 and standardize on current copyright owner line.
general property cleanup
fix name of The Apache Software Foundation
fix copyright dates according to the first checkin
apply Apache License, Version 2.0
update license to 2004.
finished that boring job: update license to 2003. Happy New Year! ;-))
Removed the "not_full" condition variable and associated conditional logic from the file descriptor queue, now that we can rely on the idle worker reference count to keep the listener from trying to push connections into a full queue Reviewed by: Aaron Bannert (concept)
Moved the recycled pool list from the queue to the queue_info structure. The advantage of doing this is that it enables us to guarantee that the number of ptrans pools in existence at once is no greater than the number of worker threads, and that we'll never have to delete ptrans pools.
Add a "queue_info" structure to the worker MPM. This is used to prevent the listener thread from accept()ing more connections than there are available workers. This prevents long-running requests from starving connections that have been accepted but not yet processed. The queue_info is a simple counter, mutex, and condition variable. Only the listener thread blocks on the condition, and only when there are no idle workers. In the fast path there is a mutex lock, integer decrement, and and unlock (among a few conditionals). The worker threads each notify the queue_info when they are about to block on the normal worker_queue waiting for some connection to process, which wakes up any sleeping listener thread to go perform another accept() in parallel.
Convert the worker MPM's fdqueue from a LIFO back into a FIFO. Since elements in the queue represent accept()ed connections, we want them to be processed in the order that they were received. (I erroneously converted it to a LIFO quite awhile ago in the hopes that it would improve cache efficiency.) Remember to perform a make clean in the worker directory after this patch, since this patch changes the size of the fd_queue_t object (which is allocated in worker.c).
Don't drop connections during graceful restart. Previously, worker threads could exit even though there were connections waiting in the queue. Now, for a graceful restart the worker threads won't exit until they are told that the queue has been drained and no more connections will ever be added.
axe some unused fields in ap_queue_t
Update our copyright for this year.
Convert the ap_queue_foo routines to return apr_status_t as appropriate.
Performance optimization: updated the worker MPM to recycle per-transaction pools instead of destroying them. Based on Ian's benchmark testing, this reduces CPU utilization by about 1% on Solaris.
Do we have sys/socket.h?
Fully convert worker's fdqueue to the new APR lock API: - Mutexes and Condition Variables from APR are now used instead of direct (non-portable) calls to pthread. Still need to fully APRize these routines, particularly the return values. In many cases a failed lock or cond var call will simply return FD_QUEUE_FAILURE. This should obviously instead return the appropriate APR error code.
clean up the fdqueue a bit more, by implementing Greg's suggestions to getting rid of redundant variables, as well as converting the simple ap_queue_full/ap_queue_empty tests into macros. This also reinstates the "not_full" condition, which turned out to be useful afterall in cases where we wanted to prevent the listener thread from accepting further connections until the worker queue has room for more. Submitted by: [Aaron Bannert <aaron@clove.org>]
Turn the worker MPM's queue into a LIFO. This may improve cache-hit performance under some conditions. Submitted by: Aaron Bannert <aaron@clove.org>
Cleanup the worker MPM. We no longer re-use transaction pools. This incurs less overhead than shuffling the pools around so that they can be re-used. Remove one of the queue's condition variables. We just redefined the API to state that you can't try to add more stuff than you allocated segments for. Submitted by: Aaron Bannert <aaron@clove.org>
Make the worker MPM shutdown and restart cleanly. This also cleans up some race conditions, and gets the worker using pools more cleanly. Submitted by: [Aaron Bannert <aaron@clove.org>]
Use uniform wrapping for unistd.h, and don't include it if it's aready included via fileio.h
Get the worker MPM working again. This should fix the serialization problems, and it makes up initialize the queue only once.
cosmetic changes only for a clean build; no serialization problems addressed; I presume those are waiting for an APR-ization of the queue/condition mechanism
Add the worker MPM. The name is probably horrible, but I couldn't come up with anything better. This is a multiple-worker/single listener MPM. This MPM is definately not complete, but it is a first step in the right direction.
This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.
| apache@apache.org | ViewVC Help |
| Powered by ViewVC 1.1.2 |