How to flush RAM on Linux / Centos

I personally suggest using first option, other are more and more “hardcore”. Also I would not suggest doing this under high CPU load or high disk activity, as they both rely on this cache and it might either hang the whole server or create even higher load.