Debian Codegraph @

doc/guide/src/RunningOnFreeBSD.adoc

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