gpt4 book ai didi

java - SimGrid。模拟异常情况

转载 作者:行者123 更新时间:2023-12-01 18:05:37 26 4
gpt4 key购买 nike

SimGrid 通过主机网络对异常情况进行建模的方法是什么?例如,如何对链接路由的中断进行建模? Master 创建一些task 并将其dsend 发送给worker。但如果链接断开,该任务就会丢失。但是 master 不知道损坏的链接,并且可能会继续dsend新的taskworker

已更新

我将 .fail 文件添加到 platform.xml 的 state_file 属性中。

PERIODICITY 10.0
1.0 1
2.0 0

worker停止工作时,会发生错误。 有什么方法可以处理呢?

** SimGrid: UNCAUGHT EXCEPTION received on java(2): category: action canceled; value: 0
** �;
** Thrown by LHCb.Tier1() in this process
[Tier1_1:LHCb.Tier1:(2) 2.000000] /builds/workspace/SimGrid-Multi/build_mode/Debug/node/simgrid-ubuntu-trusty-64/build/SimGrid-3.13/src/xbt/ex.c:140: [xbt_ex/CRITICAL] �;

** In _ZN7simgrid4java11JavaContext4stopEv() at /builds/workspace/SimGrid-Multi/build_mode/Debug/node/simgrid-ubuntu-trusty-64/build/SimGrid-3.13/src/bindings/java/JavaContext.cpp:144
** In SIMIX_process_yield() at /builds/workspace/SimGrid-Multi/build_mode/Debug/node/simgrid-ubuntu-trusty-64/build/SimGrid-3.13/src/simix/smx_process.cpp:1014
** In simcall_execution_wait() at /builds/workspace/SimGrid-Multi/build_mode/Debug/node/simgrid-ubuntu-trusty-64/build/SimGrid-3.13/src/simix/libsmx.cpp:276
** In MSG_parallel_task_execute() at /builds/workspace/SimGrid-Multi/build_mode/Debug/node/simgrid-ubuntu-trusty-64/build/SimGrid-3.13/src/msg/msg_gos.cpp:90
** In MSG_host_del_task() at /builds/workspace/SimGrid-Multi/build_mode/Debug/node/simgrid-ubuntu-trusty-64/build/SimGrid-3.13/src/msg/msg_vm.cpp:521
** In ExceptionOccurred() at /usr/lib/jvm/java-7-openjdk-amd64/include/jni.h:825
** In ?? at [0x7f7aa8e09d98]

最佳答案

您需要的一切都存在于 SimGrid 中,以“失败”的名义存在,但不幸的是,记录有点稀疏。您想要将状态跟踪文件添加到您的主机或链接。

请引用the documentationplatform tutorial 。您可以在存档的文件examples/platforms/faulty_host.xml 中找到使用示例。

请注意,它描述了主机的故障,但这与链接的故障完全相同,也可以在 XML 中给出状态文件。

关于java - SimGrid。模拟异常情况,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36679338/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com