If the memory is very full (on Linux), you may execute the following command:

sync; echo 3 > /proc/sys/vm/drop_caches

All the caches are cleared now. Your system may respond a bit slower now, while the caches are being refilled.