If you need to clear out the pagecache due to inactive memory not being released you can flush out the cache in RedHat5 manually.
The /proc/sys/vm/drop_caches, allows the pagecache and slabcache to be cleared on demand.
To free the pagecache:
1 |
sudo 1 > /proc/sys/vm/drop_caches |
To free dentries and inodes:
1 |
sudo echo 2 > /proc/sys/vm/drop_caches |
To free pagecache, dentries and inodes:
1 |
sudo echo 3 > /proc/sys/vm/drop_caches |
It is recommended that sync be run prior to passing the values to /proc/sys/vm/drop_caches. Enabling drop_caches can cause deadlock if the system is under heavy memory and I/O load. It is not recommended to use this feature on system experiencing heavy load.
1 |
sudo echo 1 > /proc/sys/kernel/sysrq |
1 |
sudo echo 'm' > /proc/sysrq-trigger |
This is very interesting. Thank you Juan for finally posting!