OPENSSL_LH_stats.3ssl - Man Page

LHASH statistics


 #include <openssl/lhash.h>

 void OPENSSL_LH_stats(LHASH *table, FILE *out);
 void OPENSSL_LH_node_stats(LHASH *table, FILE *out);
 void OPENSSL_LH_node_usage_stats(LHASH *table, FILE *out);

 void OPENSSL_LH_stats_bio(LHASH *table, BIO *out);
 void OPENSSL_LH_node_stats_bio(LHASH *table, BIO *out);
 void OPENSSL_LH_node_usage_stats_bio(LHASH *table, BIO *out);


The LHASH structure records statistics about most aspects of accessing the hash table.

OPENSSL_LH_stats() prints out statistics on the size of the hash table, how many entries are in it, and the number and result of calls to the routines in this library.

OPENSSL_LH_node_stats() prints the number of entries for each 'bucket' in the hash table.

OPENSSL_LH_node_usage_stats() prints out a short summary of the state of the hash table.  It prints the 'load' and the 'actual load'.  The load is the average number of data items per 'bucket' in the hash table.  The 'actual load' is the average number of items per 'bucket', but only for buckets which contain entries.  So the 'actual load' is the average number of searches that will need to find an item in the hash table, while the 'load' is the average number that will be done to record a miss.

OPENSSL_LH_stats_bio(), OPENSSL_LH_node_stats_bio() and OPENSSL_LH_node_usage_stats_bio() are the same as the above, except that the output goes to a BIO.

Return Values

These functions do not return values.


These calls should be made under a read lock. Refer to "NOTE" in OPENSSL_LH_COMPFUNC(3) for more details about the locks required when using the LHASH data structure.

See Also


Referenced By


The man pages OPENSSL_LH_node_stats.3ssl(3), OPENSSL_LH_node_stats_bio.3ssl(3), OPENSSL_LH_node_usage_stats.3ssl(3), OPENSSL_LH_node_usage_stats_bio.3ssl(3) and OPENSSL_LH_stats_bio.3ssl(3) are aliases of OPENSSL_LH_stats.3ssl(3).

2023-07-20 1.1.1q OpenSSL