shared memory size of ns3-ai

136 views
Skip to first unread message

Fan Yam Tsang

unread,
Aug 10, 2021, 7:19:37 PM8/10/21
to ns-3-users
I am trying to use the reinforcement learning framework in ns3-ai. I found that the size of variables (env, action) I put in the shared memory is fixed. For instance, I can only put 3 uint32_t variables in the shared memory, or else the following error appears:
Something wrong
Size of memory error(14 16)
cleaning

It requires me to put the exact same size of variables as required. One uint32_t equals to 4 bytes. And the available space is only 16 bytes. What if I want to put more variables in the shared memory? Is there a way to do it?

Thanks!

HaoYin

unread,
Aug 10, 2021, 11:24:30 PM8/10/21
to ns-3-users
Hi,

The reason you got the error is that the memory allocated last time was not successfully released. You can run this script to release the memory first. 
Thanks.
Hao

Fan Yam Tsang

unread,
Aug 11, 2021, 11:01:59 AM8/11/21
to ns-3-users
Thank you!

Mubanga Nsofu

unread,
Mar 6, 2022, 9:59:52 PM3/6/22
to ns-3-users
Thanks for this bash file... it works like charm
Reply all
Reply to author
Forward
0 new messages