Mercurial > hg > blitz_stable
view src/org/dancres/blitz/arc/sync_cond.txt @ 23:b7e52953b7a6
Add some cache/memory statistics to help spot potential exhaustion and other tuning issues.
author | Dan Creswell <dan.creswell@gmail.com> |
---|---|
date | Fri, 28 Aug 2009 17:23:33 +0100 |
parents | 3dc0c5604566 |
children |
line wrap: on
line source
Could we schedule I/O in such a fashion as to be outside of locks involved in a deadlock situation? Cache lock = sync() lock in ArcCache. CBD lock is the individual mutex of a CBD. What are the conditions for achieving this? We must have done all cache list modifications before releasing the cache lock. - This ensures another thread doesn't, for example, recover a CBD with one id which, in fact, is being "renamed" to another id. - We must also do this to protect the state of the various lists which constitute a chunk of the cache state. Question, is the state of a CDB's content part of the cache state?