Re:Show HN: RaspChat a chat system that can handle thousands...
by maxpert on Tuesday August 16, 2016 @04:37PM
(#12300457)
1K parallel connections were handled under 100MB of memory. 2K were around 150MB
[ Parent
| on HN ]
Re:Show HN: RaspChat a chat system that can handle thousands...
by dmitrygr on Tuesday August 16, 2016 @07:39PM
(#12301470)
50KB/connection and 50MB fixed cost?!!?
Re:Show HN: RaspChat a chat system that can handle thousands...
by maxpert on Tuesday August 16, 2016 @10:49PM
(#12302192)
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...
by RubyPinch on Wednesday August 17, 2016 @06:37AM
(#12303594)
(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...
by maxpert on Wednesday August 17, 2016 @12:39PM
(#12305973)
if 0 -> 1000 users is 100MB, how can you explain 1000 -> 2000 with 150MB
Re:Show HN: RaspChat a chat system that can handle thousands...
by throway21312 on Wednesday August 17, 2016 @05:50PM
(#12308760)
Fixed cost: 50 MB
Variable Cost: 50KB/user
50 + 1000 * (0.05) => 100 MB
50 + 2000 * (0.05) => 150 MB
Pretty straightforward?
Re:Show HN: RaspChat a chat system that can handle thousands...
by maxpert on Wednesday August 17, 2016 @09:29PM
(#12309846)
Well if that's the math that works for you, but I won't assume anything here. If I would have written it in C or Rust lang I would have given quoted a more deterministic memory usage. Bottom line, benchmarks just quoted numbers. Should have put up a Notice disclaimer in comment as well.