Project

General

Profile

Actions

Bug #2058

closed

redux caching problems

Added by Jim Pulokas over 12 years ago. Updated almost 12 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
-
Start date:
09/21/2012
Due date:
% Done:

0%

Estimated time:
Affected Version:
Appion/Leginon 3.0.0
Show in known bugs:
No
Workaround:

Description

Consolidating similar issues into one issue.

redux cache has two known issues:

  1. "pop from empty list" exceptions: This is likely due to multithreaded or multiprocess access to the same redux cache. The redux server is a multithreaded socket server, but no thread locks were placed around access to the cache. The fix in r17109 should take care of this, but further testing is needed to prove that it is fixed. It is also recommened to increase the cache size (both memory and disk) in pipeline.py. The small hard coded sizes are barely enough to cache a single request in some cases, leading to more frequent "empty list" exceptions.
  1. some images being cached that should not be: When cache is turned on, it caches everything. Some images, particularly in appion are not "constant". They are written to disk and then later modified in place. For example, a stack file that is being appended to. Images generated for the web by redux should not be cached in these cases, because the cached image will not be up to date with the latest raw data. The current fix is to turn off the cache completely in pipeline.py. Proper solution will be to allow caching only specific results.

Related issues 4 (0 open4 closed)

Related to Leginon - Bug #2005: redux crashing on fftClosedScott Stagg08/17/2012

Actions
Has duplicate Appion - Bug #2035: disable or modify redux caching for stack viewingDuplicateJim Pulokas09/05/2012

Actions
Has duplicate Appion - Bug #2057: Redux crashes when loading film imageDuplicateJim Pulokas09/20/2012

Actions
Has duplicate Leginon - Bug #1762: redux cache remove errorDuplicate04/27/2012

Actions
Actions

Also available in: Atom PDF