isqad / rubyizumi

Automatically exported from code.google.com/p/rubyizumi
GNU Affero General Public License v3.0
0 stars 0 forks source link

Consume high #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

Project interesting ....

What a pity that each user / connected is a new instance?, and each
instance consumes 1.2% of the cpu, see the screenshots in this attached, 10
videos playing the same video consuming 10% of the cpu and 10 mega RAM:)

It is very high consumption to a core 2 duo 2.4, 3 gb-ram, 4 mega cache.

Great work, and congratulations!

Carlos Eduardo
carloseduardo@egenial.com.br

Original issue reported on code.google.com by egen...@gmail.com on 29 Mar 2008 at 3:22

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hi Carlos,

Thanks for your comment. I haven't focused to the performance yet. ;)

Currently, this implementation creates new RTMP::Session, RTMP::SessionReader, 
RTMP::SesstionWriter when 
user connects. But this may consume pretty much memory i think. However, I've 
noticed the cpu issue. I don't 
know a lot about Ruby raw performance on TCP server use, so I'll start to write 
some test codes to compare C 
and Ruby performances.   

Takuma

Original comment by takuma...@gmail.com on 30 Mar 2008 at 9:22

GoogleCodeExporter commented 9 years ago
Takuma:

You rock! I was going to rubyforge to make new project plan for an RTMP server! 
Nice project!
Are shared objects implemented ? ? 

We need more buzz on this, may I (with your permisson) spread the word on 
osflash and friends?

Carlos: Brazil on flex on rails? =D 

Original comment by chad...@gmail.com on 2 Apr 2008 at 11:26

GoogleCodeExporter commented 9 years ago

Original comment by takuma...@gmail.com on 2 May 2008 at 7:11

GoogleCodeExporter commented 9 years ago

Original comment by takuma...@gmail.com on 2 May 2008 at 7:12

GoogleCodeExporter commented 9 years ago
Ruby green thread seems too slow to serve many connections. I think we need to 
rewrite for using asyncronous 
socket.

Original comment by takuma...@gmail.com on 2 May 2008 at 7:16

GoogleCodeExporter commented 9 years ago
I've comited r45 (for trunk) and r46 (for branches/eventmachine). The 
branch/eventmachine is the test version of 
using Ruby/EventMachine.

Original comment by takuma...@gmail.com on 8 May 2008 at 7:34