We have been trying to do some performance benchmarking for our webapp written using python that uses mongodb heavily and we have found the following.
We tried using 1st Gen Extra Large ec2 servers with 8 ecu's and 15 GB memory
- The python on ec2 servers is at least 30% slower than the local machine
- The disk I/O is extremely slow. The mongostat and iostat results show that the disk write is around 1MBpS
- The programs themselves run so much slower than the local machine
We have not been able to figure out why all this is happening. The local machines we are talking about have 8GB RAM and i5 processors.
UPDATE The way we tested python was that we ran a loop that would take 10 seconds to complete with no disk read or write. The same took at least 30% more time on each trial.
Does this relate to this?