Fwd: [MLton] Updated http://mlton.org/RunningOnFreeBSD with a gotcha

Jesper Louis Andersen jesper.louis.andersen at gmail.com
Sat Apr 7 11:29:10 PDT 2007


I keep forgetting there is a reply and a reply-to-all button in Gmail.
Forward from what I posted to Matthew for
completeness.

---------- Forwarded message ----------
From: Jesper Louis Andersen <jesper.louis.andersen at gmail.com>
Date: Apr 7, 2007 8:22 PM
Subject: Re: [MLton] Updated http://mlton.org/RunningOnFreeBSD with a gotcha
To: Matthew Fluet <fluet at tti-c.org>

On 4/6/07, Matthew Fluet <fluet at tti-c.org> wrote:

> Thanks, that's very helpful.  BTW, is there a way to adjust the
> parameters in a per-program manner?


kern.* sysctl's are machine-wide, so they affects how the FreeBSD kernel
Virtual Memory model reacts.
For a single process, it is of course the usual getrlimit(2)/setrlimit(2)
calls that is the only pathway. It is usually
set by a call to limit (for csh/tcsh style shells) or ulimit (for
sh/bash/zsh style shells). It is possible to impose specific limits on a
single account via /etc/login.conf (manpage is login.conf(5) and there are a
lot of examples in the /etc file).

Thus, in theory, we could have MLton manipulate the limits within the bounds
set by the sysdmin/kernel via setrlimit(2), but I do not know of any other
program manipulating these parameters directly.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mlton.org/pipermail/mlton/attachments/20070407/e9feeb56/attachment.html


More information about the MLton mailing list