xbt_dynar_t file_descriptor_table;
} s_msg_host_priv_t;
+XBT_PUBLIC_DATA(int) sg_storage_max_file_descriptors;
+
/* ******************************** Task ************************************ */
typedef struct simdata_task *simdata_task_t;
XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(msg);
+int sg_storage_max_file_descriptors = 1024;
+
/** @addtogroup m_host_management
* (#msg_host_t) and the functions for managing it.
*
priv->affinity_mask_db = xbt_dict_new_homogeneous(nullptr);
priv->file_descriptor_table = xbt_dynar_new(sizeof(int), nullptr);
- for (int i=1023; i>=0;i--)
+ for (int i=sg_storage_max_file_descriptors-1; i>=0;i--)
xbt_dynar_push_as(priv->file_descriptor_table, int, i);
sg_host_msg_set(host,priv);
xbt_cfg_register_string("smpi/reduce", nullptr, &_check_coll_reduce, "Which collective to use for reduce");
#endif // HAVE_SMPI
+ /* Storage */
+
+ sg_storage_max_file_descriptors = 1024;
+ simgrid::config::bindFlag(sg_storage_max_file_descriptors, "storage/max_file_descriptors",
+ "Maximum number of concurrently opened files per host. Default is 1024");
+
+ /* Others */
+
xbt_cfg_register_boolean("exception/cutpath", "no", nullptr,
"Whether to cut all path information from call traces, used e.g. in exceptions.");