No, don't do that - it's just asking for trouble/problems.vm.drop_caches = 3
vm.vfs_cache_pressure = 50
No, don't do that - it's just asking for trouble/problems
If you're going to cut n paste from kernel.org (or where ever else referenced it), then the next paragraph reads;This is a non-destructive operation and will only free things that are completely unused. Dirty objects will continue to be in use until written out to disk and are not freeable. If you run "sync" first to flush them out to disk, these drop operations will tend to free more memory.
https://www.kernel.org/doc/Documentation/sysctl/vm.txtThis file is not a means to control the growth of the various kernel caches
(inodes, dentries, pagecache, etc...) These objects are automatically
reclaimed by the kernel when memory is needed elsewhere on the system.
Use of this file can cause performance problems. Since it discards cached
objects, it may cost a significant amount of I/O and CPU to recreate the
dropped objects, especially if they were under heavy use. Because of this,
use outside of a testing or debugging environment is not recommended.
I think MySQL is the cause, but I'm not sure.
And have you determined that MySQL is what's being swapped? MySQL usually isn't something that's going to be swapped (especially if it's being used for queries) with 50% free RAM.
it's possible that Apache is playing a part in this, what are your settings and have you considered nginx as a webserver to see if that helps with performance?
We use essential cookies to make this site work, and optional cookies to enhance your experience.