Go to main content

man pages section 3: Extended Library Functions, Volume 1

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

lh_stats (3openssl)

Name

lh_stats - lh_stats, lh_node_stats, lh_node_usage_stats, lh_stats_bio, LHASH statistics

Synopsis

#include <openssl/lhash.h>

void lh_stats(LHASH *table, FILE *out);
void lh_node_stats(LHASH *table, FILE *out);
void lh_node_usage_stats(LHASH *table, FILE *out);

void lh_stats_bio(LHASH *table, BIO *out);
void lh_node_stats_bio(LHASH *table, BIO *out);
void lh_node_usage_stats_bio(LHASH *table, BIO *out);

Description

lh_stats(3openssl)                  OpenSSL                 lh_stats(3openssl)



NAME
       lh_stats, lh_node_stats, lh_node_usage_stats, lh_stats_bio,
       lh_node_stats_bio, lh_node_usage_stats_bio - LHASH statistics

SYNOPSIS
        #include <openssl/lhash.h>

        void lh_stats(LHASH *table, FILE *out);
        void lh_node_stats(LHASH *table, FILE *out);
        void lh_node_usage_stats(LHASH *table, FILE *out);

        void lh_stats_bio(LHASH *table, BIO *out);
        void lh_node_stats_bio(LHASH *table, BIO *out);
        void lh_node_usage_stats_bio(LHASH *table, BIO *out);

DESCRIPTION
       The LHASH structure records statistics about most aspects of accessing
       the hash table.  This is mostly a legacy of Eric Young writing this
       library for the reasons of implementing what looked like a nice
       algorithm rather than for a particular software product.

       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.

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

       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.

       lh_stats_bio(), lh_node_stats_bio() and 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.


ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       +---------------+--------------------------+
       |ATTRIBUTE TYPE |     ATTRIBUTE VALUE      |
       +---------------+--------------------------+
       |Availability   | library/security/openssl |
       +---------------+--------------------------+
       |Stability      | Pass-through uncommitted |
       +---------------+--------------------------+

SEE ALSO
       bio(3), lhash(3)

HISTORY
       These functions are available in all versions of SSLeay and OpenSSL.

       This manpage is derived from the SSLeay documentation.



NOTES
       Source code for open source software components in Oracle Solaris can
       be found at https://www.oracle.com/downloads/opensource/solaris-source-
       code-downloads.html.

       This software was built from source available at
       https://github.com/oracle/solaris-userland.  The original community
       source was downloaded from
       https://www.openssl.org/source/openssl-1.0.2ze.tar.gz.

       Further information about this software can be found on the open source
       community website at https://www.openssl.org/.



1.0.2ze                           2022-05-03                lh_stats(3openssl)