« Starfish and ActiveRecord love memory | Main | Thinking of using EC2 »

July 03, 2007

Comments

Lourens Naude

Hi,

Nice roll of posts :-)

I published a case study some time ago about general Ruby / Rails memory usage : http://blog.methodmissing.com/2007/5/10/rails-memory-usage-case-study/

a) Kudos for decoupling your environment from your MVC stack ...

b) I recently wrote a video transcoder for a client using starfish, with a custom Directory mapreduce type.The first process fires your Drb server up and subsequent clients generall have a 30MB RSS overhead.Not bad at all, considering that potentially scales across your whole subnet to 2 ... X hosts.

c) Dont waste time on designing against your VPS memory limitation, opt for a entry / mid level box with 1 to 2 GB RAM ( there's good deals out there ) which would be sufficient for Production ... and experiments ... off course :-)

Dr Nic

It might be interesting to look at running these over jruby, where you can get reuse of the code with free java threading for each jruby instance. It might cost a bunch of memory to get started (JVM + libraries) but you wouldn't need to duplicate this for each "ruby process", I don't think.

That's my understanding anyway. If you investigate it I look forward to the results.

The comments to this entry are closed.

My Photo

Talks

Linkage

  • My Github
  • Feedzirra
    My Ruby library for parsing and fetching feeds at blinding speed.
  • SAX Machine
    My Ruby library exposes a DSL for building Nokogiri backed SAX parsers.
  • Typhoeus
    My Ruby library for running HTTP requests quickly, easily, and in parallel.
  • NYC Machine Learning Meetup
    The meetup I organize. Talks from researchers and practitioners on machine learning and related technologies and techniques.
  • Benchmark Solutions
    The financial market data startup I work for in NYC. We're hiring and need Javascript, Scala, C++, and Ruby programmers. We're also on the lookout for PhDs in statistics or machine learning.

Twitter / pauldix