Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce RAM usage from CHIPDeviceEvent #17959

Merged

Conversation

tcarmelveilleux
Copy link
Contributor

Problem

  • CHIPDeviceEvent has had a historical InternetConnectivityChange
    event that embeds a 46 byte string (instead of a 16 byte IPAddress)
    and is only used for logging in examples.=
  • This event is in a union and is the largest of all the sub-structs,
    therefore forcing max-sized events to that event.

Issue #9261

Change overview

  • Changes the address from a string to an IPAddress
  • Renames to ipAddress to break external clients using this struct
    so that they notice on the next roll to master (usage change is trivial).
  • Updates all examples to no longer log the address, since it was only
    logged for IPv4 and not IPv6, and IPv6 is the standard, so if it was
    good enough for IPv6 not to log, it's good enough for IPv4.
  • Make IPAddress trivially copyable by removing a non-trivial operator= that was actually implementing the
    trivial copy. Upstream OpenWeave code that was the basis for the IPAddress.h file removed it already in late
    2021, > 1.5 years after import (see
    openweave/openweave-core@fbbb01c#diff-33121ed998c085b8dc0026f30f24aaadb8b8b36042e38b449cec15c32c8ba86e)
  • Update all platforms that populated the address to use the actual address,
    not the string

Testing

  • All cert tests pass
  • All unit tests pass

- CHIPDeviceEvent has had a historical `InternetConnectivityChange`
  event that embeds a 46 byte string (instead of a 16 byte IPAddress)
  and is *only used for logging* in examples.=
- This event is in a union and is the largest of all the sub-structs,
  therefore forcing max-sized events to that event.

Issue project-chip#9261

This PR:

- Changes the `address` from a string to an IPAddress
- Renames to `ipAddress` to break external clients using this struct
  so that they notice on the next roll to master (usage change is trivial).
- Updates all examples to no longer log the address, since it was only
  logged for IPv4 and not IPv6, and IPv6 is the standard, so if it was
  good enough for IPv6 not to log, it's good enough for IPv4.
- Make IPAddress trivially copyable by removing a non-trivial `operator=` that was actually implementing the
  trivial copy. Upstream OpenWeave code that was the basis for the IPAddress.h file removed it already in late
  2021, > 1.5 years after import (see
  openweave/openweave-core@fbbb01c#diff-33121ed998c085b8dc0026f30f24aaadb8b8b36042e38b449cec15c32c8ba86e)
- Update all platforms that populated the address to use the actual address,
  not the string

Testing done:

- All cert tests pass
- All unit tests pass
@github-actions
Copy link

github-actions bot commented May 2, 2022

PR #17959: Size comparison from 0824e95 to 90dd900

Increases (15 builds for cc13x2_26x2, efr32, esp32, mbed, p6)
platform target config section 0824e95 90dd900 change % change
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read/write) 163336 163368 32 0.0
lock-ftd LP_CC2652R7 (read/write) 166728 166752 24 0.0
pump-app LP_CC2652R7 (read/write) 183468 183500 32 0.0
pump-controller-app LP_CC2652R7 (read/write) 190380 190404 24 0.0
efr32 lighting-app BRD4161A+rs911x (read only) 746532 746580 48 0.0
.text 746524 746572 48 0.0
lock-app BRD4161A+wf200 (read only) 916528 916544 16 0.0
.text 916520 916536 16 0.0
esp32 all-clusters-app c3devkit (read only) 999622 999694 72 0.0
.flash.text 999622 999694 72 0.0
m5stack (read only) 1054807 1054823 16 0.0
.flash.text 1049423 1049439 16 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read/write) 2490384 2490448 64 0.0
.text 1452956 1453020 64 0.0
lighting-app CY8CPROTO_062_4343W+release (read/write) 2440360 2440424 64 0.0
.text 1402932 1402996 64 0.0
lock-app CY8CPROTO_062_4343W+release (read/write) 2418060 2418124 64 0.0
.text 1380660 1380724 64 0.0
shell CY8CPROTO_062_4343W+release (read/write) 2366456 2366520 64 0.0
.text 1329028 1329092 64 0.0
p6 all-clusters-app default (read/write) 2528592 2528608 16 0.0
.text 1486856 1486872 16 0.0
light-app default (read/write) 2419176 2419208 32 0.0
.text 1377440 1377472 32 0.0
lock-app default (read/write) 2428464 2428496 32 0.0
.text 1386728 1386760 32 0.0
Decreases (16 builds for cc13x2_26x2, cyw30739, efr32, k32w, nrfconnect, telink)
platform target config section 0824e95 90dd900 change % change
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read only) 688919 688887 -32 -0.0
.text 586132 586100 -32 -0.0
lock-ftd LP_CC2652R7 (read only) 676783 676759 -24 -0.0
.text 581944 581920 -24 -0.0
lock-mtd LP_CC2652R7 (read only) 625543 625519 -24 -0.0
.text 530808 530784 -24 -0.0
pump-app LP_CC2652R7 (read only) 661283 661251 -32 -0.0
.text 580412 580380 -32 -0.0
pump-controller-app LP_CC2652R7 (read only) 654171 654147 -24 -0.0
.text 570364 570340 -24 -0.0
cyw30739 light cyw930739m2evb_01 (read/write) 626370 626346 -24 -0.0
.app_xip_area 528904 528880 -24 -0.0
lock cyw930739m2evb_01 (read/write) 625082 625066 -16 -0.0
.app_xip_area 529080 529064 -16 -0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 574210 574194 -16 -0.0
.app_xip_area 468588 468572 -16 -0.0
efr32 lighting-app BRD4161A (read only) 908232 908216 -16 -0.0
(read/write) 135128 134528 -600 -0.4
.bss 133072 132472 -600 -0.5
.text 908224 908208 -16 -0.0
window-app BRD4161A (read only) 845480 845448 -32 -0.0
(read/write) 133216 132616 -600 -0.5
.bss 131248 130648 -600 -0.5
.text 845472 845440 -32 -0.0
lighting-app BRD4161A+rpc (read only) 942576 942560 -16 -0.0
(read/write) 151808 151208 -600 -0.4
.bss 149552 148952 -600 -0.4
.text 942568 942552 -16 -0.0
BRD4161A+rs911x (read/write) 129352 128752 -600 -0.5
.bss 127372 126772 -600 -0.5
k32w light k32w061+release (read/write) 684252 684220 -32 -0.0
.text 599220 599188 -32 -0.0
lock k32w061+release (read/write) 729148 729036 -112 -0.0
.text 643732 643620 -112 -0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1180123 1177675 -2448 -0.2
bss 142000 139600 -2400 -1.7
text 808636 808620 -16 -0.0
telink lighting-app tlsr9518adk80d (read/write) 807680 804440 -3240 -0.4
bss 75432 72232 -3200 -4.2
text 571302 571260 -42 -0.0
Full report (26 builds for cc13x2_26x2, cyw30739, efr32, esp32, k32w, mbed, nrfconnect, p6, telink)
platform target config section 0824e95 90dd900 change % change
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read only) 688919 688887 -32 -0.0
(read/write) 163336 163368 32 0.0
.bss 75236 75236 0 0.0
.data 3400 3400 0 0.0
.rodata 102303 102303 0 0.0
.text 586132 586100 -32 -0.0
lock-ftd LP_CC2652R7 (read only) 676783 676759 -24 -0.0
(read/write) 166728 166752 24 0.0
.bss 73548 73548 0 0.0
.data 3224 3224 0 0.0
.rodata 94359 94359 0 0.0
.text 581944 581920 -24 -0.0
lock-mtd LP_CC2652R7 (read only) 625543 625519 -24 -0.0
(read/write) 146352 146352 0 0.0
.bss 69268 69268 0 0.0
.data 3224 3224 0 0.0
.rodata 94247 94247 0 0.0
.text 530808 530784 -24 -0.0
pump-app LP_CC2652R7 (read only) 661283 661251 -32 -0.0
(read/write) 183468 183500 32 0.0
.bss 73764 73764 0 0.0
.data 3256 3256 0 0.0
.rodata 80387 80387 0 0.0
.text 580412 580380 -32 -0.0
pump-controller-app LP_CC2652R7 (read only) 654171 654147 -24 -0.0
(read/write) 190380 190404 24 0.0
.bss 73820 73820 0 0.0
.data 3220 3220 0 0.0
.rodata 83323 83323 0 0.0
.text 570364 570340 -24 -0.0
cyw30739 light cyw930739m2evb_01 (read/write) 626370 626346 -24 -0.0
.app_xip_area 528904 528880 -24 -0.0
.bss 80116 80116 0 0.0
.data 696 696 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
lock cyw930739m2evb_01 (read/write) 625082 625066 -16 -0.0
.app_xip_area 529080 529064 -16 -0.0
.bss 78692 78692 0 0.0
.data 660 660 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 574210 574194 -16 -0.0
.app_xip_area 468588 468572 -16 -0.0
.bss 88016 88016 0 0.0
.data 572 572 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A (read only) 908232 908216 -16 -0.0
(read/write) 135128 134528 -600 -0.4
.bss 133072 132472 -600 -0.5
.data 2052 2052 0 0.0
.text 908224 908208 -16 -0.0
window-app BRD4161A (read only) 845480 845448 -32 -0.0
(read/write) 133216 132616 -600 -0.5
.bss 131248 130648 -600 -0.5
.data 1964 1964 0 0.0
.text 845472 845440 -32 -0.0
lighting-app BRD4161A+rpc (read only) 942576 942560 -16 -0.0
(read/write) 151808 151208 -600 -0.4
.bss 149552 148952 -600 -0.4
.data 2256 2256 0 0.0
.text 942568 942552 -16 -0.0
BRD4161A+rs911x (read only) 746532 746580 48 0.0
(read/write) 129352 128752 -600 -0.5
.bss 127372 126772 -600 -0.5
.data 1980 1980 0 0.0
.text 746524 746572 48 0.0
lock-app BRD4161A+wf200 (read only) 916528 916544 16 0.0
(read/write) 127540 127540 0 0.0
.bss 125604 125604 0 0.0
.data 1936 1936 0 0.0
.text 916520 916536 16 0.0
esp32 all-clusters-app c3devkit (read only) 999622 999694 72 0.0
(read/write) 1474506 1474506 0 0.0
.dram0.bss 68376 68376 0 0.0
.dram0.data 14428 14428 0 0.0
.flash.rodata 207248 207248 0 0.0
.flash.text 999622 999694 72 0.0
.iram0.text 62020 62020 0 0.0
m5stack (read only) 1054807 1054823 16 0.0
(read/write) 476936 476936 0 0.0
.dram0.bss 73896 73896 0 0.0
.dram0.data 34176 34176 0 0.0
.flash.rodata 237028 237028 0 0.0
.flash.text 1049423 1049439 16 0.0
.iram0.text 123107 123107 0 0.0
k32w light k32w061+release (read/write) 684252 684220 -32 -0.0
.bss 81320 81320 0 0.0
.data 2008 2008 0 0.0
.text 599220 599188 -32 -0.0
lock k32w061+release (read/write) 729148 729036 -112 -0.0
.bss 81744 81744 0 0.0
.data 1968 1968 0 0.0
.text 643732 643620 -112 -0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2490384 2490448 64 0.0
.bss 211736 211736 0 0.0
.data 5608 5608 0 0.0
.text 1452956 1453020 64 0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2440360 2440424 64 0.0
.bss 207052 207052 0 0.0
.data 5880 5880 0 0.0
.text 1402932 1402996 64 0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2418060 2418124 64 0.0
.bss 205884 205884 0 0.0
.data 5856 5856 0 0.0
.text 1380660 1380724 64 0.0
shell CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2366456 2366520 64 0.0
.bss 205656 205656 0 0.0
.data 5632 5632 0 0.0
.text 1329028 1329092 64 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1180123 1177675 -2448 -0.2
bss 142000 139600 -2400 -1.7
rodata 150804 150804 0 0.0
text 808636 808620 -16 -0.0
p6 all-clusters-app default (read/write) 2528592 2528608 16 0.0
.bss 139256 139256 0 0.0
.data 2792 2792 0 0.0
.text 1486856 1486872 16 0.0
light-app default (read/write) 2419176 2419208 32 0.0
.bss 132720 132720 0 0.0
.data 2592 2592 0 0.0
.text 1377440 1377472 32 0.0
lock-app default (read/write) 2428464 2428496 32 0.0
.bss 132544 132544 0 0.0
.data 2552 2552 0 0.0
.text 1386728 1386760 32 0.0
telink lighting-app tlsr9518adk80d (read/write) 807680 804440 -3240 -0.4
bss 75432 72232 -3200 -4.2
noinit 40416 40416 0 0.0
text 571302 571260 -42 -0.0

@github-actions
Copy link

github-actions bot commented May 2, 2022

PR #17959: Size comparison from 0824e95 to 5517f1d

Increases (13 builds for cc13x2_26x2, efr32, esp32, linux, mbed)
platform target config section 0824e95 5517f1d change % change
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read/write) 163336 163352 16 0.0
lock-ftd LP_CC2652R7 (read/write) 166728 166752 24 0.0
pump-app LP_CC2652R7 (read/write) 183468 183484 16 0.0
pump-controller-app LP_CC2652R7 (read/write) 190380 190388 8 0.0
efr32 lighting-app BRD4161A+rs911x (read only) 746532 746548 16 0.0
.text 746524 746540 16 0.0
lock-app BRD4161A+wf200 (read only) 916528 916560 32 0.0
.text 916520 916552 32 0.0
esp32 all-clusters-app c3devkit (read only) 999622 999682 60 0.0
.flash.text 999622 999682 60 0.0
linux chip-tool-no-interactive-ipv6only arm64 .rodata 430724 430820 96 0.0
thermostat-no-ble arm64 .rodata 145748 145828 80 0.1
mbed all-clusters-app CY8CPROTO_062_4343W+release (read/write) 2490384 2490448 64 0.0
.text 1452956 1453020 64 0.0
lighting-app CY8CPROTO_062_4343W+release (read/write) 2440360 2440424 64 0.0
.text 1402932 1402996 64 0.0
lock-app CY8CPROTO_062_4343W+release (read/write) 2418060 2418124 64 0.0
.text 1380660 1380724 64 0.0
shell CY8CPROTO_062_4343W+release (read/write) 2366456 2366520 64 0.0
.text 1329028 1329092 64 0.0
Decreases (18 builds for cc13x2_26x2, cyw30739, efr32, k32w, linux, nrfconnect, p6, telink)
platform target config section 0824e95 5517f1d change % change
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read only) 688919 688903 -16 -0.0
.text 586132 586116 -16 -0.0
lock-ftd LP_CC2652R7 (read only) 676783 676759 -24 -0.0
.text 581944 581920 -24 -0.0
lock-mtd LP_CC2652R7 (read only) 625543 625519 -24 -0.0
.text 530808 530784 -24 -0.0
pump-app LP_CC2652R7 (read only) 661283 661267 -16 -0.0
.text 580412 580396 -16 -0.0
pump-controller-app LP_CC2652R7 (read only) 654171 654163 -8 -0.0
.text 570364 570356 -8 -0.0
cyw30739 light cyw930739m2evb_01 (read/write) 626370 626362 -8 -0.0
.app_xip_area 528904 528896 -8 -0.0
lock cyw930739m2evb_01 (read/write) 625082 625074 -8 -0.0
.app_xip_area 529080 529072 -8 -0.0
efr32 lighting-app BRD4161A (read only) 908232 908184 -48 -0.0
(read/write) 135128 134528 -600 -0.4
.bss 133072 132472 -600 -0.5
.text 908224 908176 -48 -0.0
BRD4161A+rpc (read only) 942576 942528 -48 -0.0
(read/write) 151808 151208 -600 -0.4
.bss 149552 148952 -600 -0.4
.text 942568 942520 -48 -0.0
BRD4161A+rs911x (read/write) 129352 128752 -600 -0.5
.bss 127372 126772 -600 -0.5
window-app BRD4161A (read only) 845480 845416 -64 -0.0
(read/write) 133216 132616 -600 -0.5
.bss 131248 130648 -600 -0.5
.text 845472 845408 -64 -0.0
k32w light k32w061+release (read/write) 684252 684236 -16 -0.0
.text 599220 599204 -16 -0.0
lock k32w061+release (read/write) 729148 729036 -112 -0.0
.text 643732 643620 -112 -0.0
linux chip-tool-no-interactive-ipv6only arm64 .text 6924212 6924116 -96 -0.0
thermostat-no-ble arm64 (read only) 2361108 2360916 -192 -0.0
.text 1986208 1985936 -272 -0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1180123 1177691 -2432 -0.2
bss 142000 139600 -2400 -1.7
text 808636 808632 -4 -0.0
p6 all-clusters-app default (read/write) 2528592 2528576 -16 -0.0
.text 1486856 1486840 -16 -0.0
telink lighting-app tlsr9518adk80d (read/write) 807680 804440 -3240 -0.4
bss 75432 72232 -3200 -4.2
text 571302 571258 -44 -0.0
Full report (28 builds for cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
platform target config section 0824e95 5517f1d change % change
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read only) 688919 688903 -16 -0.0
(read/write) 163336 163352 16 0.0
.bss 75236 75236 0 0.0
.data 3400 3400 0 0.0
.rodata 102303 102303 0 0.0
.text 586132 586116 -16 -0.0
lock-ftd LP_CC2652R7 (read only) 676783 676759 -24 -0.0
(read/write) 166728 166752 24 0.0
.bss 73548 73548 0 0.0
.data 3224 3224 0 0.0
.rodata 94359 94359 0 0.0
.text 581944 581920 -24 -0.0
lock-mtd LP_CC2652R7 (read only) 625543 625519 -24 -0.0
(read/write) 146352 146352 0 0.0
.bss 69268 69268 0 0.0
.data 3224 3224 0 0.0
.rodata 94247 94247 0 0.0
.text 530808 530784 -24 -0.0
pump-app LP_CC2652R7 (read only) 661283 661267 -16 -0.0
(read/write) 183468 183484 16 0.0
.bss 73764 73764 0 0.0
.data 3256 3256 0 0.0
.rodata 80387 80387 0 0.0
.text 580412 580396 -16 -0.0
pump-controller-app LP_CC2652R7 (read only) 654171 654163 -8 -0.0
(read/write) 190380 190388 8 0.0
.bss 73820 73820 0 0.0
.data 3220 3220 0 0.0
.rodata 83323 83323 0 0.0
.text 570364 570356 -8 -0.0
cyw30739 light cyw930739m2evb_01 (read/write) 626370 626362 -8 -0.0
.app_xip_area 528904 528896 -8 -0.0
.bss 80116 80116 0 0.0
.data 696 696 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
lock cyw930739m2evb_01 (read/write) 625082 625074 -8 -0.0
.app_xip_area 529080 529072 -8 -0.0
.bss 78692 78692 0 0.0
.data 660 660 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 574210 574210 0 0.0
.app_xip_area 468588 468588 0 0.0
.bss 88016 88016 0 0.0
.data 572 572 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A (read only) 908232 908184 -48 -0.0
(read/write) 135128 134528 -600 -0.4
.bss 133072 132472 -600 -0.5
.data 2052 2052 0 0.0
.text 908224 908176 -48 -0.0
BRD4161A+rpc (read only) 942576 942528 -48 -0.0
(read/write) 151808 151208 -600 -0.4
.bss 149552 148952 -600 -0.4
.data 2256 2256 0 0.0
.text 942568 942520 -48 -0.0
BRD4161A+rs911x (read only) 746532 746548 16 0.0
(read/write) 129352 128752 -600 -0.5
.bss 127372 126772 -600 -0.5
.data 1980 1980 0 0.0
.text 746524 746540 16 0.0
lock-app BRD4161A+wf200 (read only) 916528 916560 32 0.0
(read/write) 127540 127540 0 0.0
.bss 125604 125604 0 0.0
.data 1936 1936 0 0.0
.text 916520 916552 32 0.0
window-app BRD4161A (read only) 845480 845416 -64 -0.0
(read/write) 133216 132616 -600 -0.5
.bss 131248 130648 -600 -0.5
.data 1964 1964 0 0.0
.text 845472 845408 -64 -0.0
esp32 all-clusters-app c3devkit (read only) 999622 999682 60 0.0
(read/write) 1474506 1474506 0 0.0
.dram0.bss 68376 68376 0 0.0
.dram0.data 14428 14428 0 0.0
.flash.rodata 207248 207248 0 0.0
.flash.text 999622 999682 60 0.0
.iram0.text 62020 62020 0 0.0
m5stack (read only) 1054807 1054807 0 0.0
(read/write) 476936 476936 0 0.0
.dram0.bss 73896 73896 0 0.0
.dram0.data 34176 34176 0 0.0
.flash.rodata 237028 237028 0 0.0
.flash.text 1049423 1049423 0 0.0
.iram0.text 123107 123107 0 0.0
k32w light k32w061+release (read/write) 684252 684236 -16 -0.0
.bss 81320 81320 0 0.0
.data 2008 2008 0 0.0
.text 599220 599204 -16 -0.0
lock k32w061+release (read/write) 729148 729036 -112 -0.0
.bss 81744 81744 0 0.0
.data 1968 1968 0 0.0
.text 643732 643620 -112 -0.0
linux chip-tool-no-interactive-ipv6only arm64 (read only) 8813332 8813332 0 0.0
(read/write) 642513 642513 0 0.0
.bss 40913 40913 0 0.0
.data 1192 1192 0 0.0
.data.rel.ro 581632 581632 0 0.0
.dynamic 560 560 0 0.0
.got 14960 14960 0 0.0
.init 24 24 0 0.0
.init_array 184 184 0 0.0
.rodata 430724 430820 96 0.0
.text 6924212 6924116 -96 -0.0
thermostat-no-ble arm64 (read only) 2361108 2360916 -192 -0.0
(read/write) 174593 174593 0 0.0
.bss 86273 86273 0 0.0
.data 1496 1496 0 0.0
.data.rel.ro 79048 79048 0 0.0
.dynamic 560 560 0 0.0
.got 4736 4736 0 0.0
.init 24 24 0 0.0
.init_array 376 376 0 0.0
.rodata 145748 145828 80 0.1
.text 1986208 1985936 -272 -0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2490384 2490448 64 0.0
.bss 211736 211736 0 0.0
.data 5608 5608 0 0.0
.text 1452956 1453020 64 0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2440360 2440424 64 0.0
.bss 207052 207052 0 0.0
.data 5880 5880 0 0.0
.text 1402932 1402996 64 0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2418060 2418124 64 0.0
.bss 205884 205884 0 0.0
.data 5856 5856 0 0.0
.text 1380660 1380724 64 0.0
shell CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2366456 2366520 64 0.0
.bss 205656 205656 0 0.0
.data 5632 5632 0 0.0
.text 1329028 1329092 64 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1180123 1177691 -2432 -0.2
bss 142000 139600 -2400 -1.7
rodata 150804 150804 0 0.0
text 808636 808632 -4 -0.0
p6 all-clusters-app default (read/write) 2528592 2528576 -16 -0.0
.bss 139256 139256 0 0.0
.data 2792 2792 0 0.0
.text 1486856 1486840 -16 -0.0
light-app default (read/write) 2419176 2419176 0 0.0
.bss 132720 132720 0 0.0
.data 2592 2592 0 0.0
.text 1377440 1377440 0 0.0
lock-app default (read/write) 2428464 2428464 0 0.0
.bss 132544 132544 0 0.0
.data 2552 2552 0 0.0
.text 1386728 1386728 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 807680 804440 -3240 -0.4
bss 75432 72232 -3200 -4.2
noinit 40416 40416 0 0.0
text 571302 571258 -44 -0.0

@tcarmelveilleux tcarmelveilleux merged commit 769264a into project-chip:master May 2, 2022
tcarmelveilleux added a commit to tcarmelveilleux/connectedhomeip that referenced this pull request May 2, 2022
Issue project-chip#9261

- K32W platform ran out of BSS last week
- Current usage is default max 100 events in queue. PR project-chip#17959 already reduced
  the size of each event and saved approx 600 bytes. This PR should reduce it
  further.

- This PR moves max queue size from 100 to 75, which is 25% reduction
  and much larger than some platforms which use 25 (which seems low to me)

- Other Thread platforms like QPG and EFR32 run on 25, so not worried here

Testing done:
- Sanity check on K32W via @doru91
andy31415 pushed a commit that referenced this pull request May 3, 2022
Issue #9261

- K32W platform ran out of BSS last week
- Current usage is default max 100 events in queue. PR #17959 already reduced
  the size of each event and saved approx 600 bytes. This PR should reduce it
  further.

- This PR moves max queue size from 100 to 75, which is 25% reduction
  and much larger than some platforms which use 25 (which seems low to me)

- Other Thread platforms like QPG and EFR32 run on 25, so not worried here

Testing done:
- Sanity check on K32W via @doru91
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants