Debian Codegraph @

docs/api_reference/C/set_lg_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_lg_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 D. DB_CONFIG Parameter Reference" />
11 <link rel="prev" href="set_lg_filemode_parameter.html" title="set_lg_filemode" />
12 <link rel="next" href="set_lg_regionmax_parameter.html" title="set_lg_regionmax" />
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_lg_max</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="set_lg_filemode_parameter.html">Prev</a> </td>
25 <th width="60%" align="center">Appendix D. DB_CONFIG Parameter Reference</th>
26 <td width="20%" align="right"> <a accesskey="n" href="set_lg_regionmax_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_lg_max_parameter"></a>set_lg_max</h2>
36 </div>
37 </div>
38 </div>
39 <p>
40 Sets the maximum size of a single file in the log, in bytes.
41 The value set for this parameter may not be larger than the
42 maximum unsigned four-byte value.
43 </p>
44 <p>
45 When the logging subsystem is configured for on-disk logging, the
46 default size of a log file is 10MB.
47 </p>
48 <p>
49 When the logging subsystem is configured for in-memory logging, the
50 default size of a log file is 256KB. In addition, the configured log
51 buffer size must be larger than the log file size. (The logging
52 subsystem divides memory configured for in-memory log records into
53 "files", as database environments configured for in-memory log records
54 may exchange log records with other members of a replication group,
55 and those members may be configured to store log records on-disk.)
56 When choosing log buffer and file sizes for in-memory logs,
57 applications should ensure the in-memory log buffer size is large
58 enough that no transaction will ever span the entire buffer, and avoid
59 a state where the in-memory buffer is full and no space can be freed
60 because a transaction that started in the first log "file" is still
61 active.
62 </p>
63 <p>
64 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
65 single line with the string <code class="literal">set_lg_max</code>,
66 one or more whitespace characters, and the maximum log
67 file size in bytes.
68 </p>
69 <p>
70 If the database environment already exists when this parameter is
71 changed, it is ignored. To change this value after the environment
72 has been created, re-create your environment.
73 </p>
74 <p>For more information, see <a class="xref" href="envset_lg_max.html" title="DB_ENV-&gt;set_lg_max()">DB_ENV-&gt;set_lg_max()</a>. </p>
75 </div>
76 <div class="navfooter">
77 <hr />
78 <table width="100%" summary="Navigation footer">
79 <tr>
80 <td width="40%" align="left"><a accesskey="p" href="set_lg_filemode_parameter.html">Prev</a> </td>
81 <td width="20%" align="center">
82 <a accesskey="u" href="configuration_reference.html">Up</a>
83 </td>
84 <td width="40%" align="right"> <a accesskey="n" href="set_lg_regionmax_parameter.html">Next</a></td>
85 </tr>
86 <tr>
87 <td width="40%" align="left" valign="top">set_lg_filemode </td>
88 <td width="20%" align="center">
89 <a accesskey="h" href="index.html">Home</a>
90 </td>
91 <td width="40%" align="right" valign="top"> set_lg_regionmax</td>
92 </tr>
93 </table>
94 </div>
95 </body>
96 </html>