Re: Help porting Linux app - getting Free Memory and Real Memory

2013-03-29 Thread Rod Person
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 performa

Re: Help porting Linux app - getting Free Memory and Real Memory

2013-03-29 Thread Lowell Gilbert
Rod Person writes: > man 3 sysctl, list them as integer that is why I did this. "unsigned long" *is* an integer, but it's a different kind of integer than an "int." This is an important distinction in the C language. ___ freebsd-hackers@freebsd.org ma

Re: Help porting Linux app - getting Free Memory and Real Memory

2013-03-29 Thread Wojciech Puchar
I'm working on a port I maintain and the code has drastically changed. Everything is going we except that the program gives warnings that there isn't enough free memory on the system to perform certain actions. The program uses Linux call to /proc/meminfo to get this information. this is just a

Re: Help porting Linux app - getting Free Memory and Real Memory

2013-03-29 Thread Lowell Gilbert
Rod Person writes: > On 03/29/13 08:34, Lowell Gilbert wrote: >> Peter Jeremy writes: >> >>> On 2013-Mar-29 20:27:27 -0400, Rod Person 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. >>>

Re: Help porting Linux app - getting Free Memory and Real Memory

2013-03-29 Thread Eitan Adler
On 29 March 2013 09:17, Rod Person wrote: > On 03/29/13 08:34, Lowell Gilbert wrote: >> Peter Jeremy writes: >> >>> On 2013-Mar-29 20:27:27 -0400, Rod Person wrote: Everything is going we except that the program gives warnings that there isn't enough free memory on the system to perfor

Re: Help porting Linux app - getting Free Memory and Real Memory

2013-03-29 Thread Rod Person
On 03/29/13 08:34, Lowell Gilbert wrote: > Peter Jeremy writes: > >> On 2013-Mar-29 20:27:27 -0400, Rod Person 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 suspicio

Re: Help porting Linux app - getting Free Memory and Real Memory

2013-03-29 Thread Rod Person
On 03/28/13 23:28, Peter Jeremy wrote: > On 2013-Mar-29 20:27:27 -0400, Rod Person 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 do

Re: Help porting Linux app - getting Free Memory and Real Memory

2013-03-29 Thread Lowell Gilbert
Peter Jeremy writes: > On 2013-Mar-29 20:27:27 -0400, Rod Person 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 > understa

Re: Help porting Linux app - getting Free Memory and Real Memory

2013-03-28 Thread Peter Jeremy
On 2013-Mar-29 20:27:27 -0400, Rod Person 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. >int getS

Help porting Linux app - getting Free Memory and Real Memory

2013-03-28 Thread Rod Person
Hi All, I'm working on a port I maintain and the code has drastically changed. Everything is going we except that the program gives warnings that there isn't enough free memory on the system to perform certain actions. The program uses Linux call to /proc/meminfo to get this information. I've wo