Hi all:
We could find some pre-defined parameter for RTCS applications, like below:
/* runtime RTCS configuration for devices with small RAM, for others the default BSP setting is used */
_RTCSPCB_init = 4;
_RTCSPCB_grow = 2;
_RTCSPCB_max = 20;
_RTCS_msgpool_init = 4;
_RTCS_msgpool_grow = 2;
_RTCS_msgpool_max = 20;
_RTCS_socket_part_init = 4;
_RTCS_socket_part_grow = 2;
_RTCS_socket_part_max = 20;
user could modify the default value, I want to know,
(1)How these values work? since Max value is defined and allocated, why not set the init value same with Max value?
(2)how to decide these value for one specified application? for example, I open one FTP, one SNMP, maybe one HTTPs application together, how to calculate the right value?
(3)when the value is not renough, how to check? I see some task crashed in MQX spy tool. but no guide to use this tool.
thx!
Solved! Go to Solution.
Hi Dawei:
The following link is for the document (draft)
MQX RTCS Memory Configuration Parameters Introduction
Have a great day,
Daniel
-
Hi Dawei:
Please let me answer your questions
Each socket has its own PCBs and each PCB has its own msgpool.
we cann't set the init value same with Max value, because we want spend less RAM in the sockets in most cases.
If you will have a total of 8 sockets then suggest the following settings
_RTCSPCB_init = 8;
_RTCSPCB_grow = 2;
_RTCSPCB_max = 10;
_RTCS_msgpool_init = 8;
_RTCS_msgpool_grow = 2;
_RTCS_msgpool_max = 10;
_RTCS_socket_part_init = 8;
_RTCS_socket_part_grow = 2;
_RTCS_socket_part_max = 10;
You can check and debug this value with TAD.
I am trying to make a document about this later.
Have a great day,
Daniel
Thx, Daniel, If you have such doc, PLS share with me.
So, as you said, if I could confirm my socket number, so PCB,Poll,&socket is decided same as socket number?
It's enough for entire application? I could try for this guide.
Hi Dawei:
The following link is for the document (draft)
MQX RTCS Memory Configuration Parameters Introduction
Have a great day,
Daniel
-
thx