#95: Bibclassify - list of tasks to finish
--------------------------+-------------------------------------------------
  Reporter:  rchyla       |       Owner:  rchyla
      Type:  enhancement  |      Status:  closed
  Priority:  minor        |   Milestone:  v1.0  
 Component:  BibClassify  |     Version:        
Resolution:  worksforme   |    Keywords:        
--------------------------+-------------------------------------------------
Changes (by rchyla):

  * status:  new => closed
  * resolution:  => worksforme


Comment:

 Fixed the first 3 points, as for the cache, it depends very much on how
 mod_wsgi is configured. Done some tests, and threads have no chance of
 using global variables outside the process - there is the boundary of the
 python interpreter. Just for my reference:

 http://code.google.com/p/modwsgi/wiki/ProcessesAndThreading


 The second case is interesting, as it looks like there is only one global
 cache (the id is always the same), but wsgi always loads 5 caches, so they
 really cannot access it.

 --------- edit/reload:
 WSGIDaemonProcess invenio processes=5 threads=1

 -1228498032, cache id: 163444044, main cache: 163447236
 -1228498032, cache id: 162831180, main cache: 162842796
 -1228498032, cache id: 162831212, main cache: 162842796
 -1228498032, cache id: 162827116, main cache: 162838700
 -1228498032, cache id: 162827116, main cache: 162838700 <-- after this
 point, 5 processes created 5 caches, pages load instantly
 -1228498032, cache id: 162831180, main cache: 162842796
 -1228498032, cache id: 162827116, main cache: 162838700
 -1228498032, cache id: 162827116, main cache: 162838700
 -1228498032, cache id: 162831180, main cache: 162842796
 -1228498032, cache id: 162831212, main cache: 162842796
 -1228498032, cache id: 162827116, main cache: 162838700
 ...
 -1228498032, cache id: 163444044, main cache: 163447236


 --------- edit apache config:
 WSGIDaemonProcess invenio processes=5 threads=2
 WSGIApplicationGroup test

 -1228223600, cache id: 164146060, main cache: 164157612
 -1228223600, cache id: 164146092, main cache: 164157612
 -1228223600, cache id: 164146092, main cache: 164157612
 -1228223600, cache id: 164146092, main cache: 164157612
 -1228223600, cache id: 164146092, main cache: 164157612 <-- loaded
 -1228223600, cache id: 164146060, main cache: 164157612
 -1228223600, cache id: 164146092, main cache: 164157612
 -1228223600, cache id: 164146092, main cache: 164157612
 -1228223600, cache id: 164146092, main cache: 164157612
 -1228223600, cache id: 164146092, main cache: 164157612
 -1228223600, cache id: 164146060, main cache: 164157612
 -1228223600, cache id: 164146092, main cache: 164157612


 ---------- edit apache config:
 WSGIDaemonProcess invenio processes=5 threads=1
 WSGIApplicationGroup test

 -1220564080, cache id: 164765196, main cache: 164757956
 -1220564080, cache id: 164146028, main cache: 164157612
 -1220564080, cache id: 164141964, main cache: 164153516
 -1220564080, cache id: 164137868, main cache: 164149420
 -1220564080, cache id: 164141964, main cache: 164153516 <-- loaded
 -1220564080, cache id: 164765196, main cache: 164757956
 -1220564080, cache id: 164146028, main cache: 164157612
 -1220564080, cache id: 164141964, main cache: 164153516
 -1220564080, cache id: 164137868, main cache: 164149420
 -1220564080, cache id: 164141964, main cache: 164153516

-- 
Ticket URL: <http://invenio-software.org/ticket/95#comment:2>
Invenio <http://invenio-software.org>

Reply via email to