Order of memory usage in linux??
I'm not sure I understand the order in which memory is being used under linuxOS. We have cached memory, free memory and used memory.
'free' is not used by anything, 'cached' is stuff that OS loads in hopes of speeding up access in the future and 'used' is what's actively used right now. Let's say a new application is now requesting memory. Will OS first try to allocate memory from free pool or will it first try to get some space from the cached memory pool. In the latter case will it have to swap the data from cached memory pool to disk first or is it simply removed without being saved.