Skip to content

umedoblock/umatobi

Repository files navigation

= umatobi
umatobi DHT simulator

multi processing によって、simulation をする事を目的として開発を進めました。

umatobi simulattor を使用すると、multi processes / threads の
動作環境を容易に構築できます。

see NOTE.

しかし、まだ、完成していません。
OpenGL を動かすことが出来る程度です。
OpenGL の動作確認をしたければ,
    OpenGL/circle_with_legs.py
    OpenGL/circle.py
を使ってみて下さい。

= algorithm
自分にとって n 個隣の node に,
あなたにとって n 個隣の node を教えてと問い合わせる。
log(N)回。

see detail in ooo/umatobi.odp and ooo/umatobiAlgo.txt

= 説明
umatobi/simulation.py:
simulation 時に、各 process が管理する node で起こった事を、
client.x.db に記録します。

umatobi/tools/make_simulation_db.py
各 process が作成した client.x.db を一つの simulation.db にまとめます。

umatobi/theater.py:
simulation.db を読み込み、OpenGL を使って、simulation 結果を表示します。

= 実行方法
$ python3 umatobi/simulation.py
$ python3 umatobi/tools/make_simulation_db.py
$ python3 umatobi/theater.py

ctrl-c で終了。

= 実行環境と python3 の性能評価
umatobi/performance
以下の script を実行すると、実行環境と python3 の
性能評価を色々することが出来ます。

umatobi/performance/max-threads.py
umatobi/performance/max-threads-in-system.py

では、process, thread を大量に作成します。
process, thread の大量作成によって、
かなり重い負荷を開発環境にかけることが出来ますので、
開発環境が不安定になったりする場合があります。
注意して遊んでください。

About

umatobi DHT simulator

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.txt

Stars

Watchers

Forks

Packages

No packages published