Thanks Abhishek for the patch. This will certainly help in debugging on Arduino 
Mega.

Sachin



From: Abhishek Sharma [mailto:[email protected]] 
Sent: Thursday, September 03, 2015 6:22 AM
To: Agrawal, Sachin
Cc: iotivity-dev at lists.iotivity.org
Subject: RE: [dev] OC logger memory consumption problem for Arduino devices



Sachin, 



Please review https://gerrit.iotivity.org/gerrit/#/c/2363/ 

This change is saving around 4k RAM on Arduino.



------- Original Message -------

Sender : Agrawal, Sachin<sachin.agrawal at intel.com>

Date : Sep 01, 2015 02:39 (GMT+05:30)

Title : RE: [dev] OC logger memory consumption problem for Arduino devices



Abhishek,



I do not think there is any technical reason for it L.

If somebody can push a patch with the change enabling PCF macro by default in 
those logging API?s, we can merge it in the repo.



Thanks

Sachin

From: iotivity-dev-bounces at lists.iotivity.org 
[mailto:[email protected]] On Behalf Of Abhishek Sharma
Sent: Monday, August 31, 2015 7:29 AM
To: iotivity-dev at lists.iotivity.org
Subject: Re: [dev] OC logger memory consumption problem for Arduino devices





We can see PCF() wrapper being missed out in many log statements, hence leading 
to log strings being stored in RAM.

In connectivity logger (OIC_LOG), PCF wrapper is part of macro OIC_LOG_V(), 
OIC_LOG() so that caller don't have to explicitly wrap around every log string 
in PCF() wrapper.



Is there any specific reason why PCF() wrapping has been left as a 
responsibility of caller rather than doing it in OC_LOG /OC_LOG_V  macros ? 



------- Original Message -------

Sender : Koushik Girijala<g.koushik at samsung.com> Lead 
Engineer/SRI-Bangalore-IoT & Connectivity/Samsung Electronics

Date : Aug 31, 2015 19:42 (GMT+05:30)

Title : [dev] OC logger memory consumption problem for Arduino devices



Hi,



Am Facing Memory consumption problems with OC logging for Arduino Mega device,



1. Found out that OC_LOG  is occupying almost 3500 bytes of RAM because of 
which we are facing "Out of Memory issues" with latest master code built for 
Arduino MEGA with RELEASE=0.

2. Tried disabling/Enabling probabilities for OC and OIC logs and found below 
observation

     OC_LOG         OIC_LOG        RAM USED         RAM LEFT

1    Disabled        Disabled          4592                    4094 



2    Disabled        Enabled          4592                    4094 



3    Enabled        Enabled          7914                        772



4    Enabled        Disabled          7914                        772



Found that OC log is occupying huge memory i.e almost 3500 bytes in Arduino 
Mega and OIC log is using very less RAM memory.

Could anyone help with suggestion to solve above problem with OC_LOG usage in 
RI layer.

Regards,
Koushik
















  
<http://ext.samsung.net/mailcheck/SeenTimeChecker?do=79e2d20fb2f3d58a84a849b1a1163b360562fecb5c9990e81bd5d3f070d4040de6a44309a424ac7eacb4cd7a54e093fcaa8f112c08b63c45db9fdddda33e82cbe4a391424e62fcf6cf878f9a26ce15a0>
 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20150903/a4d934aa/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 13168 bytes
Desc: not available
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20150903/a4d934aa/attachment.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 7768 bytes
Desc: not available
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20150903/a4d934aa/attachment.p7s>

Reply via email to