slayerduck
04/12/22 08:15AM
Hobbying with the hub on a pi
I took some time to play around, for a long time i always wanted to try if i can get a gel 0.2 installation working on a raspberry pi.

If you don't know what a raspberry pi is, its essentially a very low powered computer with the size of a creditcard that runs somewhat the same components as a phone.

Not only did i manage to install the entire hub on it, i also ran it in a invisible iframe for a couple hours to see if it could handle the traffic of the live site. It passed with flying colors, only pulling 25% CPU with 330 active connections. The hub runs 3.6 mil visits per month www.similarweb.com/website/hypnohub.net/#overview running right below the top 10k sites globally and 275 in adult category.

even ffmpeg is configured on it, so it should even be able to convert video uploads but obviously that's stretching how far it can go (and i disabled uploads because its unmoderated). When i mentioned how much faster this software is, i wasn't exaggerating. To be able to serve a site with millions of people on a creditcard ARM PC that runs less then 10W of power is absolutely insane.

The site runs @ EDIT: took-it-down with a clone of DB from 2 days ago. Images are loaded from main site because its hosted from a home connection and the USB stick it uses as storage doesn't have enough space. But serving static files doesn't really cost anything so it could easily handle file serving if it had a larger disk and network.

Obviously we're not going to move to actually run on a PI but its a proof of concept what is possible. It might be interesting to run these kind of imageboards at home for private use. Doing this project increased my experiences in running ARM servers

Will keep it up for a week for the memes before pulling it, feel free to try to crash it or something but don't ddos it plz ;)

Specs:
Raspberry PI 4B 4GB Model (Overclocked to 2Ghz) with passive cooling heatsink.
256GB SanDisk Extreme Pro USB stick.
OS: Almalinux 8.5 ARM (5.10.78-v8.1.el8 aarch64 GNU/Linux)
Sir_Lurksalaot
04/12/22 02:25PM
Neat.
KimeraUltimate
04/12/22 11:12PM
Awesome :3
superrandomperson0
04/14/22 07:33AM
That is amazing work! Well done... I can't believe a pi-4 can handle server side stuff so well, this is something that 2 years ago I thought would only be able to run on a server computer or equivalent. I hope you make a dev guide or build guide, I'd love to try it on other gel websites or create custom gel 0.2 websites on a pi.
slayerduck
04/14/22 11:31AM
superrandomperson0 said:
That is amazing work! Well done... I can't believe a pi-4 can handle server side stuff so well, this is something that 2 years ago I thought would only be able to run on a server computer or equivalent. I hope you make a dev guide or build guide, I'd love to try it on other gel websites or create custom gel 0.2 websites on a pi.

Its possible to just create a ready-to-go image people can install on their SD-Card and drop it into a PI and it works. But i can't do this for this version as 0.2 its not open source. Maybe something else could work like the old hypno software but it might be to heavy even for one user.

I'll try it next week or something when i got time
Mr_Face
04/17/22 09:17PM
That's wild :D

In terms of green computing, I'm guessing a pi isn't the most efficient machine in the world. But it makes you wonder what could be accomplished with a bank of little processors and real good code, maybe hooked up to one of those budget solar packs lol.

It's also interesting because from a free speech or hosting perspective; I mean in theory if you aren't trying to reach everyone, you don't need to host from a data center. In practice I imagine maintaining a little patch of servers is going to be some kind of nightmare (there's all sorts legal stuff that goes into hosting content).
Sir_Lurksalaot
04/17/22 10:19PM
Mr_Face said:
In terms of green computing, I'm guessing a pi isn't the most efficient machine in the world. But it makes you wonder what could be accomplished with a bank of little processors and real good code, maybe hooked up to one of those budget solar packs lol.

If the 10W he said is accurate, you would need about 40 of them to start emulating the power needs of a PC.
Mr_Face
04/17/22 10:51PM
Sir_Lurksalaot said:

If the 10W he said is accurate, you would need about 40 of them to start emulating the power needs of a PC.


That is a good point! I didn't notice that

At the same time, there's efficient, and efficient for size. That's more what I'm thinking about, like is the pi as energy efficient as it could be? In the grand scheme of things you're more right than I am lol.
slayerduck
04/18/22 01:22AM
Mr_Face said:
At the same time, there's efficient, and efficient for size. That's more what I'm thinking about, like is the pi as energy efficient as it could be? In the grand scheme of things you're more right than I am lol.

Its nearly the best it goes, you can downvoltage the CPU a bit and lower its clock to get it to 5W if i remove the USB and do a micro SD card. The 10W of power comes from the fact it was running a 2.1A 5V samsung phone charger. I have updated the pi recently with a samsung 1TB external SSD and that required a 2.5A charger to keep it running without gimmics. ARM processors are way less power consuming, that's why they are in 99% of all smartphones.
Sir_Lurksalaot
04/18/22 04:31AM
IIRC Model B Pi's are generally Chromebook-level quality or higher when you got the right stuff; it looks like they went all-in for gen 4.

I don't think I have a use for it since I still have multiple functioning systems (and an original model I could probably still bust out if I gather all the components) but it apparently is okay with Unity Engine and I'm thinking of setting up a media server at some point, so there are certainly options.
slayerduck
04/18/22 11:31AM
Sir_Lurksalaot said:
IIRC Model B Pi's are generally Chromebook-level quality or higher when you got the right stuff; it looks like they went all-in for gen 4.

That's not true, when i look for a budget chromebook like the HP Chromebook x360 11 it has a Intel Celeron N3450 and its performance is more then 2X the performance of the raspberry pi CPU BCM2711 for the 4B

source:
www.cpubenchmark.net/cpu....0+%40+1.10GHz&id=2907
www.cpubenchmark.net/cpu.php?cpu=BCM2711&id=4297

And that's for a budget model, any somewhat decent chromebook will have higher specs.

Right now sadly the pi's are low on stock but normally the 4B model with 4GB of ram is like $50-ish
Mr_Face
04/20/22 09:59PM
slayerduck said:

That's not true, when i look for a budget chromebook like the HP Chromebook x360 11 it has a Intel Celeron N3450 and its performance is more then 2X the performance of the raspberry pi CPU BCM2711 for the 4B

source:
www.cpubenchmark.net/cpu....0+%40+1.10GHz&id=2907
www.cpubenchmark.net/cpu.php?cpu=BCM2711&id=4297

And that's for a budget model, any somewhat decent chromebook will have higher specs.

Right now sadly the pi's are low on stock but normally the 4B model with 4GB of ram is like $50-ish


Benchmarking is notoriously evil. Slayerduck is right. The average thread speed of the intel is slower even though it can gallop to 2.2gigs. And looking at single thread performance the intel only beats the other chip by 762/592 operations per second. But, cpu cores will do clever, clever things when they can get away with it and when they are fed optimal instructions (like when you pass the -O3 flag and break your broken code further so it can fly apart faster). Almost all tasks performed on the intel are performed at a rate that is a constant factor faster.

I also wonder if the issue of trying to upload several large images at once would melt the Pi's network card. Got a nasty virus once that broke my board by switching the thing on and off too often.
Sir_Lurksalaot
04/22/22 02:42PM
Considering how in another thread it was mentioned that there is no dev server, maybe this can be brought back online to serve that purpose???????? *shrug*
Mr_Face
04/24/22 08:13PM
It depends on what you are doing. If you can put it on a pi you can put a server with significant data on anything. Then (with some effort) run a server + selenium (which automates browser interaction and has the capability of getting elements from the response the browser receives) and the main slowdown you get is going to be from starting the website infrastructure up.

Hell, I'm doing some dev-work on python. The main difficulty is convincing a single threaded interpreter to play nice with an async piece of java software. And that's... not too terribly hard. You can do it with manual waits or you can do it with the actual machinery in the selenium library for it :P

I could definitely see having a pi running somewhere, ignoring caching protocols, being used to test out things like look and feel. But with a virtual machine image like a docker you might be able to get a nice silo for realistic machine testing without relying on the pi's hardware.

Running things on multiple instances of OpenStack is another day for me, and I wouldn't be sure if it was practical to actually do until I tried :D It's easy to say you can do anything, but checkpoint reality is rather hard to reach.
1


Reply | Forum Index