Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Mar 2013 08:34:06 -0400
From:      Lowell Gilbert <freebsd-lists@be-well.ilk.org>
To:        Rod Person <rodperson@rodperson.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Help porting Linux app - getting Free Memory and Real Memory
Message-ID:  <44li962xmp.fsf@lowell-desk.lan>
In-Reply-To: <20130329032845.GG81066@server.rulingia.com> (Peter Jeremy's message of "Fri, 29 Mar 2013 14:28:45 %2B1100")
References:  <5156316F.9050202@rodperson.com> <20130329032845.GG81066@server.rulingia.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Peter Jeremy <peter@rulingia.com> writes:

> On 2013-Mar-29 20:27:27 -0400, Rod Person <rodperson@rodperson.com> wrote:
>>Everything is going we except that the program gives warnings that there
>>isn't enough free memory on the system to perform certain actions.
>
> That premise sounds suspiciously like the upstream author doesn't
> understand how Unix VM works.

To be more blunt, these checks may well be useless on Linux.
On a quick look, you seem to maintain three ports: idutils, mspdebug,
and jogl. I wouldn't expect a free-memory check to be appropriate on any
of those.

In any case, the definition of "free memory" is different between the VM
systems in Linux and BSD . Even if the checks do make sense, the FreeBSD
implementation would at the minimum have to include all of the pages
that are allocated but not mapped.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44li962xmp.fsf>