summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/man/lh_stats.3
blob: a9d5f9e67b4824aa2443388a711b6cee2574e145 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
.\"	$OpenBSD: lh_stats.3,v 1.2 2016/11/06 15:52:50 jmc Exp $
.\"
.Dd $Mdocdate: November 6 2016 $
.Dt LH_STATS 3
.Os
.Sh NAME
.Nm lh_stats ,
.Nm lh_node_stats ,
.Nm lh_node_usage_stats ,
.Nm lh_stats_bio ,
.Nm lh_node_stats_bio ,
.Nm lh_node_usage_stats_bio
.Nd LHASH statistics
.Sh SYNOPSIS
.In openssl/lhash.h
.Ft void
.Fo lh_stats
.Fa "LHASH *table"
.Fa "FILE *out"
.Fc
.Ft void
.Fo lh_node_stats
.Fa "LHASH *table"
.Fa "FILE *out"
.Fc
.Ft void
.Fo lh_node_usage_stats
.Fa "LHASH *table"
.Fa "FILE *out"
.Fc
.Ft void
.Fo lh_stats_bio
.Fa "LHASH *table"
.Fa "BIO *out"
.Fc
.Ft void
.Fo lh_node_stats_bio
.Fa "LHASH *table"
.Fa "BIO *out"
.Fc
.Ft void
.Fo lh_node_usage_stats_bio
.Fa "LHASH *table"
.Fa "BIO *out"
.Fc
.Sh DESCRIPTION
The
.Vt LHASH
structure records statistics about most aspects of accessing the hash
table.
.Pp
.Fn 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.
.Pp
.Fn lh_node_stats
prints the number of entries for each 'bucket' in the hash table.
.Pp
.Fn 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.
.Pp
.Fn lh_stats_bio ,
.Fn lh_node_stats_bio ,
and
.Fn lh_node_usage_stats_bio
are the same as the above, except that the output goes to a
.Vt BIO .
.Sh RETURN VALUES
These functions do not return values.
.Sh SEE ALSO
.Xr bio 3 ,
.Xr lh_new 3
.Sh HISTORY
These functions are available in all versions of SSLeay and OpenSSL.
.Sh AUTHORS
.An Eric Young