LuoboyunNo wish to host? New users get 1 GB of trial traffic for 24 hoursWorks with Clash / Mihomo; pay by Alipay, WeChat or cryptoTry 1 GB freeAdLuoboyun: 1 GB of trial trafficValid 24 hours; Alipay, WeChat, cryptoTry 1 GB freeAd
hi-ddify.org
One of thousands in the hall, and you rent only a slice of it

Choosing

A 1 GB machine for Hiddify: enough?

One of thousands in the hall, and you rent only a slice of it PiDatacenters, CC BY-SA 4.0

The official minimum is one core and 1 GB. Whether it is enough depends on installing, running and people, and something else runs out first.

The docs suggest 1 GB of memory, one core and 10 GB of disk. With more than a dozen services in the panel, people wonder whether that is too low.

The short answer: for a family 1 GB is enough, if the machine runs nothing else. 2 GB costs little more and makes upgrades relaxed. Do not try 512 MB: the system often kills the installer halfway, and a half-finished install is worse than none.

Installing is the tightest moment

Downloading, unpacking and creating the database make the peak. The docs say the installer adds swap for a while if memory is short, so 1 GB gets there, only slower. Machines with 512 MB are below the recommendation.

A memory module: 1 GB works, but add swap
A memory module: 1 GB works, but add swap I would appreciate being notified if you use my work outside, CC BY-SA 3.0

Three numbers afterwards

Server
free -h
df -h /
uptime
Look atFineTime for more
available in freeabove 150 MBbelow 80 MB for long
swap usedsome hundred MB at timeskeeps growing
loadbelow the core countabove it for long
diskunder 70%over 85%

Memory rarely goes first

  1. Data planvideo is the fastest
  2. Evening routeslow even when idle
  3. Processorencrypting high speeds
  4. Memorymany users and protocols
What runs out, roughly in order

For three to five people, money spent on route and data does more than memory. The estimate gives numbers.

Small boards like a Raspberry Pi have little memory too; it depends on users
Small boards like a Raspberry Pi have little memory too; it depends on users Laserlicht, CC BY-SA 4.0

Saving resources

Where the memory goes

After installing about a dozen programs run all the time: the panel, database, cache, web entrance and two or three cores. Five to six hundred MB when idle is normal.

Who uses most
ps aux --sort=-%mem | head -n 12
systemctl list-units 'hiddify*' --no-pager

A 1 GB machine really has about 950 MB. Two or three hundred MB "available" is its usual state; what matters is whether it keeps falling.

Add swap by hand

The installer adds some, but not on every image.

Server, 2 GB
fallocate -l 2G /swapfile
chmod 600 /swapfile
mkswap /swapfile && swapon /swapfile
echo '/swapfile none swap sw 0 0' >> /etc/fstab

Swap is for emergencies. If used swap keeps growing, the machine is too small.

Was something killed

If the panel fails every few days and a restart helps, the system probably killed a program:

Server
dmesg -T | grep -i -E "killed process|out of memory" | tail

Any output proves it. Otherwise look at the disk and the service logs.

Three things that matter more

WhatWhyHow to check
The line in the eveningDecides about videoAsk for a test IP, try after nine
How traffic is countedSome count both directionsRead the small print
Is the IP cleanSome are blocked from the startTest 443 from where the users are

Cheap machines' addresses have passed through many hands. Most hosts change one free or for a dollar or two, so test before installing.

Traffic arithmetic

For 1 GB of video the server downloads 1 GB and sends 1 GB. Where both directions count that is 2 GB. A 1 TB plan is about 500 GB in use: five people, two hours of HD a day.

Are cheap arm64 machines fine?

Yes, arm64 is supported.

Are two cores needed?

For a few people watching video, one will do. Consider it when several fill hundreds of Mbps.

The install seems stuck?

Twenty minutes or more are normal with 1 GB. Watch free -h in a second window; if numbers move, wait.

Does turning off logs save memory?

They use disk, not memory.

Must I reinstall for a bigger one?

Most hosts can resize. To another host, move without changing links.

Two more to read

InstallingPort 443 is taken. What nowIf Nginx, a hosting panel or another proxy already sits on the server, they fight for 80 and 443. Who holds them, and why not to mix.DomainsDirect or behind a CDNDirect is fast and shows the IP, a CDN is steadier and takes a detour. One table, and how to have both with Direct for everyday.

While you are here

About: 1GB RAM VPS proxy, low-end VPS enough, cheap VPS for proxy