linux.html   [plain text]


<!--$Id: linux.so,v 11.19 2004/10/18 20:10:41 bostic Exp $-->
<!--Copyright (c) 1997,2008 Oracle.  All rights reserved.-->
<!--See the file LICENSE for redistribution information.-->
<html>
<head>
<title>Berkeley DB Reference Guide: Linux</title>
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
<meta name="keywords" content="embedded,database,programmatic,toolkit,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,Java,C,C++">
</head>
<body bgcolor=white>
<a name="2"><!--meow--></a>
<table width="100%"><tr valign=top>
<td><b><dl><dt>Berkeley DB Reference Guide:<dd>Building Berkeley DB for UNIX/POSIX systems</dl></b></td>
<td align=right><a href="../build_unix/irix.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../build_unix/macosx.html"><img src="../../images/next.gif" alt="Next"></a>
</td></tr></table>
<p align=center><b>Linux</b></p>
<ol>
<p><li><b>I can't compile and run multithreaded applications.</b>
<p>Special compile-time flags are required when compiling threaded
applications on Linux.  If you are compiling a threaded application, you
must compile with the _REENTRANT flag:</p>
<blockquote><pre>cc -D_REENTRANT ...</pre></blockquote>
<p>The Berkeley DB library will automatically build with the correct options.</p>
<p><li><b>I see database corruption when accessing databases.</b>
<p>Some Linux filesystems do not support POSIX filesystem semantics.
Specifically, ext2 and early releases of ReiserFS, and ext3 in some
configurations, do not support "ordered data mode" and may insert random
data into database or log files when systems crash.  Berkeley DB files should
not be placed on a filesystem that does not support, or is not
configured to support, POSIX semantics.</p>
<p><li><b>What scheduler should I use?</b>
<p>In some Linux kernels you can select schedulers, and the default is the
"anticipatory" scheduler.  We recommend not using the "anticipatory"
scheduler for transaction processing workloads.</p>
</ol>
<table width="100%"><tr><td><br></td><td align=right><a href="../build_unix/irix.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../build_unix/macosx.html"><img src="../../images/next.gif" alt="Next"></a>
</td></tr></table>
<p><font size=1>Copyright (c) 1996,2008 Oracle.  All rights reserved.</font>
</body>
</html>