Issue Details (XML | Word | Printable)

Key: MODPYTHON-8
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Graham Dumpleton
Reporter: Nicolas Lehuen
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
mod_python

Improve apache.load_module with a two-level locking scheme

Created: 22/Jan/05 10:01 PM   Updated: 02/Apr/07 11:12 AM
Return to search
Component/s: importer
Affects Version/s: 3.1.3
Fix Version/s: 3.3.1

Time Tracking:
Not Specified

Issue Links:
dependent
 

Resolution Date: 12/Aug/06 08:11 AM


 Description  « Hide
We should rewrite apache.load_python with a two level locking scheme, in order to reduce thread contention when using the threading MPM.

I've already implemented something similar for a custom-made publisher system (comparable to Graham's Vampire) ; I've used a thread-safe caching system that I've donated to the Python Cookbook :

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/302997

Maybe this should be experimented in a separate branch, and merged back once we're sure that everything works perfectly ?

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Nicolas Lehuen made changes - 28/Apr/05 12:54 AM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Nicolas Lehuen made changes - 26/Jun/05 06:35 AM
Status Resolved [ 5 ] Reopened [ 4 ]
Resolution Fixed [ 1 ]
Nicolas Lehuen made changes - 29/Jul/05 12:27 AM
Fix Version/s 3.3.0 [ 12310101 ]
Description We should rewrite apache.load_python with a two level locking scheme, in order to reduce thread contention when using the threading MPM.

I've already implemented something similar for a custom-made publisher system (comparable to Graham's Vampire) ; I've used a thread-safe caching system that I've donated to the Python Cookbook :

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/302997

Maybe this should be experimented in a separate branch, and merged back once we're sure that everything works perfectly ?
We should rewrite apache.load_python with a two level locking scheme, in order to reduce thread contention when using the threading MPM.

I've already implemented something similar for a custom-made publisher system (comparable to Graham's Vampire) ; I've used a thread-safe caching system that I've donated to the Python Cookbook :

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/302997

Maybe this should be experimented in a separate branch, and merged back once we're sure that everything works perfectly ?
Environment
Fix Version/s 3.2.0 [ 11060 ]
Nicolas Lehuen made changes - 22/Oct/05 04:02 PM
Component/s importer [ 12310385 ]
Graham Dumpleton made changes - 10/Mar/06 01:40 PM
Link This issue depends upon MODPYTHON-143 [ MODPYTHON-143 ]
Graham Dumpleton made changes - 01/Apr/06 02:18 PM
Assignee Nicolas Lehuen [ nlehuen ] Graham Dumpleton [ grahamd ]
Graham Dumpleton made changes - 01/Apr/06 02:19 PM
Status Reopened [ 4 ] In Progress [ 3 ]
Graham Dumpleton made changes - 12/Aug/06 08:11 AM
Status In Progress [ 3 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Graham Dumpleton made changes - 02/Apr/07 11:12 AM
Status Resolved [ 5 ] Closed [ 6 ]