CloudLinux - CloudLinux Blog - Beta: OptimumCache - de-duplicating file cache for CloudLinux

Beta: OptimumCache - de-duplicating file cache for CloudLinux

Typical shared hosting server runs a number of sites with WordPress, Joomla as well as other popular software. This usually represents as hundreds of duplicate files that are constantly being read into file cache - both wasting precious disk IO operations as well as memory. OptimumCache creates a cache of such duplicate files.

With OptimumCache, if a duplicate of an already loaded file is requested, the file gets loaded from filesystem cache. By doing that, system bypasses disk IO, significantly improving the speed of reading that file, while lowering load on the hard disk. As the file had been read from disk just once, it is cached by filesystem cache just once, minimizing amount of duplicates in filesystem cache, and improving overall cache efficiency. This in turn reduces memory usage, decreases the number of disk operations - all while improving the websites response time.

OptimumCache comes free with CloudLinux. It requires 64 bit version of CloudLinux 6.x, as well as ext4 file system to work.

To install OptimumCache:
$ yum install optimumcache --enablerepo=cloudlinux-updates-testing

To mark user's directories for caching:
$ optimumcache mark --recursive /HOME_DIR

Note, that this operation can take significant amount of time as it will scan all the sub directories. This has to be done once, and all new files/sub directories would be 'marked' for caching automatically.

On cPanel it would usually be:
$ optimumcache mark --recursive /home

On Plesk
$ optimumcache mark --recursive /var/www/vhosts

Cached files will be stored by default at:

You can change that by editing OPTIMUMCACHE_MNT at /etc/sysconfig/optimumcache and running:
$ service optimumcache restart

The cache will be cleaned (shrunk) once partition on which OPTIMUMCACHE_MNT resides has only 20% of free space. You can change that by changing PURGEAHEAD param in /etc/sysconfig/optimumcache, and restarting optimumcache service.

KernelCare - update for CL6 fixes memory leak intr...
KernelCare update for CentOS/RHEL/CL6.x - update t...

By accepting you will be accessing a service provided by a third-party external to

EU e-Privacy Directive

We use cookies to ensure you get the best experience using our website and services. Read more about it in our Privacy Policy. Please agree to the use of cookies to proceed. Alternatively, you may disable cookies in your browser at any time.

You have declined cookies. This decision can be reversed.

You have allowed cookies to be placed on your computer. This decision can be reversed.