Unipisa / Simu5G

Simu5G - 5G NR and LTE/LTE-A user-plane simulation model for OMNeT++ & INET
https://simu5g.org
Other
147 stars 83 forks source link

Simulate a processing time #146

Closed zazim13 closed 1 year ago

zazim13 commented 1 year ago

Hi,

  1. I am trying to simulate a processing time to make my MecApp more realistic. I would like my mecApp to actually consume simulation time. I saw in this paper that I can call compute(N) but I cannot find this function used.

  2. And also I would like to confirm the behaviour of the mecApp when there are multiple requests coming from the UE, in the case where each request triggers some computations that consume some simulation time( thanks to comput(N) ). When the mecApp has already scheduled the computation time for a request, if it receives a new requests, Is the computation time of the previous request delayed ? will the mecApp take into account the remaining computation resources ? What happens when there are no more resources available ?

Sincerly Hakim

giovanninardini commented 1 year ago

Hello,

  1. please see the function VirtualisationInfrastructureManager::calculateProcessingTime()

  2. the current implementation of VirtualisationInfrastructureManager::calculateProcessingTime() just returns a "delay" that considers the number of instructions to be executed by the MecApp invoking the function itself and the amount of resources allocated to the MecApp (see the code of the function). This means that previous processing time requests are not affected.

zazim13 commented 1 year ago

Hi, Thank you for your answer.