I am developing an application and I need to check the ammount of Bytes available. I discovered the sysconf functionality to check some system parameters and variables (such as the virtual memory available for the program).
In order to check the way it works I wrote a code which constantly shows the ammount of MB available (based on the page size of memory). My PC has 16 GB of RAM and the output of the program is 15460 MB at start, but as time goes by it starts to be smaller (15460-15456-15452...)
I would like to know what is the reason of this and if I need to worry (it need a lot of time to reduce but my application should be able to run for huge periods of time) or the OS takes care of it.