---
title: "Shared Hosting or VPS: Inodes, CPU, Memory and When a Server Pays Off"
description: "Why a site hits a file limit with gigabytes free, how CPU and memory limits hit every site on one account, and when a VPS pays off, from our own servers."
author: ["Yevhen Borovoi"]
date: 2026-12-01
updated: 2026-12-01
section: "Development"
language: en
canonical: https://peretz.agency/blog/shared-hosting-vs-vps
publisher: "Peretz Agency"
---

# Shared Hosting or VPS: Inodes, CPU, Memory and When a Server Pays Off

> Why a site hits a file limit with gigabytes free, how CPU and memory limits hit every site on one account, and when a VPS pays off, from our own servers.

![A white card catalogue with one drawer pulled out and a red tag, a picture of hosting limits counted in files, not only in gigabytes](https://peretz.agency/photos/1/blog/shared-hosting-vs-vps.jpg)

## A hosting panel can show nearly half of its 30 gigabytes free while every site on the account stops writing at once with "Disk quota exceeded". The limit reached in that case is not space at all. It is inodes, the count of files. This article explains what an inode is, why hosts count files and not only gigabytes, why a bigger plan buys files and space but not processor time, and when a business really needs its own server, with real numbers from the accounts and stores we build and maintain.

The question sounds technical, but it is a business one. Where a site lives decides whether a busy day for one project slows down the others, whether the store can run the processes it needs, and who is responsible when the server needs an update at night. **Most owners choose hosting once, by price and gigabytes, and find out about the other limits only when a site stops answering.**

### How a site stops with gigabytes free

Picture a typical shared hosting account that holds several sites at once: a company site, a second brand, a few test copies and an online store that is growing. A routine step on the server installs the JavaScript packages for one more project, about 10,800 files weighing 170 megabytes. The next file copy fails with "Disk quota exceeded".

The panel says there is plenty of room, and in gigabytes there is: about 17 of 30 are used. The account also has a second limit, 400,000 inodes, and it already holds about 387,500 files. When that count runs out, nothing on the account can create a file. Lead logs, visitor sessions, uploaded images, caches and backups all depend on writing files, so every site on the account fails at the same moment, including those that have nothing to do with the new project.

Removing the packages brings the sites back within minutes. The lasting fix is a clean-up: old test copies archived and removed with the owners' agreement, git repositories compacted, temporary build folders cleared. On an account like this one that takes the count down by about a third. The lesson stays: the number that decides whether a site keeps working is often not the one the hosting panel shows first.

> The panel showed free gigabytes. The account had run out of files.

### What an inode is, and why hosts count files

Every file and every folder on a Linux server has an inode: a small record in the file system that stores who owns the file, its permissions, its size, its dates and where its data lies on the disk. The Linux manual describes it plainly: each file in a file system has a unique inode number. The record exists whatever the file's size, so a 1-byte settings file and a 1-gigabyte video each take exactly one inode.

That is why a host limits both. Gigabytes measure how much data you keep; inodes measure how many separate things the server has to track. On common file systems such as ext4 the number of inodes is fixed when the disk is formatted, and on a shared server all customers draw from the same pool. Backups, malware scans and migrations also walk the disk file by file, so a million small files cost the host far more work than a few large ones of the same total size. An account with 400,000 inodes and 30 gigabytes is a statement about both, and the first one you hit is the one that stops you.

### Where the files come from

An owner rarely thinks in files, because a website looks like a few dozen pages. Underneath, a modern site is made of thousands of small files, and some of them multiply on their own. These are the main consumers we see on the accounts we work with:

- **The framework and its packages.** One Laravel application with its vendor folder is about 7,500 files before a single page of content. A JavaScript build installs its packages into node_modules, and for one of our Astro sites that was 10,800 files.
- **Product photos.** A store keeps each photo in several sizes and formats. In a children's goods store we are building, every product has six or seven photos, each as a base WebP and a large one, about 13 files per product.
- **File caches.** A cache that writes a file per product, per language and per version of the catalogue keeps old versions on disk unless something deletes them.
- **Sessions and logs.** A session stored as a file means one file per visitor, and logs that are never rotated grow day by day.
- **Copies.** A test copy of a client site is a full second set of files, from 9,000 to 23,000 files each in our projects, and git repositories keep thousands of loose objects until they are compacted.

Now the forecast for one growing store. That store had 99 products, 71 of them with photos, which gave 948 image files. At 10,000 products the same rule gives about 134,000 files and about 16 gigabytes of photos, a third of a 400,000 file limit for pictures alone. A product cache written the simple way makes a set of files for every product, language and catalogue version, and old versions are never read again. With a daily sync of the supplier's feed that adds up to 100,000 inodes per sync. In gigabytes it is a rounding error; in inodes it fills an account in a few days.

### How we keep inodes under control

None of this needs a new server. It needs habits, and most of them are a few lines of code:

1. **Caches go into the database.** In that store we keep the product cache in the database, not in files: 941 cache files became one. After every feed sync a cleanup step removes cache versions nobody will read again.
2. **Builds happen elsewhere.** JavaScript packages are installed and built on the developer's machine or in CI, and only the finished files are uploaded. New projects are scaffolded locally, never on the production account.
3. **Repositories are compacted.** After a series of saves we run git gc, which packs thousands of loose objects into a few files; on one of our sites that took 9,700 objects down to 20.
4. **Copies have an end date.** A test copy lives until the client accepts the work, then it is archived and removed.
5. **Photos move out first.** Past a few thousand products the images belong in object storage built for millions of files, such as Amazon S3 or Cloudflare R2, or the store moves to its own account.

Before installing anything large we count first: the hosting panel shows inode use, and a simple file count over SSH gives the same number. The point is to see the limit coming, because on a shared account the failure arrives for every site at once.

### Why our admin is a separate application

In our recent builds the admin is, in effect, a separate application from the public site, even when both share one database. On the SHTAYER store the Laravel application holds the admin, the API, prices, stock, orders and the links to the CRM, while the Next.js storefront only shows the catalogue to visitors; the store is described in [OpenCart vs Laravel for an online store](https://peretz.agency/blog/opencart-vs-laravel-online-store). On the DeZZign site the admin is one Laravel panel built from a single definition file, with its own history of every change, as we told in [OpenCart to Laravel migration](https://peretz.agency/blog/opencart-to-laravel-migration).

The reasons are practical. Public pages stay light and can be served without cookies, so a CDN can cache them and answer from the city nearest the visitor; on our own site we made public pages cookieless for exactly that. The admin keeps its own address, its own sign-in and session, its own roles, and nothing of it reaches a visitor's browser. Heavy work belongs to the admin side: imports, image processing, reports and feeds run there without sharing a code path with the storefront. Each side can be updated without touching the other, and when the load grows, the admin and the API can move to another server or behind an address only the team can reach.

There is a price, and it brings us back to files: a second application means a second set of packages, about 7,500 more inodes for a Laravel admin. On a large account that is nothing. On an account already near its limit it is one more reason to count before building.

### A bigger plan buys files and gigabytes, not processor time

The natural answer to a file limit is a bigger plan, and hosts do sell plans with more inodes and more gigabytes. What grows much more slowly, or not at all, is the share of the processor and memory each account receives.

Most shared hosts divide a physical server between accounts with CloudLinux, and its documentation lists the limits each account lives inside. CPU is a share of the processor, where 100% means one core. Physical memory is the memory all the account's processes may use together. Entry processes are simultaneous dynamic requests, and the CloudLinux documentation notes that this limit also covers SSH sessions and cron jobs running at the same time; its own example default is 20. There are limits on the number of processes and on disk input and output as well. What happens at each limit differs: an account held by CPU or disk speed gets slower, and an account that runs out of memory or processes starts answering with error 508, "Resource Limit Is Reached".

The key detail is that these limits belong to the account, not to the site. All the sites in one account share one CPU share, one memory limit and one count of simultaneous requests. Picture a growing store on such an account. As active work on it begins, with catalogue imports, photo processing, the admin in daily use and the supplier feed synced every day, the store presses on inodes, memory and processor at the same time. Every other project on the account feels it: a slow import in the store means slower pages on a portfolio site that has nothing to do with it.

> The limits belong to the account, so one busy site slows all its neighbours.

### What shared hosting cannot run at all

Some parts of a modern site are not a matter of limits. They simply do not fit the model of shared hosting, where each request starts a short PHP process that ends when the page is sent.

A Next.js storefront is one example. The Next.js documentation describes deployment as a Node.js server, a Docker container or a static export; the full feature set needs a server that runs all the time. Laravel's queue worker is another: it is a long-lived process that takes jobs off the queue, and the Laravel documentation recommends a process monitor such as Supervisor to keep it running and restart it when it stops. Shared hosts usually do not let customers keep such processes, and many stop them after a while. The same goes for Redis, websockets for live updates and Docker. A small project can live with the workaround of running the queue from the scheduler once a minute; a store that sends order letters, syncs stock and processes photos cannot.

One of the stores we built recently shows the other end. It runs on a VPS with 2 processor cores and 5.8 GB of memory, entirely in Docker: separate containers for PHP, the queue worker, the scheduler, the web server, MySQL, Redis and the Node.js storefront. That design is natural on a server of its own and impossible on a shared account.

### When a VPS is worth it

A VPS, a virtual private server, is a slice of a physical machine with its own guaranteed processor cores and memory, its own operating system and full control over it. It pays off when one or more of these is true:

- **The site runs long-lived processes:** a Node.js storefront, queue workers, Redis, websockets or Docker.
- **The project is heavy on its own:** a catalogue of thousands of products with photo processing, daily feeds, imports and reports.
- **Projects must not hurt each other:** a growing store should not slow the company site or the client sites beside it.
- **The setup is specific:** a PHP version, an extension, a web server rule or a security policy that a shared host will not allow.

And it does not pay off for a company site of a few dozen pages, a blog or a small PHP store with good caching. There, shared hosting plus a CDN is cheaper, and someone else patches the operating system at night. There is also a middle step that owners often miss: a separate hosting account for the heavy project. It gives the project its own inode count and its own processor and memory limits, so a busy store stops sharing them with everything else, without anyone having to run a server. For a growing store, a separate account or a VPS is the next step as the catalogue grows; which one depends on whether it will need long-lived processes.

### A VPS needs looking after, and it is not a disaster

With a VPS you become the host. The work is real, but it is ordinary maintenance, and once the server is set up properly it takes hours a month, not days.

**Updates.** The operating system, the web server, PHP and the database need security updates. On a shared host someone else does it; on a VPS it is part of the job, best done on a schedule with automatic security patches for the system.

**The firewall, including the trap in Docker.** Docker's own documentation warns that when a container publishes a port, the traffic is routed before it reaches the rules of ufw, the standard firewall on Ubuntu. A server can look closed in ufw while a container's port answers anyone on the internet, and on servers we take over we check for exactly this: an application or admin port reachable directly by IP over plain HTTP. The fix is to bind such ports to the local address and let only the web server face the outside.

**Backups that are tested.** A backup nobody has restored is a hope, not a backup. On servers we take over we often find a database with no backups at all, or backups nobody has ever restored. We set them up and check that a restore works; we wrote about this in [untested backups and growing cloud bills](https://peretz.agency/blog/untested-backups-and-cloud-bills).

**Monitoring and the small things.** Disk space, memory, certificate renewal, log rotation, sign-in by SSH key instead of password, alerts when a service stops. Each is small; together they are what keeps a server boring, which is what you want from it.

As for the cost, our estimate for basic maintenance of one VPS is $100 to $500 a month in the US and $70 to $150 in Ukraine, depending on how many services run on it and how fast someone must react, on top of the price of the server itself. In our own price list DevOps work is $45 to $100 an hour, and support for custom sites starts from $1,000 a month; what goes into such support is described in [Laravel support and maintenance cost](https://peretz.agency/blog/laravel-support-and-maintenance-cost).

### Speed is a different question: CDN before moving

Owners often expect a VPS to make the site faster. It helps when the shared account was hitting its processor or memory limit. It does not help with distance. Our own site is hosted in Ukraine and builds a blog page on the server in 35 to 50 milliseconds, but a visitor in Seattle waits around 0.8 seconds for the round trip across the ocean. A bigger server in the same place changes nothing about that trip.

Distance is solved by a CDN, which keeps copies of public pages and files on servers near the visitor. We chose a free CDN plan over moving our hosting to the US, and prepared the site for it by serving public pages without cookies, since a CDN does not cache a page that sets one. When choosing a CDN, check one setting first: since July 2025 Cloudflare blocks AI crawlers by default on new domains, and a business that wants to be found in ChatGPT or Perplexity has to turn that off. Which speed problems to fix first is in [why a website is slow and what to fix first](https://peretz.agency/blog/website-speed-what-to-fix-first).

### How to choose

| Situation | Shared hosting | Separate hosting account | VPS |
| --- | --- | --- | --- |
| Company site, blog, landing pages | Yes, with a CDN | Not needed | Overkill |
| Small PHP store, a few hundred products | Yes, watch inodes | When neighbours suffer | Not yet |
| Store with thousands of products, feeds, photo processing | Inodes and limits run out | A good middle step | When processes or load grow |
| Next.js storefront, queues, Redis, websockets | Not possible | Not possible | Yes |
| Several heavy projects on one account | Each slows the others | Yes, one account per project | Yes, with separate resources |
| Who patches the server | The host | The host | You or your contractor |

### What to check before you decide

Start with the numbers the panel does not put first: how many inodes the account uses and how close it is to the limit, whether the hosting statistics show the account reaching its CPU, memory or entry process limits, and whether visitors have ever seen error 508. Then look at what the project will need in a year: a storefront on Node.js, queues, a catalogue that will grow tenfold with its photos. If it fits in shared hosting with a CDN, stay there and keep the habits from this article. If one project has started to press on the others, give it its own account. If it needs long-lived processes, plan a VPS together with the person who will look after it.

We help with each of these steps, from counting files on an existing account to moving a store to its own server and maintaining it. **The best time to decide is before the night when every site on the account stops writing.**

### Questions about hosting, inodes and VPS

#### What is an inode limit in web hosting?

An inode is the record a Linux file system keeps for every file and folder, so the inode limit is the maximum number of files and folders an account may hold, whatever their size. When it is reached, no site on the account can create a file: sessions, uploads, caches, logs and backups stop working, even if many gigabytes are still free.

#### How do I check how many inodes my site uses?

Most hosting panels show inode use next to disk space. With SSH access, counting all files and folders in the home directory gives the same figure. Check it before installing large packages or importing a catalogue with photos, and look for the folders that hold the most files: vendor and node_modules, image sizes, file caches, sessions and test copies.

#### Why does my site show error 508 Resource Limit Is Reached?

On shared hosting with CloudLinux, 508 means the account has reached its limit of memory or of simultaneous processes. All sites in one account share these limits, so one heavy import or traffic burst can cause 508 on a neighbouring site. Look at the resource statistics in the panel, find the busy project and either optimise it or move it to its own account.

#### Is a VPS faster than shared hosting?

It is faster when the shared account was hitting its processor or memory limits, because a VPS has its own guaranteed cores and memory. It does not reduce the distance to visitors: for a site hosted far from its audience a CDN helps more than a bigger server in the same place.

#### Can a Next.js storefront run on shared hosting?

Only as a static export with limited features. A full Next.js storefront runs as a Node.js server that has to stay on all the time, and shared hosting does not keep such processes. The same applies to Laravel queue workers, Redis and websockets, which is why stores built this way live on a VPS or a platform made for Node.js.

#### How much does VPS maintenance cost?

Our estimate for basic maintenance of one VPS is $100 to $500 a month in the US and $70 to $150 in Ukraine, on top of the server itself, depending on the number of services and how quickly someone must respond. It covers updates, firewall, tested backups, monitoring and certificates; once set up, it takes hours a month.

#### Does an online store need a VPS?

Not at the start: a PHP store with a few hundred products and good caching lives well on shared hosting. A VPS becomes worth it when the store runs long-lived processes, processes thousands of photos and feeds every day, or starts to slow down other sites on the same account; a separate hosting account is often the step in between.

**Sources**

- [Limits](https://docs.cloudlinux.com/cloudlinuxos/limits/), CloudLinux OS documentation
- [inode(7)](https://man7.org/linux/man-pages/man7/inode.7.html), Linux manual pages
- [Packet filtering and firewalls](https://docs.docker.com/engine/network/packet-filtering-firewalls/), Docker documentation
- [Queues](https://laravel.com/docs/13.x/queues), Laravel documentation
- [Deploying](https://nextjs.org/docs/app/building-your-application/deploying), Next.js documentation

**Not sure whether your hosting will carry the next year of growth? Let's count it together, from inodes to processes.**

[Book a Strategic Session](https://peretz.agency/services/strategic-session)

[DevOps and Cloud](https://peretz.agency/services/devops-cloud)

---

Source: Peretz Agency, https://peretz.agency/blog/shared-hosting-vs-vps
