Live data from Hacker News

Show HN: RaspChat a chat system that can handle thousands of users on basic RPi

beta.raspchat.com

11–20 of 22 posts

Re: Show HN: RaspChat a chat system that can handle thousands of users on basic RPi

#11

WARNING: yes, i am going to be THAT guy... . . . It amazes me that "thousands" of users sending simple messages is considered impressive nowadays on a machine with a xxxxMHz CPU and at least xxxMB ram. This was being done decades ago on xxMB ram and xxxMHz. sister comment says 100MB/1K connections, 150MB for 2K, so 50KB/connection and 50MB fixed cost?!!? - Dump Javascript/Go/$RANDOM_LATEST_BUZZWORD_7 and learn how to…

The chat portion was written in Golang, so it's compiled and running on bare metal (edit: okay, PL0 or ring-3, like most software today)

Re: Show HN: RaspChat a chat system that can handle thousands of users on basic RPi

#12
post #11

WARNING: yes, i am going to be THAT guy... . . . It amazes me that "thousands" of users sending simple messages is considered impressive nowadays on a machine with a xxxxMHz CPU and at least xxxMB ram. This was being done decades ago on xxMB ram and xxxMHz. sister comment says 100MB/1K connections, 150MB for 2K, so 50KB/connection and 50MB fixed cost?!!? - Dump Javascript/Go/$RANDOM_LATEST_BUZZWORD_7 and learn how to…

The chat portion was written in Golang, so it's compiled and running on bare metal (edit: okay, PL0 or ring-3, like most software today)

not even close to bare metal...

Go runtime, GC, random userspace bits this is on top of

50MB!

Re: Show HN: RaspChat a chat system that can handle thousands of users on basic RPi

#13
post #7
post #6

Earlier quoted context omitted.

Got server load averages? how much ram is used?

1K parallel connections were handled under 100MB of memory. 2K were around 150MB

50KB/connection and 50MB fixed cost?!!?

Re: Show HN: RaspChat a chat system that can handle thousands of users on basic RPi

#14

WARNING: yes, i am going to be THAT guy... . . . It amazes me that "thousands" of users sending simple messages is considered impressive nowadays on a machine with a xxxxMHz CPU and at least xxxMB ram. This was being done decades ago on xxMB ram and xxxMHz. sister comment says 100MB/1K connections, 150MB for 2K, so 50KB/connection and 50MB fixed cost?!!? - Dump Javascript/Go/$RANDOM_LATEST_BUZZWORD_7 and learn how to…

Just quoted the benchmark numbers, that were observed there is no fixed cost ofcourse! Here is the deal, it's not something to impress people (specially THAT guy), but proof of concept that if you know how to implement something a RPi is enough. I also know IRC and XMPP has already done this, and these are the system that inspire modern systems like Slack (for which you will be happy to pay). This project started of for me to put my RPi to use, and you know what it's quite useful so far. So ya nobody needs to be impressed, I am just an engineer building toys to increase my experience.

Re: Show HN: RaspChat a chat system that can handle thousands of users on basic RPi

#15
post #7

Earlier quoted context omitted.

1K parallel connections were handled under 100MB of memory. 2K were around 150MB

50KB/connection and 50MB fixed cost?!!?

Nops nothing is fixed it's just one scenario, besides your math is wrong. 50KB/connection won't map to 2000 connections.

Re: Show HN: RaspChat a chat system that can handle thousands of users on basic RPi

#19
post #15

Earlier quoted context omitted.

50KB/connection and 50MB fixed cost?!!?

Nops nothing is fixed it's just one scenario, besides your math is wrong. 50KB/connection won't map to 2000 connections.

(rate of) change in memory per user

    150MB    - 100MB
    -------------------  =  50KB/user
    2k users - 1k users
no?

Re: Show HN: RaspChat a chat system that can handle thousands of users on basic RPi

#20
post #15

Earlier quoted context omitted.

Nops nothing is fixed it's just one scenario, besides your math is wrong. 50KB/connection won't map to 2000 connections.

(rate of) change in memory per user 150MB - 100MB ------------------- = 50KB/user 2k users - 1k users no?

if 0 -> 1000 users is 100MB, how can you explain 1000 -> 2000 with 150MB
Post reply on HN