📄 readme
字号:
Disclaimer----------This is a pre alpha version of p2psim. We would value your feedback withsuggestions and improvements.Compiling p2psim----------------Please see INSTALL for compilation instructions.Also, see: http://pdos.lcs.mit.edu/p2psim/howto.html Running p2psim--------------You'll need to create 3 files first. A topology file, a protocol file, and anevents file.Look at example/topology.txt for the syntax and an example of a topology file.Look at example/protocol.txt for the syntax and an example of a protocol file.Look at example/events.txt for the syntax and an example of an events file.p2psim/p2psim [protocolfile] [topologyfile] [eventsfile]Scripts-------- run-simulations.pl:scripts/run-simulations.pl allows you to iterate (randomly or sequentially)through different parameter configurations of a particular protocol. To run,make a file containing the names of all the parameters to test, and thevalues those parameters should take. For example:base 1 2 3 4timer 200 400 600bigtimer *timer 2 4littlebase <=base 1 2 3 4base can take on values 1 through 4, and timer can take on 200, 400, or 600.bigtimer will be equal to either twice or 4 times the timer value, and littlebase can be 1 through 4, but is constrained to be less than or equal tothe value of base. Other modifiers include "=", "+", "<", and ">". For examples of some parameter files, see the {tapestry, chord, kademlia, kelips}_args files in example/.Run 'scripts/run-simulations.pl --help' to see the available options. It usesthe ChurnEventGenerator to generate events. An example execution might be:scripts/run-simulations.pl --protocol tapestry --topology example/silly-top.txt --lookupmean 1000 --lifemean 100000 --deathmean 100000 --exittime 200000 --args example/tapestry_args --logdir /tmp/p2psimtest --randomize 100Your logs will be in the directory /tmp/p2psimtest, which will be created ifit doesn't already exist.Questions?----------Please see our FAQ at: http://pdos.lcs.mit.edu/p2psim/faq.html, or send usemail at p2psim-dev@pdos.lcs.mit.edu.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -