How to fix high memory usage in Linux ?

In some circumstances, you may have noticed that your computer is running slow. This might be due to some applications that are consuming a big chunk of memory without you noticing it it could be that some services are using more RAM than usual despite the fact that Linux, which has an inherent memory management mechanism, can set aside otherwise free or unused memory for the purpose of disk caching, which might help speed up your system.