Linux loads extra data into memory to help speed things up. When you run an app, the memory is available for the app to use. There is no need to clear the memory as you are suggesting.
You can disable some services if they are not being used, but an inactive service uses no memory.
I hope this helps
--Ian
|