| 1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> |
| 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 3 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 4 | <head> |
| 5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
| 6 | <title>DB_ENV->get_cachesize()</title> |
| 7 | <link rel="stylesheet" href="apiReference.css" type="text/css" /> |
| 8 | <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" /> |
| 9 | <link rel="start" href="index.html" title="Berkeley DB C API Reference" /> |
| 10 | <link rel="up" href="memp.html" title="Chapter 8. The DB_MPOOLFILE Handle" /> |
| 11 | <link rel="prev" href="envget_cache_max.html" title="DB_ENV->get_cache_max()" /> |
| 12 | <link rel="next" href="mempget_mp_max_openfd.html" title="DB_ENV->get_mp_max_openfd()" /> |
| 13 | </head> |
| 14 | <body> |
| 15 | <div xmlns="" class="navheader"> |
| 16 | <div class="libver"> |
| 17 | <p>Library Version 11.2.5.3</p> |
| 18 | </div> |
| 19 | <table width="100%" summary="Navigation header"> |
| 20 | <tr> |
| 21 | <th colspan="3" align="center">DB_ENV->get_cachesize()</th> |
| 22 | </tr> |
| 23 | <tr> |
| 24 | <td width="20%" align="left"><a accesskey="p" href="envget_cache_max.html">Prev</a> </td> |
| 25 | <th width="60%" align="center">Chapter 8. |
| 26 | The DB_MPOOLFILE Handle |
| 27 | </th> |
| 28 | <td width="20%" align="right"> <a accesskey="n" href="mempget_mp_max_openfd.html">Next</a></td> |
| 29 | </tr> |
| 30 | </table> |
| 31 | <hr /> |
| 32 | </div> |
| 33 | <div class="sect1" lang="en" xml:lang="en"> |
| 34 | <div class="titlepage"> |
| 35 | <div> |
| 36 | <div> |
| 37 | <h2 class="title" style="clear: both"><a id="envget_cachesize"></a>DB_ENV->get_cachesize()</h2> |
| 38 | </div> |
| 39 | </div> |
| 40 | </div> |
| 41 | <pre class="programlisting">#include <db.h> |
| 42 | |
| 43 | int |
| 44 | DB_ENV->get_cachesize(DB_ENV *dbenv, |
| 45 | u_int32_t *gbytesp, u_int32_t *bytesp, int *ncachep); </pre> |
| 46 | <p> |
| 47 | The <code class="methodname">DB_ENV->get_cachesize()</code> method returns the current size and |
| 48 | composition of the cache, as set using the |
| 49 | <a class="xref" href="envset_cachesize.html" title="DB_ENV->set_cachesize()">DB_ENV->set_cachesize()</a> |
| 50 | method. |
| 51 | </p> |
| 52 | <p> |
| 53 | The <code class="methodname">DB_ENV->get_cachesize()</code> method may be called at any time during |
| 54 | the life of the application. |
| 55 | </p> |
| 56 | <p> |
| 57 | The <code class="methodname">DB_ENV->get_cachesize()</code> <span> |
| 58 | <span> |
| 59 | method returns a non-zero error value on failure and 0 on success. |
| 60 | </span> |
| 61 | |
| 62 | </span> |
| 63 | </p> |
| 64 | <div class="sect2" lang="en" xml:lang="en"> |
| 65 | <div class="titlepage"> |
| 66 | <div> |
| 67 | <div> |
| 68 | <h3 class="title"><a id="idp53155608"></a>Parameters</h3> |
| 69 | </div> |
| 70 | </div> |
| 71 | </div> |
| 72 | <div class="sect3" lang="en" xml:lang="en"> |
| 73 | <div class="titlepage"> |
| 74 | <div> |
| 75 | <div> |
| 76 | <h4 class="title"><a id="idp53154704"></a>gbytesp</h4> |
| 77 | </div> |
| 78 | </div> |
| 79 | </div> |
| 80 | <p> |
| 81 | The <span class="bold"><strong>gbytesp</strong></span> parameter references |
| 82 | memory into which the gigabytes of memory in the cache is copied. |
| 83 | </p> |
| 84 | </div> |
| 85 | <div class="sect3" lang="en" xml:lang="en"> |
| 86 | <div class="titlepage"> |
| 87 | <div> |
| 88 | <div> |
| 89 | <h4 class="title"><a id="idp53145312"></a>bytesp</h4> |
| 90 | </div> |
| 91 | </div> |
| 92 | </div> |
| 93 | <p> |
| 94 | The <span class="bold"><strong>bytesp</strong></span> parameter references |
| 95 | memory into which the additional bytes of memory in the cache is |
| 96 | copied. |
| 97 | </p> |
| 98 | </div> |
| 99 | <div class="sect3" lang="en" xml:lang="en"> |
| 100 | <div class="titlepage"> |
| 101 | <div> |
| 102 | <div> |
| 103 | <h4 class="title"><a id="idp53155024"></a>ncachep</h4> |
| 104 | </div> |
| 105 | </div> |
| 106 | </div> |
| 107 | <p> |
| 108 | The <span class="bold"><strong>ncachep</strong></span> parameter references |
| 109 | memory into which the number of caches is copied. |
| 110 | </p> |
| 111 | </div> |
| 112 | </div> |
| 113 | <div class="sect2" lang="en" xml:lang="en"> |
| 114 | <div class="titlepage"> |
| 115 | <div> |
| 116 | <div> |
| 117 | <h3 class="title"><a id="idp53158112"></a>Class</h3> |
| 118 | </div> |
| 119 | </div> |
| 120 | </div> |
| 121 | <p> |
| 122 | <a class="link" href="env.html" title="Chapter 5. The DB_ENV Handle">DB_ENV</a> |
| 123 | </p> |
| 124 | </div> |
| 125 | <div class="sect2" lang="en" xml:lang="en"> |
| 126 | <div class="titlepage"> |
| 127 | <div> |
| 128 | <div> |
| 129 | <h3 class="title"><a id="idp53159600"></a>See Also</h3> |
| 130 | </div> |
| 131 | </div> |
| 132 | </div> |
| 133 | <p> |
| 134 | <a class="xref" href="memp.html#memplist" title="Memory Pools and Related Methods">Memory Pools and Related Methods</a>, |
| 135 | <a class="xref" href="env.html#envlist" title="Database Environments and Related Methods">Database Environments and Related Methods</a>, |
| 136 | <a class="xref" href="envset_cachesize.html" title="DB_ENV->set_cachesize()">DB_ENV->set_cachesize()</a> |
| 137 | </p> |
| 138 | </div> |
| 139 | </div> |
| 140 | <div class="navfooter"> |
| 141 | <hr /> |
| 142 | <table width="100%" summary="Navigation footer"> |
| 143 | <tr> |
| 144 | <td width="40%" align="left"><a accesskey="p" href="envget_cache_max.html">Prev</a> </td> |
| 145 | <td width="20%" align="center"> |
| 146 | <a accesskey="u" href="memp.html">Up</a> |
| 147 | </td> |
| 148 | <td width="40%" align="right"> <a accesskey="n" href="mempget_mp_max_openfd.html">Next</a></td> |
| 149 | </tr> |
| 150 | <tr> |
| 151 | <td width="40%" align="left" valign="top">DB_ENV->get_cache_max() </td> |
| 152 | <td width="20%" align="center"> |
| 153 | <a accesskey="h" href="index.html">Home</a> |
| 154 | </td> |
| 155 | <td width="40%" align="right" valign="top"> DB_ENV->get_mp_max_openfd()</td> |
| 156 | </tr> |
| 157 | </table> |
| 158 | </div> |
| 159 | </body> |
| 160 | </html> |