Reduce COSMOS memory usage #78

Closed
jmthomas opened this Issue Feb 27, 2015 · 2 comments

Comments

Projects
None yet
2 participants
@jmthomas
Member

jmthomas commented Feb 27, 2015

No description provided.

jmthomas pushed a commit that referenced this issue Feb 27, 2015

jmthomas pushed a commit that referenced this issue Feb 27, 2015

jmthomas pushed a commit that referenced this issue Feb 27, 2015

@jmthomas

This comment has been minimized.

Show comment
Hide comment
@jmthomas

jmthomas Feb 27, 2015

Member

I ran my configuration which spawns 30 targets and which I continuously send commands to all targets. Improvements are pretty dramatic:
22x improvement in memory allocation in Qt.rb and 1/2 the number of objects
75x improvement in memory allocation in cmd_tlm_server_gui.rb and 1/2 the number of objects
2.5x improvement in memory allocation in json_rpc.rb and 1/4 the number of objects

Other pieces of code show more minor improvements. All specs pass.

Member

jmthomas commented Feb 27, 2015

I ran my configuration which spawns 30 targets and which I continuously send commands to all targets. Improvements are pretty dramatic:
22x improvement in memory allocation in Qt.rb and 1/2 the number of objects
75x improvement in memory allocation in cmd_tlm_server_gui.rb and 1/2 the number of objects
2.5x improvement in memory allocation in json_rpc.rb and 1/4 the number of objects

Other pieces of code show more minor improvements. All specs pass.

jmthomas pushed a commit that referenced this issue Mar 6, 2015

jmthomas pushed a commit that referenced this issue Mar 6, 2015

Memory performance and speed performance updates.
Update json_drb and tcpip_socket_stream to use single object in read_nonblock to reduce memory usage. Reduce max blocks in cmd_tlm_server_gui.txt to avoid out of memory errors. Other minor performance improvements. #78

jmthomas pushed a commit that referenced this issue Mar 6, 2015

jmthomas pushed a commit that referenced this issue Mar 6, 2015

jmthomas pushed a commit that referenced this issue Mar 6, 2015

jmthomas pushed a commit that referenced this issue Mar 9, 2015

jmthomas pushed a commit that referenced this issue Mar 12, 2015

ryanatball added a commit that referenced this issue Mar 12, 2015

ryanatball added a commit that referenced this issue Mar 12, 2015

jmthomas added a commit that referenced this issue Mar 12, 2015

@ryanatball

This comment has been minimized.

Show comment
Hide comment
@ryanatball

ryanatball Mar 13, 2015

Member

closed by pull request #79

Member

ryanatball commented Mar 13, 2015

closed by pull request #79

@ryanatball ryanatball closed this Mar 13, 2015

@ryanatball ryanatball added this to the v3.3.1 milestone Mar 20, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment