codes-org / codes

The Co-Design of Exascale Storage Architectures (CODES) simulation framework builds upon the ROSS parallel discrete event simulation engine to provide high-performance simulation utilities and models for building scalable distributed systems simulations
Other
40 stars 16 forks source link

optimize model-net scheduling loop for new messages on empty queues (Imported #51) #51

Closed nmcglo closed 5 years ago

nmcglo commented 8 years ago

Original Issue Author: Jonathan Jenkins Original Issue ID: 51 Original Issue URL: https://xgitlab.cels.anl.gov/codes/codes/issues/51


Currently, the event flow is

model_net_event -event-> sched_new -event-> sched_next -> drop into network impl

If the queue is empty, then the event separating the sched_new and the sched_next functions is unnecessary. Less events is better.

nmcglo commented 8 years ago

Jonathan Jenkins:

Thankfully ended up being easier to implement than expected (though with a bit of magic to distinguish a combined "new msg+schedule next" event from a "schedule next" event. No problems seen from anyone, so in it goes.

nmcglo commented 8 years ago

Jonathan Jenkins:

Status changed to closed