You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mod_python-dev@quetz.apache.org by "Nicolas Lehuen (JIRA)" <ji...@apache.org> on 2005/01/22 14:04:19 UTC

[jira] Created: (MODPYTHON-8) Improve apache.load_module with a two-level locking scheme

Improve apache.load_module with a two-level locking scheme
----------------------------------------------------------

         Key: MODPYTHON-8
         URL: http://issues.apache.org/jira/browse/MODPYTHON-8
     Project: mod_python
        Type: Improvement
    Versions: 3.1.3    
    Reporter: Nicolas Lehuen
 Assigned to: Nicolas Lehuen 
     Fix For: 3.1.4


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 ?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Closed: (MODPYTHON-8) Improve apache.load_module with a two-level locking scheme

Posted by "Graham Dumpleton (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MODPYTHON-8?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Graham Dumpleton closed MODPYTHON-8.
------------------------------------


> Improve apache.load_module with a two-level locking scheme
> ----------------------------------------------------------
>
>                 Key: MODPYTHON-8
>                 URL: https://issues.apache.org/jira/browse/MODPYTHON-8
>             Project: mod_python
>          Issue Type: Improvement
>          Components: importer
>    Affects Versions: 3.1.3
>            Reporter: Nicolas Lehuen
>         Assigned To: Graham Dumpleton
>             Fix For: 3.3
>
>
> 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 ?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Reopened: (MODPYTHON-8) Improve apache.load_module with a two-level locking scheme

Posted by "Nicolas Lehuen (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/MODPYTHON-8?page=all ]
     
Nicolas Lehuen reopened MODPYTHON-8:
------------------------------------


This is not really fixed. The publisher's implementation now uses its own system to load the published modules, but apache.import_module has not changed. A great deal of discussion has been done on this issue on the mailing list, but no decision has been made yet.

> Improve apache.load_module with a two-level locking scheme
> ----------------------------------------------------------
>
>          Key: MODPYTHON-8
>          URL: http://issues.apache.org/jira/browse/MODPYTHON-8
>      Project: mod_python
>         Type: Improvement
>     Versions: 3.1.3
>     Reporter: Nicolas Lehuen
>     Assignee: Nicolas Lehuen
>      Fix For: 3.2.0

>
> 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 ?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (MODPYTHON-8) Improve apache.load_module with a two-level locking scheme

Posted by "Graham Dumpleton (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/MODPYTHON-8?page=all ]

Graham Dumpleton updated MODPYTHON-8:
-------------------------------------

    Assign To: Graham Dumpleton  (was: Nicolas Lehuen)

> Improve apache.load_module with a two-level locking scheme
> ----------------------------------------------------------
>
>          Key: MODPYTHON-8
>          URL: http://issues.apache.org/jira/browse/MODPYTHON-8
>      Project: mod_python
>         Type: Improvement
>   Components: importer
>     Versions: 3.1.3
>     Reporter: Nicolas Lehuen
>     Assignee: Graham Dumpleton
>      Fix For: 3.3

>
> 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 ?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (MODPYTHON-8) Improve apache.load_module with a two-level locking scheme

Posted by "Nicolas Lehuen (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/MODPYTHON-8?page=all ]

Nicolas Lehuen updated MODPYTHON-8:
-----------------------------------

    Fix Version: 3.3.0
                     (was: 3.2.0)
    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 ?

  was:
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: 

> Improve apache.load_module with a two-level locking scheme
> ----------------------------------------------------------
>
>          Key: MODPYTHON-8
>          URL: http://issues.apache.org/jira/browse/MODPYTHON-8
>      Project: mod_python
>         Type: Improvement
>     Versions: 3.1.3
>     Reporter: Nicolas Lehuen
>     Assignee: Nicolas Lehuen
>      Fix For: 3.3.0

>
> 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 ?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (MODPYTHON-8) Improve apache.load_module with a two-level locking scheme

Posted by "Nicolas Lehuen (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/MODPYTHON-8?page=all ]

Nicolas Lehuen updated MODPYTHON-8:
-----------------------------------

    Component: importer

> Improve apache.load_module with a two-level locking scheme
> ----------------------------------------------------------
>
>          Key: MODPYTHON-8
>          URL: http://issues.apache.org/jira/browse/MODPYTHON-8
>      Project: mod_python
>         Type: Improvement
>   Components: importer
>     Versions: 3.1.3
>     Reporter: Nicolas Lehuen
>     Assignee: Nicolas Lehuen
>      Fix For: 3.3

>
> 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 ?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (MODPYTHON-8) Improve apache.load_module with a two-level locking scheme

Posted by "Nicolas Lehuen (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/MODPYTHON-8?page=all ]
     
Nicolas Lehuen resolved MODPYTHON-8:
------------------------------------

    Resolution: Fixed

Done, along with a fix for MODPYTHON-9.

> Improve apache.load_module with a two-level locking scheme
> ----------------------------------------------------------
>
>          Key: MODPYTHON-8
>          URL: http://issues.apache.org/jira/browse/MODPYTHON-8
>      Project: mod_python
>         Type: Improvement
>     Versions: 3.1.3
>     Reporter: Nicolas Lehuen
>     Assignee: Nicolas Lehuen
>      Fix For: 3.2.0

>
> 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 ?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Work started: (MODPYTHON-8) Improve apache.load_module with a two-level locking scheme

Posted by "Graham Dumpleton (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/MODPYTHON-8?page=all ]
     
Work on MODPYTHON-8 started by Graham Dumpleton

> Improve apache.load_module with a two-level locking scheme
> ----------------------------------------------------------
>
>          Key: MODPYTHON-8
>          URL: http://issues.apache.org/jira/browse/MODPYTHON-8
>      Project: mod_python
>         Type: Improvement
>   Components: importer
>     Versions: 3.1.3
>     Reporter: Nicolas Lehuen
>     Assignee: Graham Dumpleton
>      Fix For: 3.3

>
> 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 ?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (MODPYTHON-8) Improve apache.load_module with a two-level locking scheme

Posted by "Graham Dumpleton (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/MODPYTHON-8?page=all ]

Graham Dumpleton resolved MODPYTHON-8.
--------------------------------------

    Resolution: Fixed

Resolved by new module importer for 3.3, but for 3.3 release looks like the new importer will have to be enabled explicitly as will not be the default.

> Improve apache.load_module with a two-level locking scheme
> ----------------------------------------------------------
>
>                 Key: MODPYTHON-8
>                 URL: http://issues.apache.org/jira/browse/MODPYTHON-8
>             Project: mod_python
>          Issue Type: Improvement
>          Components: importer
>    Affects Versions: 3.1.3
>            Reporter: Nicolas Lehuen
>         Assigned To: Graham Dumpleton
>             Fix For: 3.3
>
>
> 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 ?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira