Files | |
| file | ncache.c |
| file | ncache.h |
Defines | |
| #define | PINT_ncache_options PINT_tcache_options |
Functions | |
| void | PINT_ncache_enable_perf_counter (struct PINT_perf_counter *pc) |
| int | PINT_ncache_initialize (void) |
| void | PINT_ncache_finalize (void) |
| int | PINT_ncache_get_info (enum PINT_ncache_options option, unsigned int *arg) |
| int | PINT_ncache_set_info (enum PINT_ncache_options option, unsigned int arg) |
| int | PINT_ncache_get_cached_entry (const char *entry, PVFS_object_ref *entry_ref, const PVFS_object_ref *parent_ref) |
| int | PINT_ncache_update (const char *entry, const PVFS_object_ref *entry_ref, const PVFS_object_ref *parent_ref) |
| void | PINT_ncache_invalidate (const char *entry, const PVFS_object_ref *parent_ref) |
Variables | |
| PINT_perf_key | ncache_keys [] |
| PINT_perf_key | ncache_keys [] |
A timeout is associated with each entry to dictate when it will expire. The ncache is built on top of the generic tcache caching component. The NCACHE component will cache the following:
Notes:
|
|
|
|
|
Enables perf counter instrumentation of the ncache.
|
|
|
Finalizes and destroys the ncache, frees all cached entries.
|
Here is the call graph for this function:

|
||||||||||||||||
|
Retrieves a _copy_ of a cached object reference, and reports the status to indicate if they are valid or not.
|
Here is the call graph for this function:

|
||||||||||||
|
Retrieves parameters from the ncache.
|
Here is the call graph for this function:

|
|
Initializes the ncache.
|
Here is the call graph for this function:

|
||||||||||||
|
Invalidates a cache entry (if present).
|
Here is the call graph for this function:

|
||||||||||||
|
Sets optional parameters in the ncache.
|
Here is the call graph for this function:

|
||||||||||||||||
|
Adds a name to the cache, or updates it if already present. The given name is _copied_ into the cache.
|
Here is the call graph for this function:

|
|
ncache performance counter keys
|
|
|
Initial value:
{
{"NCACHE_NUM_ENTRIES", PERF_NCACHE_NUM_ENTRIES, PINT_PERF_PRESERVE},
{"NCACHE_SOFT_LIMIT", PERF_NCACHE_SOFT_LIMIT, PINT_PERF_PRESERVE},
{"NCACHE_HARD_LIMIT", PERF_NCACHE_HARD_LIMIT, PINT_PERF_PRESERVE},
{"NCACHE_HITS", PERF_NCACHE_HITS, 0},
{"NCACHE_MISSES", PERF_NCACHE_MISSES, 0},
{"NCACHE_UPDATES", PERF_NCACHE_UPDATES, 0},
{"NCACHE_PURGES", PERF_NCACHE_PURGES, 0},
{"NCACHE_REPLACEMENTS", PERF_NCACHE_REPLACEMENTS, 0},
{"NCACHE_DELETIONS", PERF_NCACHE_DELETIONS, 0},
{"NCACHE_ENABLED", PERF_NCACHE_ENABLED, PINT_PERF_PRESERVE},
{NULL, 0, 0},
}
|
1.3.5