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

2013-03-29 Thread Lowell Gilbert
Peter Jeremy pe...@rulingia.com writes: On 2013-Mar-29 20:27:27 -0400, Rod Person rodper...@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

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 rodper...@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

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 pe...@rulingia.com writes: On 2013-Mar-29 20:27:27 -0400, Rod Person rodper...@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.

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 rodper...@rodperson.com wrote: On 03/29/13 08:34, Lowell Gilbert wrote: Peter Jeremy pe...@rulingia.com writes: On 2013-Mar-29 20:27:27 -0400, Rod Person rodper...@rodperson.com wrote: Everything is going we except that the program gives warnings that there

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

2013-03-29 Thread Lowell Gilbert
Rod Person rodper...@rodperson.com writes: On 03/29/13 08:34, Lowell Gilbert wrote: Peter Jeremy pe...@rulingia.com writes: On 2013-Mar-29 20:27:27 -0400, Rod Person rodper...@rodperson.com wrote: Everything is going we except that the program gives warnings that there isn't enough free

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 rodper...@rodperson.com 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. ___

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 performance

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

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 rodper...@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