Debian Codegraph @

docs/api_reference/CXX/set_cache_max_parameter.html

raw symbols SCIP
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>set_cache_max</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="configuration_reference.html" title="Appendix B. DB_CONFIG Parameter Reference" />
11 <link rel="prev" href="set_cachesize_parameter.html" title="set_cachesize" />
12 <link rel="next" href="set_create_dir_parameter.html" title="set_create_dir" />
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">set_cache_max</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="set_cachesize_parameter.html">Prev</a> </td>
25 <th width="60%" align="center">Appendix B. DB_CONFIG Parameter Reference</th>
26 <td width="20%" align="right"> <a accesskey="n" href="set_create_dir_parameter.html">Next</a></td>
27 </tr>
28 </table>
29 <hr />
30 </div>
31 <div class="sect1" lang="en" xml:lang="en">
32 <div class="titlepage">
33 <div>
34 <div>
35 <h2 class="title" style="clear: both"><a id="set_cache_max_parameter"></a>set_cache_max</h2>
36 </div>
37 </div>
38 </div>
39 <p>
40 Sets the maximum size that the <code class="literal">set_cachesize</code>
41 parameter is allowed to set. The specified size is rounded to the
42 nearest multiple of the cache region size, which is the
43 initial cache size divided by the number of regions specified
44 to the <code class="literal">set_cachesize</code> parameter. If no value
45 is specified, it defaults to the initial cache size.
46 </p>
47 <p>
48 The syntax of this parameter in the <a href="../../programmer_reference/env_db_config.html#env_db_config.DB_CONFIG" class="olink">DB_CONFIG</a> file is a
49 single line with the string
50 <code class="literal">set_cache_max</code>, one or more whitespace
51 characters, and the maximum cache size in bytes, specified
52 in two parts: the gigabytes of cache and the additional
53 bytes of cache. For example:
54 </p>
55 <pre class="programlisting">set_cache_max 2 524288000</pre>
56 <p>
57 Sets the maximum cache size to 2.5GB.
58 </p>
59 <p>
60 This parameter can be changed with a simple restart of your
61 application; you do not need to re-create your environment for it
62 to be changed.
63 </p>
64 <p> For more information, see <a class="xref" href="envset_cache_max.html" title="DbEnv::set_cache_max()">DbEnv::set_cache_max()</a>.</p>
65 </div>
66 <div class="navfooter">
67 <hr />
68 <table width="100%" summary="Navigation footer">
69 <tr>
70 <td width="40%" align="left"><a accesskey="p" href="set_cachesize_parameter.html">Prev</a> </td>
71 <td width="20%" align="center">
72 <a accesskey="u" href="configuration_reference.html">Up</a>
73 </td>
74 <td width="40%" align="right"> <a accesskey="n" href="set_create_dir_parameter.html">Next</a></td>
75 </tr>
76 <tr>
77 <td width="40%" align="left" valign="top">set_cachesize </td>
78 <td width="20%" align="center">
79 <a accesskey="h" href="index.html">Home</a>
80 </td>
81 <td width="40%" align="right" valign="top"> set_create_dir</td>
82 </tr>
83 </table>
84 </div>
85 </body>
86 </html>