NetSurf
|
Parameters controlling the backing store. More...
Data Fields | |
char * | path |
The path to the backing store. More... | |
size_t | limit |
The backing store upper bound target size. More... | |
size_t | hysteresis |
The hysteresis around the target size. More... | |
hashmap_t * | entries |
The cache object hash. More... | |
bool | entries_dirty |
flag indicating if the entries have been made persistent since they were last changed. More... | |
struct block_file | blocks [ENTRY_ELEM_COUNT][BLOCK_FILE_COUNT] |
small block indexes More... | |
bool | blocks_dirty |
flag indicating if the block file use maps have been made persistent since they were last changed. More... | |
bool | blocks_opened |
flag indicating if a block file has been opened for update since maintenance was previously done. More... | |
uint64_t | total_alloc |
total size of all allocated storage. More... | |
size_t | hit_count |
number of cache hits More... | |
uint64_t | hit_size |
size of storage served More... | |
size_t | miss_count |
number of cache misses More... | |
Parameters controlling the backing store.
Definition at line 197 of file fs_backing_store.c.
struct block_file store_state::blocks[ENTRY_ELEM_COUNT][BLOCK_FILE_COUNT] |
small block indexes
Definition at line 214 of file fs_backing_store.c.
Referenced by alloc_block(), finalise(), invalidate_element(), read_blocks(), set_block_extents(), store_read_block(), store_write_block(), and write_blocks().
bool store_state::blocks_dirty |
flag indicating if the block file use maps have been made persistent since they were last changed.
Definition at line 219 of file fs_backing_store.c.
Referenced by alloc_block(), and write_blocks().
bool store_state::blocks_opened |
flag indicating if a block file has been opened for update since maintenance was previously done.
Definition at line 224 of file fs_backing_store.c.
Referenced by set_block_extents(), store_read_block(), and store_write_block().
hashmap_t* store_state::entries |
The cache object hash.
Definition at line 206 of file fs_backing_store.c.
Referenced by finalise(), get_store_entry(), initialise(), invalidate_entry(), read_entries(), set_store_entry(), store_evict(), and write_entries().
bool store_state::entries_dirty |
flag indicating if the entries have been made persistent since they were last changed.
Definition at line 211 of file fs_backing_store.c.
Referenced by get_store_entry(), set_store_entry(), and write_entries().
size_t store_state::hit_count |
number of cache hits
Definition at line 230 of file fs_backing_store.c.
Referenced by fetch(), and finalise().
uint64_t store_state::hit_size |
size_t store_state::hysteresis |
The hysteresis around the target size.
Definition at line 201 of file fs_backing_store.c.
Referenced by initialise(), and store_evict().
size_t store_state::limit |
The backing store upper bound target size.
Definition at line 200 of file fs_backing_store.c.
Referenced by initialise(), and store_evict().
size_t store_state::miss_count |
number of cache misses
Definition at line 232 of file fs_backing_store.c.
Referenced by fetch(), and finalise().
char* store_state::path |
The path to the backing store.
Definition at line 199 of file fs_backing_store.c.
Referenced by finalise(), initialise(), read_blocks(), read_control(), read_entries(), store_fname(), unlink_entries(), write_blocks(), write_cache_tag(), write_control(), and write_entries().
uint64_t store_state::total_alloc |
total size of all allocated storage.
Definition at line 228 of file fs_backing_store.c.
Referenced by initialise(), invalidate_element(), read_entries(), set_store_entry(), and store_evict().