mapa17 / Eruliaf

A BitTorrent like overlay peer simulator
GNU General Public License v3.0
1 stars 0 forks source link

Extreme Slowdown with progression of simulation #46

Open mapa17 opened 12 years ago

mapa17 commented 12 years ago

With progression of the simulation it gets really really slow.

Although it starts out with about 200 ticks after 30 seconds, at around 1000 ticks, a tick needs one second, and after than keeps on to get longer and longer.

Use a profiler to run to 800 and have a look on what going on. At tick 1080 there where 250 peers in the system. This should be too much!

mapa17 commented 12 years ago

Its getting really slow (real time) with about 600 ticks.

The profiler gives the same results like in a short run. PieceSet operations take a lot of time. Because of that i will try to reduce the number of pieces.

Right now by reducing the file size to 500mb and keeping the piece size at 2. In addition, reducing the spawn rate for new peers. Hopefully this will help.