OpenAMP / open-amp

The main OpenAMP library implementing RPMSG, Virtio, and Remoteproc for RTOS etc
https://www.openampproject.org/
Other
678 stars 278 forks source link

OpenAMP's performance #442

Closed JjchenGravityxr closed 1 year ago

JjchenGravityxr commented 1 year ago

I use echo_test to test between A53 and R5. The [Sending time] is fast (<200us). The [Receiving time] is slow (about 4500us). I don't know what went wrong. I want to know about the [Receiving time].

LOG is as follows:

Echo test start

Master>probe rpmsg_char

arnopo commented 1 year ago

Could you detail the HW platform and Software versions used?

JjchenGravityxr commented 1 year ago

Could you detail the HW platform and Software versions used?

HW platform: Xilinx Zynq UltraScale+ MPSoC ZCU106

software: xilinx VCU TRD 2022.1 petalinx 2022.1 kernel: xlnx_rebase_v5.15_LTS_2022.1 (quad A53 SMP) Freertos:10.0 (Dual R5 AMP)

arnopo commented 1 year ago

@TanmayShah-xilinx , @bentheredonethat Any clues?

Raveem13 commented 1 year ago

Hi @arnopo, The issue still exists or is it resolved in the latest version?

tnmysh commented 1 year ago

I am not sure how the receiving time is measured. I have not get chance to work on this.

One logical explanation I can think of is, APU runs at higher speed than RPU. So, If receiving time is measured on APU then it is expected that rx time is more than tx time. As RPU is slower than APU, it takes more time to process and send data than APU.

In this case, I wouldn't consider this as issue but expected behavior.

The correct way to measure send/receive time would be to run same algorithm on both RPUs running at same speed in split mode and then measure send and receive time.

tnmysh commented 1 year ago

@JjchenGravityxr @arnopo I don't think anything is wrong with what was measured w.r.t. send/recv time.

I don't think we should consider this an issure, as send time and recv time depends on core frequency. As explained above send time is less as APU runs on x GHz and recv time is more as RPU runs on y MHz frequency. So it is expected that recv time is more than send time.

If you agree to this analysis can we close this issue?

Tanmay.

arnopo commented 1 year ago

@JjchenGravityxr @arnopo I don't think anything is wrong with what was measured w.r.t. send/recv time.

I don't think we should consider this an issure, as send time and recv time depends on core frequency. As explained above send time is less as APU runs on x GHz and recv time is more as RPU runs on y MHz frequency. So it is expected that recv time is more than send time.

If you agree to this analysis can we close this issue?

Tanmay.

I close it. this point is not related to the library but the platform. A discussion can be open if need to go further