Comment by heap_perms

Comment by heap_perms 4 days ago

10 replies

> I host this blog on a single core 128MB VPS

No wonder the site is being hugged to death. 128MB is not a lot. Maybe it's worth to upgrade if you post to hacker news. Just a thought.

bawolff 4 days ago

It doesnt take much to host a static website. Its all the dynamic stuff/frameworks/db/etc that bogs everything down.

  • tambourine_man 4 days ago

    Still, 128MB is not enough to even run Debian let alone Apache/NGINX. I’m on my phone, but it doesn’t seem like the author is using Cloudflare or another CDN. I’d like to know what they are doing.

    • ronsor 4 days ago

      128MB is more than enough to run Debian and serve a static site. I had no issue with doing it a decade ago and it still works fine.

      How much memory do you think it actually takes to accept a TLS connection and copy files from disk to a socket?

      • tambourine_man 3 days ago

        Modern Linux is much less frugal these days:

        https://wiki.debian.org/DebianEdu/Documentation/Bullseye/Req...

        * Thin clients with only 256 MiB RAM and 400 MHz are possible, though more RAM and faster processors are recommended.

        * For workstations, diskless workstations and standalone systems, 1500 MHz and 1024 MiB RAM are the absolute minimum requirements. For running modern webbrowsers and LibreOffice at least 2048 MiB RAM is recommended.

Aachen 3 days ago

Moving bytes around doesn't take RAM but CPU. Notice how switches don't advertise how many gigabytes of RAM they have, but can push a few gigabits of content around between all 24 ports at once without even going expensive

Also, the HN homepage is pretty tame so long as you don't run WordPress. You don't get more than a few requests per second, so multiply that with the page size (images etc.) and you probably get a few megabits as bandwidth, no problem even for a Raspberry Pi 1 if the sdcard can read fast enough or the files are mapped to RAM by the kernel