What Is An Inode?

SkyStra
Dec 12, 2020

At Skystra, we use Linux as an operating system powering all of our infrastructure.

Linux File System

A Linux file system (where all the data is stored) consists of data blocks and inodes. Inodes keep all the metadata (owner, size, location, file type, etc.) about the file or a folder on the system and your account. 

The number of inodes shows the number of files and directories you use on your account, and it includes everything stored on it (media, emails, files, folders, etc.). The more files and folders you have on your account – the more inodes you use.

Fair Share 

Each time the file is opened, the kernel (Linux core) reads the inode, which consumes the resources. The more inodes you use – the more server resources are spent. This is the primary reason why the inode number capacity is capped on hosting services.

It’s necessary to cap the number of inodes per account to have a fair share of inodes among all accounts on a server and prevent system resource overuse by any one account.

Check Your Inode Usage

To check the inode usage on your account, go to cPanel.

Click here for instructions on how to get to cPanel.  

Check your Inode usage under the Statistics section on the right-side frame:

Reduce Inodes

There are several practical ways to reduce the number of inodes (files/folders) on your account. 

Here are just a few: 

  1. Remove all the files and folders on your account that aren’t actively used by your website
  2. Delete inactive plugins and themes from your website. If the plugin is just deactivated – it still uses inodes on your account as it’s not entirely removed
  3. Delete old backups, especially if they are being created automatically by a plugin or a third-party service. Download all backups locally to your computer, and remove them from your hosting account’s File Manager
  4. Remove unused image sizes from WordPress. Many themes generate multiple image sizes for each uploaded image, and that takes space on the server. If you’re not using all available image sizes – remove the unused ones from your account
  5. Clean up your email accounts, as your emails count towards the inode limits. Make sure .to empty your Junk/Spam/Trash folders regularly, and delete non-important emails
  6. Purge the cache files if there are too many on your account. If your website uses file caching, make sure to purge cache often to remove the stale and unnecessary files from your account