<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="generator" content="AsciiDoc 8.6.8">
<title>RunningOnFreeBSD</title>
<link rel="stylesheet" href="./asciidoc.css" type="text/css">
<link rel="stylesheet" href="./pygments.css" type="text/css">


<script type="text/javascript" src="./asciidoc.js"></script>
<script type="text/javascript">
/*<![CDATA[*/
asciidoc.install();
/*]]>*/
</script>
<link rel="stylesheet" href="./mlton.css" type="text/css"/>
</head>
<body class="article">
<div id="banner">
<div id="banner-home">
<a href="./Home">MLton 20130715</a>
</div>
</div>
<div id="header">
<h1>RunningOnFreeBSD</h1>
</div>
<div id="content">
<div id="preamble">
<div class="sectionbody">
<div class="paragraph"><p>MLton runs fine on <a href="http://www.freebsd.org/">FreeBSD</a>.</p></div>
</div>
</div>
<div class="sect1">
<h2 id="_notes">Notes</h2>
<div class="sectionbody">
<div class="ulist"><ul>
<li>
<p>
MLton is available as a <a href="http://www.freebsd.org/">FreeBSD</a>
<a href="http://www.freebsd.org/cgi/ports.cgi?query=mlton&amp;stype=all">port</a>.
</p>
</li>
</ul></div>
</div>
</div>
<div class="sect1">
<h2 id="_known_issues">Known issues</h2>
<div class="sectionbody">
<div class="ulist"><ul>
<li>
<p>
Executables often run more slowly than on a comparable Linux
machine.  We conjecture that part of this is due to costs due to heap
resizing and kernel zeroing of pages.  Any help in solving the problem
would be appreciated.
</p>
</li>
<li>
<p>
FreeBSD defaults to a datasize limit of 512M, even if you have more
than that amount of memory in the computer. Hence, your MLton process
will be limited in the amount of memory it has. To fix this problem,
turn up the datasize and the default datasize available to a process:
Edit <span class="monospaced">/boot/loader.conf</span> to set the limits. For example, the setting
</p>
<div class="listingblock">
<div class="content monospaced">
<pre>   kern.maxdsiz="671088640"
   kern.dfldsiz="671088640"
   kern.maxssiz="134217728"</pre>
</div></div>
<div class="paragraph"><p>will give a process 640M of datasize memory, default to 640M available
and set 128M of stack size memory.</p></div>
</li>
</ul></div>
</div>
</div>
</div>
<div id="footnotes"><hr></div>
<div id="footer">
<div id="footer-text">
</div>
<div id="footer-badges">
</div>
</div>
</body>
</html>
