1<!--$Id: linux.so,v 11.19 2004/10/18 20:10:41 bostic Exp $--> 2<!--Copyright (c) 1997,2008 Oracle. All rights reserved.--> 3<!--See the file LICENSE for redistribution information.--> 4<html> 5<head> 6<title>Berkeley DB Reference Guide: Linux</title> 7<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit."> 8<meta name="keywords" content="embedded,database,programmatic,toolkit,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,Java,C,C++"> 9</head> 10<body bgcolor=white> 11<a name="2"><!--meow--></a> 12<table width="100%"><tr valign=top> 13<td><b><dl><dt>Berkeley DB Reference Guide:<dd>Building Berkeley DB for UNIX/POSIX systems</dl></b></td> 14<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> 15</td></tr></table> 16<p align=center><b>Linux</b></p> 17<ol> 18<p><li><b>I can't compile and run multithreaded applications.</b> 19<p>Special compile-time flags are required when compiling threaded 20applications on Linux. If you are compiling a threaded application, you 21must compile with the _REENTRANT flag:</p> 22<blockquote><pre>cc -D_REENTRANT ...</pre></blockquote> 23<p>The Berkeley DB library will automatically build with the correct options.</p> 24<p><li><b>I see database corruption when accessing databases.</b> 25<p>Some Linux filesystems do not support POSIX filesystem semantics. 26Specifically, ext2 and early releases of ReiserFS, and ext3 in some 27configurations, do not support "ordered data mode" and may insert random 28data into database or log files when systems crash. Berkeley DB files should 29not be placed on a filesystem that does not support, or is not 30configured to support, POSIX semantics.</p> 31<p><li><b>What scheduler should I use?</b> 32<p>In some Linux kernels you can select schedulers, and the default is the 33"anticipatory" scheduler. We recommend not using the "anticipatory" 34scheduler for transaction processing workloads.</p> 35</ol> 36<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> 37</td></tr></table> 38<p><font size=1>Copyright (c) 1996,2008 Oracle. All rights reserved.</font> 39</body> 40</html> 41