静脉模拟运行非常缓慢 [英] Veins simulation running very slow
问题描述
我正在用25辆汽车和100辆Rsu进行Veins模拟.模拟运行非常缓慢.我尝试了给出的示例,情况是一样的.我能做些什么 ? 我尝试过使用释放模式,关闭动画,使用命令模式,将并行进程的数量从1增加到4.没有任何帮助,在快速模式下,它的运行速度降低到了毫秒.
I am running Veins simulation with 25 cars and 100 Rsu's. Simulation is running awfully slow. I tried with the example given and the case is same. What can I do ? I have tried with Release mode, switching off animations, with command mode, increased number of parallel processes from 1 to 4. Nothing is helping, in express mode it slows down to milliseconds.
更新:发送和接收更多消息时,仿真变得越来越慢. 我有5辆汽车和50 RSU,射程500米,这是我的仿真速度:
Update: Simulation has become more slow when more message are sent and received. With 5 cars and 50 RSU with Range of 500 meter this is my simulation speed:
** Event #27359744 t=46.268980990815 Elapsed: 5387.036s (1h 29m) 46% completed
Speed: ev/sec=4094.07 simsec/sec=0.00195494 ev/simsec=2.09421e+006
Messages: created: 21616816 present: 20679 in FES: 20123
** Event #27359744 t=46.268980990815 Elapsed: 5387.036s (1h 29m) 46% completed
Speed: ev/sec=4094.07 simsec/sec=0.00195494 ev/simsec=2.09421e+006
Messages: created: 21616816 present: 20679 in FES: 20123
当前使用命令模式.
推荐答案
我弄清楚了为什么仿真速度很慢,每秒事件为ev/simsec=2.09421e+006
.因此,我调试了代码,发现RSU收到的每条消息都会发回一条消息.因此,删除此选项后,仿真的运行速度将大大提高.
I figured it out why simulation was slow, events per seconds were ev/simsec=2.09421e+006
. So I debugged the code and found that for every message RSU receives it sends a message back. So after removing this the simulation is running much faster.
这篇关于静脉模拟运行非常缓慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!