I am running web and DB on a single server with 4GB ram. When I checked memory using free -m I can see most of the memory is in cached.
free -m
total used free shared buff/cache available
Mem: 3534 1507 973 25 1052 1676
Swap: 8191 0 8191
Is there any way to find out which process is served from cache or which are getting a cache, because everytime I have to use sync command to clear free memory.