Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Mar 2013 10:13:56 -0400
From:      Rod Person <rodperson@rodperson.com>
To:        Lowell Gilbert <freebsd-lists@be-well.ilk.org>
Cc:        freebsd-hackers@freebsd.org, lists@eitanadler.com
Subject:   Re: Help porting Linux app - getting Free Memory and Real Memory
Message-ID:  <5155A1A4.6080801@rodperson.com>
In-Reply-To: <44haju2tgk.fsf@lowell-desk.lan>
References:  <5156316F.9050202@rodperson.com> <20130329032845.GG81066@server.rulingia.com> <44li962xmp.fsf@lowell-desk.lan> <51559451.9050708@rodperson.com> <44haju2tgk.fsf@lowell-desk.lan>

next in thread | previous in thread | raw e-mail | index | archive | help
On 03/29/13 10:04, Lowell Gilbert wrote:
> I would recommend removing the check completely. The upstream author
> should do this for the Linux version as well; it really doesn't make
> sense in a system that supports virtual memory. If you decide to
> support it anyway to make some kind of performance guarantees, you
> probably should check against all of user memory; "free" memory is by
> definition being underutilized. 

Well, being that I received this suggestion from you and Eitan; this is
probably the way to go.

I'll contact the upstream author and see if he has a better explanation
as why he does this.  There is one other section that uses this check
also, but I have not seen it raise a warning on my testing of the app.

Thank you guys.

Rod



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5155A1A4.6080801>