Finding out the Total/Used/Free Memory : Please advice - Thanks

There isn't a memory controller to track how memory is being used, so getting an exact number is likely impossible. Consider those functions as estimates, not absolutes.