| 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_tuner</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="utilities.html" title="Appendix A. Berkeley DB Command Line Utilities" /> |
| 11 | <link rel="prev" href="db_stat.html" title="db_stat" /> |
| 12 | <link rel="next" href="db_upgrade.html" title="db_upgrade" /> |
| 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_tuner</th> |
| 22 | </tr> |
| 23 | <tr> |
| 24 | <td width="20%" align="left"><a accesskey="p" href="db_stat.html">Prev</a> </td> |
| 25 | <th width="60%" align="center">Appendix A. |
| 26 | Berkeley DB Command Line Utilities |
| 27 | </th> |
| 28 | <td width="20%" align="right"> <a accesskey="n" href="db_upgrade.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="db_tuner"></a>db_tuner</h2> |
| 38 | </div> |
| 39 | </div> |
| 40 | </div> |
| 41 | <pre class="programlisting">db_tuner [-c cachesize] -d file [-h home] [-s database] [-v] </pre> |
| 42 | <p> |
| 43 | The <span class="command"><strong>db_tuner</strong></span> utility analyzes the data in a btree database, and suggests a page size that is likely to deliver optimal operation. |
| 44 | </p> |
| 45 | <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"> |
| 46 | <h3 class="title">Note</h3> |
| 47 | <p> |
| 48 | The <span class="command"><strong>db_tuner</strong></span> utility assumes that databases are compacted when analysing the data. The analysis is based on a static view of the data and the data access and update patterns are not take into account. |
| 49 | </p> |
| 50 | </div> |
| 51 | <p> |
| 52 | The options are as follows: |
| 53 | </p> |
| 54 | <div class="itemizedlist"> |
| 55 | <ul type="disc"> |
| 56 | <li> |
| 57 | <p> |
| 58 | <span class="bold"><strong>-c</strong></span> |
| 59 | </p> |
| 60 | <p> |
| 61 | Specify a value of the cachesize, otherwise, the default value will |
| 62 | be set. |
| 63 | </p> |
| 64 | </li> |
| 65 | <li> |
| 66 | <p> |
| 67 | <span class="bold"><strong>-d</strong></span> |
| 68 | </p> |
| 69 | <p> |
| 70 | Display database statistics for the specified file. If the database contains multiple databases and the -s flag is not specified, the statistics are for the internal database that describes the other databases the file contains, and not for the file as a whole. |
| 71 | </p> |
| 72 | </li> |
| 73 | <li> |
| 74 | <p> |
| 75 | <span class="bold"><strong>-h</strong></span> |
| 76 | </p> |
| 77 | <p> |
| 78 | Specify a home directory for the database environment. |
| 79 | </p> |
| 80 | </li> |
| 81 | <li> |
| 82 | <p> |
| 83 | <span class="bold"><strong>-s</strong></span> |
| 84 | </p> |
| 85 | <p> |
| 86 | Display page size recommendation for the specified database contained in the file specified with the -d flag. |
| 87 | </p> |
| 88 | </li> |
| 89 | <li> |
| 90 | <p> |
| 91 | <span class="bold"><strong>-v</strong></span> |
| 92 | </p> |
| 93 | <p> |
| 94 | Display verbose information. |
| 95 | </p> |
| 96 | </li> |
| 97 | </ul> |
| 98 | </div> |
| 99 | </div> |
| 100 | <div class="navfooter"> |
| 101 | <hr /> |
| 102 | <table width="100%" summary="Navigation footer"> |
| 103 | <tr> |
| 104 | <td width="40%" align="left"><a accesskey="p" href="db_stat.html">Prev</a> </td> |
| 105 | <td width="20%" align="center"> |
| 106 | <a accesskey="u" href="utilities.html">Up</a> |
| 107 | </td> |
| 108 | <td width="40%" align="right"> <a accesskey="n" href="db_upgrade.html">Next</a></td> |
| 109 | </tr> |
| 110 | <tr> |
| 111 | <td width="40%" align="left" valign="top">db_stat </td> |
| 112 | <td width="20%" align="center"> |
| 113 | <a accesskey="h" href="index.html">Home</a> |
| 114 | </td> |
| 115 | <td width="40%" align="right" valign="top"> db_upgrade</td> |
| 116 | </tr> |
| 117 | </table> |
| 118 | </div> |
| 119 | </body> |
| 120 | </html> |