/[Apache-SVN]/httpd/httpd/branches/2.2.x/server/mpm/worker/fdqueue.h
ViewVC logotype

Log of /httpd/httpd/branches/2.2.x/server/mpm/worker/fdqueue.h

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (annotate)
Sticky Revision:

Revision 421103 - (view) (annotate) - [select for diffs]
Modified Wed Jul 12 03:38:44 2006 UTC (3 years, 4 months ago) by fielding
File length: 2490 byte(s)
Diff to previous 396056 (colored)
update license header text

Revision 396056 - (view) (annotate) - [select for diffs]
Modified Sat Apr 22 01:53:06 2006 UTC (3 years, 7 months ago) by pquerna
File length: 2343 byte(s)
Diff to previous 395231 (colored)
Revert r395231 from the 2.2.x branch.  This gets us back to the old place with regard to the copyright statements.

Revision 395231 - (view) (annotate) - [select for diffs]
Modified Wed Apr 19 12:33:16 2006 UTC (3 years, 7 months ago) by colm
File length: 2343 byte(s)
Diff to previous 292540 (colored)
Update the last year of copyright for the 2.2.x branch

Revision 292540 - (view) (annotate) - [select for diffs]
Modified Thu Sep 29 20:44:53 2005 UTC (4 years, 1 month ago) by colm
File length: 2343 byte(s)
Diff to previous 234103 (colored)
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

Revision 234103 - (view) (annotate) - [select for diffs]
Modified Sat Aug 20 18:21:45 2005 UTC (4 years, 3 months ago) by pquerna
File length: 2223 byte(s)
Diff to previous 151408 (colored)
Recreate 2.2.x branch from trunk.

Revision 151408 - (view) (annotate) - [select for diffs]
Modified Fri Feb 4 20:28:49 2005 UTC (4 years, 9 months ago) by jerenkrantz
Original Path: httpd/httpd/trunk/server/mpm/worker/fdqueue.h
File length: 2223 byte(s)
Diff to previous 106103 (colored)
Update copyright year to 2005 and standardize on current copyright owner line.

Revision 106103 - (view) (annotate) - [select for diffs]
Modified Sun Nov 21 18:50:36 2004 UTC (5 years ago) by nd
Original Path: httpd/httpd/trunk/server/mpm/worker/fdqueue.h
File length: 2187 byte(s)
Diff to previous 102619 (colored)
general property cleanup

Revision 102619 - (view) (annotate) - [select for diffs]
Modified Mon Feb 9 20:40:53 2004 UTC (5 years, 9 months ago) by nd
Original Path: httpd/httpd/trunk/server/mpm/worker/fdqueue.h
File length: 2187 byte(s)
Diff to previous 102587 (colored)
fix name of The Apache Software Foundation

Revision 102587 - (view) (annotate) - [select for diffs]
Modified Sun Feb 8 13:52:12 2004 UTC (5 years, 9 months ago) by nd
Original Path: httpd/httpd/trunk/server/mpm/worker/fdqueue.h
File length: 2183 byte(s)
Diff to previous 102525 (colored)
fix copyright dates according to the first checkin

Revision 102525 - (view) (annotate) - [select for diffs]
Modified Fri Feb 6 22:58:42 2004 UTC (5 years, 9 months ago) by nd
Original Path: httpd/httpd/trunk/server/mpm/worker/fdqueue.h
File length: 2183 byte(s)
Diff to previous 102135 (colored)
apply Apache License, Version 2.0

Revision 102135 - (view) (annotate) - [select for diffs]
Modified Thu Jan 1 13:26:26 2004 UTC (5 years, 10 months ago) by nd
Original Path: httpd/httpd/trunk/server/mpm/worker/fdqueue.h
File length: 4402 byte(s)
Diff to previous 98573 (colored)
update license to 2004.

Revision 98573 - (view) (annotate) - [select for diffs]
Modified Mon Feb 3 17:53:28 2003 UTC (6 years, 9 months ago) by nd
Original Path: httpd/httpd/trunk/server/mpm/worker/fdqueue.h
File length: 4402 byte(s)
Diff to previous 94845 (colored)
finished that boring job:
update license to 2003.

Happy New Year! ;-))

Revision 94845 - (view) (annotate) - [select for diffs]
Modified Sun Apr 28 23:12:35 2002 UTC (7 years, 6 months ago) by brianp
Original Path: httpd/httpd/trunk/server/mpm/worker/fdqueue.h
File length: 4402 byte(s)
Diff to previous 94830 (colored)
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)

Revision 94830 - (view) (annotate) - [select for diffs]
Modified Sun Apr 28 05:28:18 2002 UTC (7 years, 7 months ago) by brianp
Original Path: httpd/httpd/trunk/server/mpm/worker/fdqueue.h
File length: 4496 byte(s)
Diff to previous 94824 (colored)
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.

Revision 94824 - (view) (annotate) - [select for diffs]
Modified Sun Apr 28 01:45:00 2002 UTC (7 years, 7 months ago) by aaron
Original Path: httpd/httpd/trunk/server/mpm/worker/fdqueue.h
File length: 4531 byte(s)
Diff to previous 94813 (colored)
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.

Revision 94813 - (view) (annotate) - [select for diffs]
Modified Fri Apr 26 17:13:51 2002 UTC (7 years, 7 months ago) by aaron
Original Path: httpd/httpd/trunk/server/mpm/worker/fdqueue.h
File length: 4164 byte(s)
Diff to previous 94106 (colored)
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).

Revision 94106 - (view) (annotate) - [select for diffs]
Modified Thu Mar 21 19:12:54 2002 UTC (7 years, 8 months ago) by trawick
Original Path: httpd/httpd/trunk/server/mpm/worker/fdqueue.h
File length: 4103 byte(s)
Diff to previous 94087 (colored)
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.

Revision 94087 - (view) (annotate) - [select for diffs]
Modified Thu Mar 21 15:19:54 2002 UTC (7 years, 8 months ago) by trawick
Original Path: httpd/httpd/trunk/server/mpm/worker/fdqueue.h
File length: 4020 byte(s)
Diff to previous 93918 (colored)
axe some unused fields in ap_queue_t

Revision 93918 - (view) (annotate) - [select for diffs]
Modified Wed Mar 13 20:48:07 2002 UTC (7 years, 8 months ago) by fielding
Original Path: httpd/httpd/trunk/server/mpm/worker/fdqueue.h
File length: 4090 byte(s)
Diff to previous 93530 (colored)
Update our copyright for this year.

Revision 93530 - (view) (annotate) - [select for diffs]
Modified Thu Feb 21 14:22:05 2002 UTC (7 years, 9 months ago) by trawick
Original Path: httpd/httpd/trunk/server/mpm/worker/fdqueue.h
File length: 4090 byte(s)
Diff to previous 93386 (colored)
Convert the ap_queue_foo routines to return apr_status_t as appropriate.

Revision 93386 - (view) (annotate) - [select for diffs]
Modified Wed Feb 13 04:49:55 2002 UTC (7 years, 9 months ago) by brianp
Original Path: httpd/httpd/trunk/server/mpm/worker/fdqueue.h
File length: 4325 byte(s)
Diff to previous 93263 (colored)
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.

Revision 93263 - (view) (annotate) - [select for diffs]
Modified Tue Feb 5 23:13:42 2002 UTC (7 years, 9 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/mpm/worker/fdqueue.h
File length: 4148 byte(s)
Diff to previous 91531 (colored)
  Do we have sys/socket.h?

Revision 91531 - (view) (annotate) - [select for diffs]
Modified Wed Oct 17 16:29:37 2001 UTC (8 years, 1 month ago) by aaron
Original Path: httpd/httpd/trunk/server/mpm/worker/fdqueue.h
File length: 4115 byte(s)
Diff to previous 91223 (colored)
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.

Revision 91223 - (view) (annotate) - [select for diffs]
Modified Mon Oct 1 19:37:20 2001 UTC (8 years, 1 month ago) by rbb
Original Path: httpd/httpd/trunk/server/mpm/worker/fdqueue.h
File length: 4003 byte(s)
Diff to previous 91077 (colored)
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>]

Revision 91077 - (view) (annotate) - [select for diffs]
Modified Tue Sep 18 23:09:12 2001 UTC (8 years, 2 months ago) by rbb
Original Path: httpd/httpd/trunk/server/mpm/worker/fdqueue.h
File length: 3999 byte(s)
Diff to previous 91075 (colored)
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>

Revision 91075 - (view) (annotate) - [select for diffs]
Modified Tue Sep 18 21:14:18 2001 UTC (8 years, 2 months ago) by rbb
Original Path: httpd/httpd/trunk/server/mpm/worker/fdqueue.h
File length: 4028 byte(s)
Diff to previous 90635 (colored)
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>

Revision 90635 - (view) (annotate) - [select for diffs]
Modified Fri Aug 24 16:49:39 2001 UTC (8 years, 3 months ago) by rbb
Original Path: httpd/httpd/trunk/server/mpm/worker/fdqueue.h
File length: 4032 byte(s)
Diff to previous 90491 (colored)
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>]

Revision 90491 - (view) (annotate) - [select for diffs]
Modified Wed Aug 22 15:40:29 2001 UTC (8 years, 3 months ago) by martin
Original Path: httpd/httpd/trunk/server/mpm/worker/fdqueue.h
File length: 3931 byte(s)
Diff to previous 89930 (colored)
Use uniform wrapping for unistd.h, and don't include it if it's aready included via fileio.h

Revision 89930 - (view) (annotate) - [select for diffs]
Modified Sun Aug 5 18:41:38 2001 UTC (8 years, 3 months ago) by rbb
Original Path: httpd/httpd/trunk/server/mpm/worker/fdqueue.h
File length: 3902 byte(s)
Diff to previous 89921 (colored)
Get the worker MPM working again.  This should fix the serialization
problems, and it makes up initialize the queue only once.

Revision 89921 - (view) (annotate) - [select for diffs]
Modified Sat Aug 4 11:40:16 2001 UTC (8 years, 3 months ago) by trawick
Original Path: httpd/httpd/trunk/server/mpm/worker/fdqueue.h
File length: 3882 byte(s)
Diff to previous 89781 (colored)
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

Revision 89781 - (view) (annotate) - [select for diffs]
Added Mon Jul 30 05:02:53 2001 UTC (8 years, 3 months ago) by rbb
Original Path: httpd/httpd/trunk/server/mpm/worker/fdqueue.h
File length: 3833 byte(s)
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.

  Diffs between and
  Type of Diff should be a

apache@apache.org
ViewVC Help
Powered by ViewVC 1.1.2