Import Upstream version 20180207
[hcoop/debian/mlton.git] / doc / guide / src / RunningOnFreeBSD.adoc
CommitLineData
7f918cf1
CE
1RunningOnFreeBSD
2================
3
4MLton runs fine on http://www.freebsd.org/[FreeBSD].
5
6== Notes ==
7
8* MLton is available as a http://www.freebsd.org/[FreeBSD]
9http://www.freebsd.org/cgi/ports.cgi?query=mlton&stype=all[port].
10
11== Known issues ==
12
13* Executables often run more slowly than on a comparable Linux
14machine. We conjecture that part of this is due to costs due to heap
15resizing and kernel zeroing of pages. Any help in solving the problem
16would be appreciated.
17
18* FreeBSD defaults to a datasize limit of 512M, even if you have more
19than that amount of memory in the computer. Hence, your MLton process
20will be limited in the amount of memory it has. To fix this problem,
21turn up the datasize and the default datasize available to a process:
22Edit `/boot/loader.conf` to set the limits. For example, the setting
23+
24----
25 kern.maxdsiz="671088640"
26 kern.dfldsiz="671088640"
27 kern.maxssiz="134217728"
28----
29+
30will give a process 640M of datasize memory, default to 640M available
31and set 128M of stack size memory.