public class StorageStats.Bucket extends Object
Constructor and Description |
---|
StorageStats.Bucket(DataInputStream instr) |
StorageStats.Bucket(int size,
int startRange) |
Modifier and Type | Method and Description |
---|---|
void |
addAlocator() |
void |
addSlots(int slots) |
void |
allocate(int sze) |
void |
commit() |
void |
delete(int sze) |
long |
emptySlots() |
int |
meanAllocation()
MeanAllocation: (total application bytes used across all allocations for this slot size) / SlotsAllocated
|
float |
percentAllocations(long totalAllocations)
%SlotsAllocated: SlotsAllocated/(Sum of SlotsAllocated across all
slot sizes).
|
float |
percentSlotsInuse(long totalInuse)
%SlotsInUse: SlotsInUse / (total SlotsInUse across all slots sizes).
|
long |
reservedSlots() |
long |
reservedStore()
BytesReserved: The space reserved on the backing file for those allocation slots (AllocatorSlots * SlotsReserved).
|
void |
reset() |
float |
slotChurn()
SlotsChurn: A measure of how frequently slots of this size are
re-allocated provided by slotsAllocated/slotsReserved.
|
float |
slotsUnused()
%SlotsUnused: The percentage of slots of this size which are not in use (1-(SlotsInUse/SlotsReserved)).
|
float |
slotWaste()
%SlotWaste: How well the application data fits in the slots (BytesAppData/(SlotsInUse*AllocatorSize)).
|
float |
totalWaste(long total) |
long |
usedSlots()
SlotsInUse: SlotsAllocated - SlotsRecycled (net slots in use for this slot size).
|
long |
usedStore()
BytesAppData: The #of bytes in the allocated slots which are used by
application data (including the record checksum).
|
void |
write(DataOutputStream outstr) |
public StorageStats.Bucket(int size, int startRange)
public StorageStats.Bucket(DataInputStream instr) throws IOException
IOException
public void write(DataOutputStream outstr) throws IOException
IOException
public void commit()
public void reset()
public void delete(int sze)
public void allocate(int sze)
public void addSlots(int slots)
public long usedSlots()
public long emptySlots()
public long usedStore()
#m_sizeDeletes
could not being tracked correctly in the
StorageStats
because we do not know the actual #of bytes
in the slot that contain application data when we finally recycle
the slot.
See BLZG-1646 BytesAppData counter can not be tracked accurately and should be removedpublic float slotWaste()
public float totalWaste(long total)
public long reservedStore()
public long reservedSlots()
public void addAlocator()
public float slotChurn()
public float slotsUnused()
public float percentAllocations(long totalAllocations)
totalAllocations
- The #of allocations across all slot sizes.public float percentSlotsInuse(long totalInuse)
totalInuse
- The total of SlotsInUse across all slot sizes.public int meanAllocation()
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.