R
Rafal 'Raf256' Maj
What is the best way, under GCC based compilers, to get amount of free
memory, both RAM that OS can gave to my application, and total memory that
OS could gave to it.
I need to know +/- how much RAM is free and available for my application,
to optimize it's caching code (it is a bad idea to cache all data that can
be cached, because I if application will start swapping, then "cache" will
slow things down in fact).
memory, both RAM that OS can gave to my application, and total memory that
OS could gave to it.
I need to know +/- how much RAM is free and available for my application,
to optimize it's caching code (it is a bad idea to cache all data that can
be cached, because I if application will start swapping, then "cache" will
slow things down in fact).