Hacker News new | ask | show | jobs
by jeremyjh 5045 days ago
"Each instance (Heroku calls them dynos), has:

512MB of RAM, 1GB of swap. Total = 1.5GB RAM. 4 CPU cores (Intel Xeon X5550 @ 2.67GHz)."

That is very interesting. So you get 200% of the CPU from a c1.medium but only 1/6 that memory? For 1/8 the price that Amazon charges? Maybe this is a the new math I keep hearing about.

1 comments

I would guess that Heroku runs ~29 dynos per m1.xlarge, so each dyno gets a minimum of ~1/7th of a core or ~366 MHz. Just because you can see 4 cores doesn't mean you can use them.
One day I noticed that Heroku gives you access to netstat, so I started trying to figure out the actual number.

Running this:

    heroku run "netstat -l | grep lxc | wc -l"
...seems to imply that it's actually 100 ± 25 dynos per instance.

(It's possible I could be entirely misunderstanding the netstat output, in which case someone please speak up.)

Yes, I know that. The OP doesn't seem to know that. This is a problem, because the piece he is responding to in a large part is concerned with the meager resources provided by a single Dyno.