org.eclipse.jgit.storage.dht
Class DhtReader.Statistics.ChunkAccess

java.lang.Object
  extended by org.eclipse.jgit.storage.dht.DhtReader.Statistics.ChunkAccess
Enclosing class:
DhtReader.Statistics

public static final class DhtReader.Statistics.ChunkAccess
extends java.lang.Object

Summary describing how a chunk was accessed.


Field Summary
 ChunkKey chunkKey
          Chunk this access block describes.
 int cntCopyObjectAsIs_InvalidChunk
          Number of times the reader tried to copy an object from this chunk, but discovered the chunk was corrupt or did not contain the object as expected.
 int cntCopyObjectAsIs_PrefetchMiss
          Number of times the reader needed this chunk to copy an object as-is into a pack stream, but the prefetcher didn't have it ready.
 int cntPrefetcher_Load
          Number of times the prefetcher loaded from the database.
 int cntPrefetcher_OutOfOrder
          Number of times the prefetcher ordering was wrong.
 int cntPrefetcher_Revisited
          Number of times the reader asked the prefetcher for the same chunk after it was already consumed from the prefetcher.
 int cntPrefetcher_WaitedForLoad
          Number of times the reader had to stall to wait for a chunk that is currently being prefetched to finish loading and become ready.
 int cntReader_Load
          Number of times chunk was loaded sequentially.
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

chunkKey

public final ChunkKey chunkKey
Chunk this access block describes.


cntReader_Load

public int cntReader_Load
Number of times chunk was loaded sequentially. Incremented when the reader had to load the chunk on demand with no cache or prefetcher support.


cntPrefetcher_Load

public int cntPrefetcher_Load
Number of times the prefetcher loaded from the database. Incremented each time the prefetcher asked for the chunk from the underlying database (which might have its own distributed cache, or not).


cntPrefetcher_OutOfOrder

public int cntPrefetcher_OutOfOrder
Number of times the prefetcher ordering was wrong. Incremented if a reader wants a chunk but the prefetcher didn't have it ready at the time of request. This indicates a bad prefetching plan as the chunk should have been listed earlier in the prefetcher's list.


cntPrefetcher_WaitedForLoad

public int cntPrefetcher_WaitedForLoad
Number of times the reader had to stall to wait for a chunk that is currently being prefetched to finish loading and become ready. This indicates the prefetcher may have fetched other chunks first (had the wrong order), or does not have a deep enough window to hide these loads from the application.


cntPrefetcher_Revisited

public int cntPrefetcher_Revisited
Number of times the reader asked the prefetcher for the same chunk after it was already consumed from the prefetcher. This indicates the reader has walked back on itself and revisited a chunk again.


cntCopyObjectAsIs_PrefetchMiss

public int cntCopyObjectAsIs_PrefetchMiss
Number of times the reader needed this chunk to copy an object as-is into a pack stream, but the prefetcher didn't have it ready. This correlates with cntPrefetcher_OutOfOrder or cntPrefetcher_Revisited.


cntCopyObjectAsIs_InvalidChunk

public int cntCopyObjectAsIs_InvalidChunk
Number of times the reader tried to copy an object from this chunk, but discovered the chunk was corrupt or did not contain the object as expected.

Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2011. All Rights Reserved.