Skip to content

128MB RAM still viable in 2024? My Alpine experiment

VPS Hosting by uma 20 replies 2.2K views
11 #1

I have been running a full LAMP stack on a 128MB Leaseweb VPS for 31 days, 14 hours, 22 minutes at 99.97% uptime. Configuration:

  • Alpine Linux edge
  • nginx + php-fpm (not Apache, too heavy)
  • MariaDB with myisam_sort_buffer_size tuned to 8M
  • No swap, zram only
htop shows 87MB active, 41MB buffers/cache. I serve a static blog and a tiny guestbook. : 0.03 load average, 12 concurrent connections peak. Skeptics welcome. I will post my nginx.conf if requested. Status page: time4vps.com/~uma/alpine (I use https://www.time4vps.com)

436 days. reboot is surrender.
#2

I must respectfully suggest that this configuration is admirable, yet it may not withstand significant load. I do not wish to cause offense. Let us consider that a single poorly optimized query might exhaust your available memory. I apologize if my concern is unwarranted.

#3

I know this is a Linux crowd, but I have seen similar experiments on Windows Server 2008 R2 back in the day.

Your Alpine setup is impressive. I do wonder about real traffic, though. Have you tested with any load tools?

#4

Your status page | 502 Bad Gateway
| traffic from thread | pipe to /dev/null
| your experiment | EOF

The graphs don't lie | but the thread visitors do

#5

Status page is back. I had php-fpm max_children set to 5 and the thread traffic hit 23 concurrent, so yes, it fell over. Uptime is now 99.96%. I have adjusted to 8 children and added a 10 req/s limit per IP. The experiment continues.

436 days. reboot is surrender.
#6
uma said:
Status page is back

| back | for now
| 128MB | a suggestion, not a plan
| your tuning | rearranging deck chairs

#7

I run a similar stack for a customer in Amsterdam on a 256MB Time4VPS instance. Vilnius to Amsterdam latency is fine, about 35ms. The real issue is not RAM, it is that Time4VPS storage VPS line uses HDD and the random I/O dies when MySQL does anything complex. For 128MB you need NVMe or do not bother with a database at all.

#8

Secondhand hardware perspective: I have a Dell R210 II in my basement with 8GB RAM that I got for 40 USD. It idles at 45 watts. Your 128MB VPS saves you what, 2 EUR a month? My power bill here in Detroit runs 14 cents per kWh. The math is not as obvious as people think.

#9
dave39 said:
2 EUR a month

In Argentina that is 800 pesos at official rate, 2000 at blue. I pay 3.50 USD for a 512MB KVM at Hostinger and I sleep at night. Cheap hosting is my drug but I do not need to suffer.

#10
uma said:
23 concurrent

This is the point I attempted to make earlier. I mean no disrespect. A single machine with 128MB cannot queue properly under burst conditions. I use OpenBSD with relayd on a 512MB Vultr instance in Tokyo and I still keep a 50% memory headroom for spikes.

Post a reply

You need an account to reply. Log in or register to join the conversation.

Post reply Preview Save draft